cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

allow sorting one scope based on a second scope as the "key"

Open timo opened this issue 1 year ago • 2 comments

image

image

this feature request is about being able to sort a set of targets using a second set of targets to decide the order

in other words, decouple what gets cut out and pasted in a sorted order from how the order should be decided

in the first example image above, just saying sort this would result in our family names being swapped around, while saying sort line this would sort by first name instead of last name

in the second example image above, sort this would change which item gets which rating, and sort line this would not sort by rating.

a possible command for this could be using this sort line, and by allowing a target in general for the first bit, things like using its name sort every func could be possible as well

timo avatar Dec 16 '23 19:12 timo

by allowing a target in general for the first bit, things like using its name sort every func could be possible as well

We have no mechanism for this kind of thing, and no theoretical infrastructure for something like that. The only thing we have today would be a way to zip the key targets with the sortee targets a la "using this sort line". We could think through a way to make something like your its proposal work, but keep in mind we're increasingly of the belief that its was probably a mistake; people try to sprinkle it everywhere because it is such an ambiguous word

pokey avatar Dec 18 '23 17:12 pokey

it would be fine by me to have only "using this sort line" work

timo avatar Mar 26 '24 00:03 timo