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
I have a text file with many lines looking like that
A = 3
B = 2
CGDSF = 4576
Can we have a value sort, somehow specifying the word or character to split the line by?
for example: select the = character, then run value-sort-lines
The result should be:
B = 2
A = 3
CGDSF = 4576
The text was updated successfully, but these errors were encountered:
Maybe the fix to this is to allow a custom sort to be defined by the user in a settings key as a JS string. Then that expression, say "a > b" can be eval'd by the extension? With good documentation, this would let users do things like what you ask:
"a.split('=')[1] > b.split('=')[1]"
Note there's no null checking or anything in the above. Thoughts?
I have a text file with many lines looking like that
A = 3
B = 2
CGDSF = 4576
Can we have a value sort, somehow specifying the word or character to split the line by?
for example: select the = character, then run value-sort-lines
The result should be:
B = 2
A = 3
CGDSF = 4576
The text was updated successfully, but these errors were encountered: