New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] bind
command ensure-selection-start
#10310
Comments
|
@cklim24: You've now just quoted two separate posts. Do you have anything to say? |
yeah that sounds reasonable. Could probably also benefit https://github.com/sshilovsky/fish-helix |
Right now the
bind
command has its own sublanguage. In particular this has a way to swap the start and end of the selection, withswap-selection-start-stop
.It'd be great if there was a way to specify that it was specifically at the start or the stop. The reason I'd find this useful is because I'm putting together a Helix-mode for editing commands, as an alternative to the existing vi-mode. I'm proposing adding an
ensure-selection-start
command that ensures the cursor is specifically on the left end of the selection.Poking around a bit, it looks like this should be doable by adding an entry to this table:
fish-shell/src/input.rs
Line 115 in 8667ed5
and a short implementation in this file:
fish-shell/src/reader.rs
Line 1 in 8667ed5
Does this seem reasonable to you?
The text was updated successfully, but these errors were encountered: