You chose the worst example to illustrate this. The left aligned and agreed on an ambitious list of reforms in record time, and they beat the far-right because of it. The biggest party in the leftist coalition withdrew a lot of candidates to keep the far-right out of power, and succeeded.
A left-wing alliance with Macron is impossible. If the left is supposed to do politics like right-wingers, what is even the point?