Avoid closing tabs with , which developers commonly use to Delete Back Word.
More Better Ctrl-W Extension
This extension lets you assign custom keybindings to close tabs and to delete the word before the cursor.
This is useful if you're accustomed to using on the command line or in your text editor to delete back word, and you want similar functionality in your browser.
After installing this extension, click *Keyboard shortcuts* to assign custom bindings:
- You can assign a custom keybinding to close tabs, e.g.,.
- You can assign a custom keybinding to delete the word before the cursor, e.g.,.
- You can also assign any keybinding to *do nothing*, e.g., if you'd like to disable instead.
Note that *delete back word* doesn't work from the address bar — it'll delete the previous word from whatever input has focus on the page, if an edit control has focus. Sorry! That's just a limitation of using an extension.
This extension is open source — you can find it on GitHub.
https://github.com/tallybark/more-better-ctrlw
Read more
This is useful if you're accustomed to using
After installing this extension, click *Keyboard shortcuts* to assign custom bindings:
- You can assign a custom keybinding to close tabs, e.g.,
- You can assign a custom keybinding to delete the word before the cursor, e.g.,
- You can also assign any keybinding to *do nothing*, e.g., if you'd like to disable
Note that *delete back word* doesn't work from the address bar — it'll delete the previous word from whatever input has focus on the page, if an edit control has focus. Sorry! That's just a limitation of using an extension.
This extension is open source — you can find it on GitHub.
https://github.com/tallybark/more-better-ctrlw
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "More Better Ctrl-W", "version": "1.0.3", "author": "[email protected]", "icons": { "128": "icons/128.png" }, "description": "Avoid closing tabs with , which developers commonly use to Delete Back Word.", "incognito": "spanning", "background": { "service_worker": "background.js", "type": "module" }, "permissions": [ "activeTab", "scripting" ], "commands": { "close-highlighted-windows": {"description": "Close highlighted tabs"}, "do-nothing": {"description": "Do absolutely nothing"}, "deleteBackWord": {"description": "Delete back word"} }}
Read more