Don’t close tab in Windows Terminal whilst using Nano search

A really annoying “feature” I’ve just discovered is that when using Windows Terminal is that the shortcut keys in Nano and Windows 10 overlap. So if you press CTRL + SHIFT + W then the tab closes. That happens to be the search function for Nano, rendering it unusable.

A way to get around this problem is to go into the Windows Terminal settings.json file and add a custom key binding line in the “keybindings”section at the bottom.

{ "command": "unbound", "keys": "ctrl+shift+w" }

Be careful to add a comma to the end of the line if you’re placing it anywhere but the bottom, or add a comma to the binding above if you’re putting it at the bottom. Otherwise it will throw up an error.

Leave a comment