On 30 Dec 2020, at 09:26, David Adam <zanc...@ucc.gu.uwa.edu.au> wrote: >> Would love to hear the thoughts from the devs regarding this subject! > > I have good news - many are already implemented, including both of your > examples: > >> bind \cf > bind --preset \cf forward-char >> bind \ef > bind --preset \ef forward-word
Thank you for your assistance Michael and David! It seems that I have now come closer to a solution. The terminal I use is iTerm2. (Version 3.4.3) In case any other iTerm2 user stumbles upon this thread, here’s what I’ve done so far: In the preferences for the profile that I’m using I changed the setting called “Left Option Key” from “Normal” to “Esc+”.[1] After that I’m able to use the option key[2] as the meta key[3]. So if I press Option+f, the cursor will move to the end of the word. That’s a great step forward! Now to my next question: Is it possible to somehow configure the system to use the command key[4] for this purpose, instead of the option key? That’s the way I have Emacs configured and I find it ergonomically preferable. The commands for these actions seems to be named “forward-word” and “backward-word” in the Fish shell. I think that it might be possible to remap them using the method that David described. David, do you (or anyone else) know if there is an ”escape sequence” in Fish for refering to the command key? That would be awesome! For the sake of completeness and for potential future readers of this thread, I’ve provide some references below that might be useful for users of Fish/iTerm2 on macOS. Best regards, Carl REFERENCES [1] https://blog.m157q.tw/posts/2014/07/09/use-option-key-as-meta-in-iterm2-and-terminal-on-mac/ [2] This is the key labeled ”alt”. Not confusing at all, huh? https://en.wikipedia.org/wiki/Option_key [3] https://en.wikipedia.org/wiki/Meta_key [4] I.e. the key with the “looped square”, https://en.wikipedia.org/wiki/Command_key _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users