-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add last modified file (gm) #1093
Conversation
helix-term/src/keymap.rs
Outdated
@@ -520,9 +520,10 @@ impl Default for Keymaps { | |||
"r" => goto_reference, | |||
"i" => goto_implementation, | |||
"t" => goto_window_top, | |||
"m" => goto_window_middle, | |||
"c" => goto_window_middle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rejected changing this keybind before :P why not find a different keymap for goto_last_modified_file
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a couple of reasons
- it is the same as kakoune now
gc
, and the name center works fine too - it is more aligned with view mode,
zc
have the same behavior and it is named "center" not "middle",zm
named "middle" changes the cursor horizontally, not vertically like this one - at the same time
gm
fits nicely according toga
since it meanslast modified file
andga
meanslast accessed file
Do you have any suggestions for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we'd want to put this in the default keymap but I'd probably remap goto_last_modified_file
to gM
.
8133c00
to
b175420
Compare
b175420
to
5096de5
Compare
cc @EpocSquadron
This will change
gm
(goto middle) togc
but now it matches kakoune behavior and ourzc
.Based on mawww/kakoune#3814