aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-30 00:42:42 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-30 02:59:09 +0200
commit84831a14920a9dbb67b994ae5baea2c41ea37aa8 (patch)
tree1056cd51fa5c02c2ccef2a3e5462312f2ba10c9c
parentada863925f29a93c437d1e59e19b6159ed2d5210 (diff)
downloadhex-84831a14920a9dbb67b994ae5baea2c41ea37aa8.tar.gz
hex-84831a14920a9dbb67b994ae5baea2c41ea37aa8.tar.xz
hex-84831a14920a9dbb67b994ae5baea2c41ea37aa8.zip
Bind _/C-a/$/C-e to go to row start/end
Avoiding 0 because that's how you would write a zero in edit mode.
-rw-r--r--hex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hex.c b/hex.c
index 116544f..d92f6f8 100644
--- a/hex.c
+++ b/hex.c
@@ -1581,6 +1581,10 @@ g_default_bindings[] =
{ "Home", ACTION_ROW_START, {}},
{ "End", ACTION_ROW_END, {}},
+ { "C-a", ACTION_ROW_START, {}},
+ { "C-e", ACTION_ROW_END, {}},
+ { "_", ACTION_ROW_START, {}},
+ { "$", ACTION_ROW_END, {}},
{ "M-<", ACTION_GOTO_TOP, {}},
{ "M->", ACTION_GOTO_BOTTOM, {}},
{ "g", ACTION_GOTO_TOP, {}},