Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Bind ctrl-w to editor:delete-to-beginning-of-word #1360

Open
gosukiwi opened this issue Oct 3, 2020 · 0 comments
Open

Bind ctrl-w to editor:delete-to-beginning-of-word #1360

gosukiwi opened this issue Oct 3, 2020 · 0 comments

Comments

@gosukiwi
Copy link
Contributor

gosukiwi commented Oct 3, 2020

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:

'.tree-view-dialog':
  'ctrl-w': 'editor:delete-to-beginning-of-word'

But I wonder, should this be the default behavior? Not like you want to close the current tab when in a modal view.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant