Ctrl+W (search) when using nano closes Terminal #3383

Closed
opened 2026-01-30 23:20:04 +00:00 by claunia · 3 comments
Owner

Originally created by @wpmjones on GitHub (Aug 12, 2019).

Environment

Windows build number: [Version 10.0.18362.267]
Windows Terminal version (if applicable): [Version 0.3.2171.0]

Any other software?

Steps to reproduce

ssh into a Linux environment
nano filename.txt
Ctrl+W to search within nano

Expected behavior

Ctrl+W is used for searching within the nano editor. Ctrl+W should bring up a search field.

Actual behavior

When pressing Ctrl+W anywhere within Windows Terminal, it closes the active tab. This behavior effectively prevents the use of nano's search feature.

Originally created by @wpmjones on GitHub (Aug 12, 2019). # Environment ```none Windows build number: [Version 10.0.18362.267] Windows Terminal version (if applicable): [Version 0.3.2171.0] Any other software? ``` # Steps to reproduce ssh into a Linux environment nano filename.txt Ctrl+W to search within nano # Expected behavior Ctrl+W is used for searching within the nano editor. Ctrl+W should bring up a search field. # Actual behavior When pressing Ctrl+W anywhere within Windows Terminal, it closes the active tab. This behavior effectively prevents the use of nano's search feature.
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-30 23:20:05 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 12, 2019):

We changed the default key bindings quite a while ago to move closePane off of Ctrl+W. You should edit your settings to re-bind it to Ctrl+Shift+W.

@DHowett-MSFT commented on GitHub (Aug 12, 2019): We changed the default key bindings quite a while ago to move closePane off of Ctrl+W. You should edit your settings to re-bind it to Ctrl+Shift+W.
Author
Owner

@etomProductions commented on GitHub (Jan 22, 2024):

Same issue here with both "Ctrl+W" or "Ctrl+Shift+W" in Windows 11 using GCP SSH

@etomProductions commented on GitHub (Jan 22, 2024): Same issue here with both "Ctrl+W" or "Ctrl+Shift+W" in Windows 11 using GCP SSH
Author
Owner

@DHowett commented on GitHub (Jan 22, 2024):

You are welcome to change your default key bindings to remove Ctrl+Shift+W.

As I noted five years ago, we removed the default binding for Ctrl+W five years ago because of conflicts like this.

If you are still using a settings file from 2019, I am both impressed and horrified.

@DHowett commented on GitHub (Jan 22, 2024): You are welcome to change your default key bindings to remove <kbd>Ctrl+Shift+W</kbd>. As I noted _five years ago,_ we removed the default binding for <kbd>Ctrl+W</kbd> _five years ago_ because of conflicts like this. If you are still using a settings file from 2019, I am both impressed and horrified.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3383