On Thu, 31 Dec 2020, Carl Winbäck wrote:
> 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?

In iTerm, the Preferences - Keys - Remap modifiers pane will allow you to 
use the command key as option instead of command 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?

The command key (or Windows key, or super key) does not send a defined 
terminal key sequence, so it has to be manually remapped to send something 
else (there are lots of threads online of people discovering this)
 
Hopefully the above answer is a more straightforward approach!

David Adam
zanc...@ucc.gu.uwa.edu.au
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to