-
CTRL+F is a standard key binding for most shells (sh, bash, zsh, fish) for moving forward a character. So installing fzf has really screwed up my terminal usage since 20 years of memory means I need ctrl+f to do what its always done :) I see in I'm not great with fish yet, still learning the differences. I saw in the docs you say to do:
but |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments
-
seems to be all you need for this. I'll leave this ticket open for discussion since I think its bad practice to override such an important default keybinding as movement in shells but if you disagree we can close this. |
Beta Was this translation helpful? Give feedback.
-
Oops didn't see your edit.
Ah, you can include that command in your config.fish. What I mean is don't try to do |
Beta Was this translation helpful? Give feedback.
-
but that seems to overwrite all the default keybindings? Not just give the ability to customize? My big concern is this is squashing an extremely important default keybinding for shells, so it doesn't seem to be a good default. It removes the ability to move forward on the command line |
Beta Was this translation helpful? Give feedback.
-
You're right. It's not ideal but I don't think it's a big deal because it's just 4 simple lines of code you can almost copy and paste. My hands are also tied by my previous (less informed) decisions. Now that probably thousands of people are using this plugin, I can't just change the defaults or settings on them.
Can you explain this statement more? How come you don't use the arrow keys? I'm trying to understand my users' setups and work styles so I can make key bindings better in the future |
Beta Was this translation helpful? Give feedback.
-
I think most people who are using the CLI are trying to stay on the homerow rather than using arrow keys, which is why ctrl+f and ctrl+b exist in the shells. It is just an ergonomic thing so that my fingers don't have to move off and prevent me from typing. There are also other shortcuts that work the same way for better movement than arrow keys. For example I use alt+f / alt+b as well for jumping words instead of characters. Ctrl+A / Ctrl+E to go to front and back of a line. |
Beta Was this translation helpful? Give feedback.
-
Ah you must be a pro Emacs user!
I would disagree with this. I think most people use arrow keys, a small minority use vim-bindings, in which case they either use arrow keys or
I do use these two as well as Ctrl+W and Alt+F. Just fo some reason, I never use Ctrl+F and Ctrl+B to move one letter at a time. In fact, most people I've pair programmed with, both in college, and at my jobs, don't. |
Beta Was this translation helpful? Give feedback.
-
Btw @sontek, you mentioned you were new to Fish. I want to say this: welcome! I hope you'll love it and make it your new home. Since you're still learning Fish and the different variable types, may I recommend |
Beta Was this translation helpful? Give feedback.
-
Hey there. For me |
Beta Was this translation helpful? Give feedback.
-
Try using the right arrow key for now. I’m thinking now of how I can fix
this without a rough transition for tons of people.
…On Sun, Jan 24, 2021 at 9:04 AM Nikita Hrytsai ***@***.***> wrote:
Hey there. For me Ctrl+F is also confusing because it's fish default key
binding to accept autosuggestion and I used to it.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<https://github.com/PatrickF1/fzf.fish/issues/83#issuecomment-766395080>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPAJEFNT2FF5T3E2R6HU6TS3RHK3ANCNFSM4WGOI5DQ>
.
|
Beta Was this translation helpful? Give feedback.
-
@angrypie @sontek if I change it to Alt+F, would that work for you? |
Beta Was this translation helpful? Give feedback.
-
@PatrickF1 That would still stomp on default Fish key mappings as well as standard shell mappings. For fish specifically these are the two default bindings for movement:
Since these already had special meaning, during autocompletion (when there is no forward to go to) fish special cases them to do "forward total completion" and "forward next word in completion" I suspect that there are more fish (and standard shell users) who are used to using these standard keystrokes more than ones who have specialized their usage to this specific plugin. The first thing I had to do when using this plugin was learn how to teach it not to step on those keybindings I think what might be best is find some binding that isn't already in the presets and use that but give a hook to easily change it to whatever people want |
Beta Was this translation helpful? Give feedback.
-
@sontek Thanks for the info! I was also unaware of that binding. Now I see it in the default bindings. What do you think about Ctrl+Alt+F then?
I can't be sure but I agree now, based on the volume of people asking me to change this. And for that reason I will change it. |
Beta Was this translation helpful? Give feedback.
-
@sontek For me it's more convenient to be able just put |
Beta Was this translation helpful? Give feedback.
-
@sontek @angrypie The default binding is now Ctrl+Alt+F thanks to your feedback! Additionally, custom key bindings are now a breeze. See https://github.com/PatrickF1/fzf.fish/releases/tag/v7.0. |
Beta Was this translation helpful? Give feedback.
@sontek @angrypie The default binding is now Ctrl+Alt+F thanks to your feedback! Additionally, custom key bindings are now a breeze. See https://github.com/PatrickF1/fzf.fish/releases/tag/v7.0.