Ctrl + W Conflict With Nano Editor in Bash/WSL (not an issue in normal WSL or CMD) #1104

Closed
opened 2026-01-30 22:16:36 +00:00 by claunia · 3 comments
Owner

Originally created by @robinwilson16 on GitHub (May 15, 2019).

Nano is a popular text editor in the bash/Linux environment but this uses Ctrl + W (for where) to initiate a search (same command Windows uses for closing the active window/tab) so it is a bit unexpected when this command closes the session down leaving the open file locked for editing.

Should Ctrl + W close the tab or should it be something else?

So this is sort of an issue although not exactly a bug as this functionality is obviously intended but it just conflicts with the Nano command and the standard CMD and WSL windows instead treat Ctrl + W as input so do not have this issue/conflict.

Originally created by @robinwilson16 on GitHub (May 15, 2019). Nano is a popular text editor in the bash/Linux environment but this uses Ctrl + W (for where) to initiate a search (same command Windows uses for closing the active window/tab) so it is a bit unexpected when this command closes the session down leaving the open file locked for editing. Should Ctrl + W close the tab or should it be something else? So this is sort of an issue although not exactly a bug as this functionality is obviously intended but it just conflicts with the Nano command and the standard CMD and WSL windows instead treat Ctrl + W as input so do not have this issue/conflict.
claunia added the Resolution-Duplicate label 2026-01-30 22:16:36 +00:00
Author
Owner

@miniksa commented on GitHub (May 15, 2019):

I think our goal is to fix this with #537

@miniksa commented on GitHub (May 15, 2019): I think our goal is to fix this with #537
Author
Owner

@DHowett-MSFT commented on GitHub (May 15, 2019):

Indeed. We'll close this one in favor of rebindable hotkeys.

@DHowett-MSFT commented on GitHub (May 15, 2019): Indeed. We'll close this one in favor of rebindable hotkeys.
Author
Owner

@robinwilson16 commented on GitHub (May 15, 2019):

Ok thanks fair enough but I think maybe it would be good if the default mapping was to leave this key combination unmapped so it functions the same as CMD and WSL do.

@robinwilson16 commented on GitHub (May 15, 2019): Ok thanks fair enough but I think maybe it would be good if the default mapping was to leave this key combination unmapped so it functions the same as CMD and WSL do.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1104