De-duplicating lines in selection #14146
Unanswered
BirkhoffLee
asked this question in
Q&A
Replies: 1 comment
-
Your awk version works for me, no escaping needed. As for your 3rd point, why not just use a keybinding, e.g.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I was looking for a command in Helix that removes duplicate lines in selection, however I couldn't find it. I also google'd and searched in Issues and Discussions and there wasn't luck. Is it supported by Helix, or it's something yet to be implemented?
There's the solution of using pipe, however
:pipe sort -u
doesn't respect original input order:pipe awk '!seen[$0]++'
doesn't work for an unknown reason (maybe I need to escape the characters?)Beta Was this translation helpful? Give feedback.
All reactions