[gnome-builder/gnome-builder-3-18] command-bar: Add ctrl-a/ctrl-e shortcuts
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] command-bar: Add ctrl-a/ctrl-e shortcuts
- Date: Thu, 15 Oct 2015 14:42:46 +0000 (UTC)
commit eac3bb0283f2243b8865c437da72b4d3683ae703
Author: Damien Lespiau <damien lespiau intel com>
Date: Wed Oct 14 22:21:40 2015 +0100
command-bar: Add ctrl-a/ctrl-e shortcuts
When adding ctrl-w/u/h to the command bar, Christian commented that
ctrl-a/e are also fairly widely used in command lines, for instance in
those tools using readline. Great minds think alike, I did wonder about
those shortcuts as well.
Implementing the whole list of readline shortcuts, _that_ would be
overkill !:)
https://bugzilla.gnome.org/show_bug.cgi?id=756594
data/keybindings/shared.css | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/shared.css b/data/keybindings/shared.css
index 8c8718c..258c992 100644
--- a/data/keybindings/shared.css
+++ b/data/keybindings/shared.css
@@ -19,6 +19,9 @@ VteTerminal {
@binding-set builder-command-bar-entry
{
+ bind "<ctrl>a" { "move-cursor" (paragraph-ends, -1, 0) };
+ bind "<ctrl>e" { "move-cursor" (paragraph-ends, 1, 0) };
+
bind "<ctrl>u" { "move-cursor" (paragraph-ends, -1, 0)
"delete-from-cursor" (paragraph-ends, 1) };
bind "<ctrl>h" { "delete-from-cursor" (chars, -1) };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]