After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 756591 - command-bar: Add a few deletion shortcuts
command-bar: Add a few deletion shortcuts
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: keybindings
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-14 20:48 UTC by Damien Lespiau
Modified: 2015-10-14 21:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
command-bar: Add a few deletion shortcuts (1.38 KB, patch)
2015-10-14 20:48 UTC, Damien Lespiau
committed Details | Review

Description Damien Lespiau 2015-10-14 20:48:49 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.
Comment 1 Damien Lespiau 2015-10-14 20:48:55 UTC
Created attachment 313335 [details] [review]
command-bar: Add a few deletion shortcuts
Comment 2 Christian Hergert 2015-10-14 20:54:43 UTC
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
Comment 3 Damien Lespiau 2015-10-14 21:19:30 UTC
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.