Yes, it now prefers to break links between locomotive and not-locomotive wagons.
Do you think there should be any preference or distinction between cargo, fluid, and artillery wagons?
I was thinking the next feature to add would be a toggle function. Press "V" once to uncouple one side, press it again to re-couple that and uncouple the other side instead, press a third time to uncouple both sides.
Then for your suggestion, add a second control, for example "Shift-V", to search outward from the player and uncouple the nearest locomotive-to-wagon link that is found. Is that what you are thinking?