Add a default binding. Bind ctrl-w to delete the beginning of the current word.
Motivation
ctrl-w is a rather common shortcut. In apps, it closes tabs and windows. In the terminal and when writing text in general, it deletes the previous word.
It happens to me quite often than when creating or renaming a file, I want to use ctrl-w to fix a typo, and delete the previous word. Sadly, this closes the tab (behind the overlay) instead.
Summary
Add a default binding. Bind
ctrl-w
to delete the beginning of the current word.Motivation
ctrl-w
is a rather common shortcut. In apps, it closes tabs and windows. In the terminal and when writing text in general, it deletes the previous word.It happens to me quite often than when creating or renaming a file, I want to use
ctrl-w
to fix a typo, and delete the previous word. Sadly, this closes the tab (behind the overlay) instead.I easily fixed this by adding a key binding:
But I wonder, should this be the default behavior? Not like you want to close the current tab when in a modal view.