[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [patch] binding Home and End in help viewer and file browse
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [patch] binding Home and End in help viewer and file browser |
Date: |
Wed, 08 Apr 2015 14:12:49 +0200 |
Hi all,
Currently the Home and End keys don't do anything when in
the Help viewer or the File browser. I propose to make
them go to the top and the bottom, because that is what
these keys do in a web browser like Firefox and in a file
viewer like less. Comments welcome.
Index: src/global.c
===================================================================
--- src/global.c (revision 5186)
+++ src/global.c (working copy)
@@ -1059,6 +1059,12 @@
add_to_sclist(MMOST, "M-Space", do_prev_word_void, 0);
add_to_sclist(MMOST, "^Space", do_next_word_void, 0);
#endif
+ add_to_sclist(MHELP, "Home", do_first_line, 0);
+ add_to_sclist(MHELP, "End", do_last_line, 0);
+#ifndef DISABLE_BROWSER
+ add_to_sclist(MBROWSER, "Home", do_first_file, 0);
+ add_to_sclist(MBROWSER, "End", do_last_file, 0);
+#endif
add_to_sclist(MMOST, "^A", do_home, 0);
add_to_sclist(MMOST, "Home", do_home, 0);
add_to_sclist(MMOST, "^E", do_end, 0);
Benno
Plug: http://elementary.io/
--
http://www.fastmail.com - Accessible with your email software
or over the web
- [Nano-devel] [patch] binding Home and End in help viewer and file browser,
Benno Schulenberg <=