I've read fn + option + delete
will delete the word in front of cursor. This works for me in any of the editors i use, or any other text fields (chrome, textedit etc). However in terminal, the key combination just outputs a single (
. I have no problem deleting a word behind the cursor with Option + delete.
I have seen I can map a key combination to an action in terminal preferences, but I haven't been able to find much documentation on the these actions.
The desired effect can be achieved by pressing alt + d
, but i would like to use the fn + option + delete
key combination. A possible sub-question would be how do I map fn + option + delete
to alt + d
in the terminal preferences?
\033d
which should simulate alt+d. Have to copy paste it in.