fzy
fzy copied to clipboard
⌥⌫ to delete word
It'd be great if ⌥⌫ deleted a word the same way it does basically anywhere on MacOS where you can edit text.
C-w
is usually delete word backwards in a lot of terminal programs so one option is to retrain your muscle memory
⌥⌫ might work on macOS either because of your terminal emulator sending through the right escape sequence or because of a patched readline library. Try checking in the options to see what escape sequence it is mapped to so that it might be added.
I use the Natural Text Editing preset in iTerm2 - it sends a hex code - 0x1b 0x7f
:
Note that ⌥⌫ does work as expected in fzf
.
C-w is usually delete word backwards in a lot of terminal programs so one option is to retrain your muscle memory
Unfortunately, most text editors (including the text area I'm typing in right now) don't support C-w, which makes ⌥⌫ really hard to not use.
I also use Alt-Backspace as I did in fzf :)