1

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?

  • It depends on the shell you use. In bash and other readline-aware programs for example you can use Alt-d. – Arkadiusz Drabczyk Aug 8 at 11:57
  • i realised after writing the question that this is an option. I have edited the question to reflect this – outlau Aug 8 at 12:03
  • @ArkadiuszDrabczyk It's also the VISUAL setting (emacs mode vs. vi mode) – Philippos Aug 8 at 12:21

You must log in to answer this question.

Browse other questions tagged .