You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I realized something a bit annoying when interacting with multiple selections and the system clipboard, which is that selection are ordered in the inverse of the order they were selected.
For example, doing a naive split by lines on a few json keys results in this:
This is pretty consistent within dance, adding selections also 'pushes' other selections back, so generally this feels pretty natural as long as you stay within dance. However, you end up with a very surprising behavior when you actually copy to the system clipboard, yanking the selection on the screenshot and pasting here ends up in this:
The keys have indeed inverted order, how inconvenient !
It also makes something like the index in pipes unnatural to use in a lot of cases where I wanted to use it.
Is this behavior on purpose ? If so, should it be changed ? Maybe it should be an setting somewhere ?
Of note is that helix and kakoune both sidestep this problem by always having selections in document order and nothing else, maybe that could be an option as well ?
The text was updated successfully, but these errors were encountered:
So, I realized something a bit annoying when interacting with multiple selections and the system clipboard, which is that selection are ordered in the inverse of the order they were selected.
For example, doing a naive split by lines on a few json keys results in this:
This is pretty consistent within dance, adding selections also 'pushes' other selections back, so generally this feels pretty natural as long as you stay within dance. However, you end up with a very surprising behavior when you actually copy to the system clipboard, yanking the selection on the screenshot and pasting here ends up in this:
The keys have indeed inverted order, how inconvenient !
It also makes something like the index in pipes unnatural to use in a lot of cases where I wanted to use it.
Is this behavior on purpose ? If so, should it be changed ? Maybe it should be an setting somewhere ?
Of note is that helix and kakoune both sidestep this problem by always having selections in document order and nothing else, maybe that could be an option as well ?
The text was updated successfully, but these errors were encountered: