GNOME Bugzilla – Bug 756591
command-bar: Add a few deletion shortcuts
Last modified: 2015-10-14 21:19:30 UTC
Trying builder made me release I use ctrl-w quite often to delete words preceding the cursor. The command-bar is no exception and I'm missing ctrl-w enough to go and add it. Because shells support this key binding and so does vim's 'command bar', I figured it was general enough to be in shared.css (or should have it been defaults.css?). While at it, I added a couple slightly more esoteric deletion-related shortcuts.
Created attachment 313335 [details] [review] command-bar: Add a few deletion shortcuts
I like it. I sort of prefer ctrl+a/ctrl+e to work like emacs here too, but that might be taking it a bit far :) Attachment 313335 [details] pushed as a6c333e - command-bar: Add a few deletion shortcuts
So, I did wonder about ctrl+a/e as well. 2 people have thought about that, we cannot be alone! It does seem a bit overkill for the command-bar in its current form (compared to a full shell command line), but ctrl-a currently selects all the text, which gives away it's really a GtkTextEntry moonlighting as a command-bar. Let's me cook a patch, might as well.