Replies: 10 comments 2 replies
-
Is anyone working on this one at the moment? I'd like to make my first contribution |
Beta Was this translation helpful? Give feedback.
-
Nobody has announced that they're working on this, so it's probably fine? |
Beta Was this translation helpful? Give feedback.
-
Cool! Ill give it a shot |
Beta Was this translation helpful? Give feedback.
-
I'm not against this, just asking what is a usecase? The only situation I can see is something like selecting parentheses/brackets and delete them, but for that I can use existing keybinds. |
Beta Was this translation helpful? Give feedback.
-
Just created a pull request for this one |
Beta Was this translation helpful? Give feedback.
-
Did you have something specific in mind for this command @kirawi? I also wonder if we need a command for this given that we have surround tools builtin while Kakoune does not |
Beta Was this translation helpful? Give feedback.
-
It was requested by https://matrix.to/#/!zMuVRxoqjyxyjSEBXc:matrix.org/$bFvOW3o-qWGL_cSdJWwK1wE86NXUz8LFq7rBJtO6VMA?via=matrix.org&via=mozilla.org&via=envs.net and I thought it was simple enough (and because Kakoune included it). mawww/kakoune#550 is the issue that motivated it in Kakoune. I think right now it could also be useful for basic multi-character pairs. Overall, I agree that it is a niche command and if you guys don't want to include the command I'd be indifferent to it. |
Beta Was this translation helpful? Give feedback.
-
The use-cases mentioned later in the issue are covered by surround tools. The original use-case I'm not sure I fully understand but it seems like it wouldn't come up often so I bet it could be covered instead by subselecting with a regex of |
Beta Was this translation helpful? Give feedback.
-
for selections that span across lines, |
Beta Was this translation helpful? Give feedback.
-
I've been wishing for a similar feature -- my use case is having my cursor(s) somewhere, then realizing I also want to "throw" a cursor somewhere ahead of my cursors with a motion similar to So, typing this out, I wonder if the solution is a way to save your current cursor arrangement? For example, save with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In Kakoune, it selects the first and last characters of each selection.
Where
[]
denotes a selection,[helix]
becomes[h]eli[x]
It would look similar to
helix/helix-term/src/commands.rs
Lines 1855 to 1864 in 87a720c
helix/helix-core/src/selection.rs
Lines 607 to 614 in 87a720c
Beta Was this translation helpful? Give feedback.
All reactions