This isn’t exactly what you are asking for, but another thing to keep in mind is “Shift + Enter”.
This has to happen during the creation of the cards rather than connecting them after the fact, but if you create “test” (in the above example) then press Shift + Enter, create “a”, and then use subsequent “Enter” without Shift, connections will be created in line with your example.