[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH 1/2] bindings: remove the jumpy-scrolling toggle ent
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [PATCH 1/2] bindings: remove the jumpy-scrolling toggle entirely |
Date: |
Fri, 5 Apr 2019 12:11:35 +0200 |
It is still possible to use the --jumpyscrolling option on the command
line or 'set jumpyscrolling' in a nanorc file, but I cannot imagine
that a user would want to toggle between smooth and jumpy scrolling
while nano is running.
This frees up the M-S keystroke to be reused for toggling softwrap.
---
doc/nano.texi | 6 ------
doc/nanorc.5 | 3 ---
src/global.c | 5 -----
3 files changed, 14 deletions(-)
diff --git a/doc/nano.texi b/doc/nano.texi
index c3c7cc01..615fb0eb 100644
--- a/doc/nano.texi
+++ b/doc/nano.texi
@@ -654,9 +654,6 @@ The following global toggles are available:
@item Whitespace Display
@kbd{Meta-P} toggles the displaying of whitespace (@pxref{Whitespace}).
address@hidden Scrolling
address@hidden toggles the @option{-j} (@option{--jumpyscrolling}) command-line
option.
-
@item Expert/No Help
@kbd{Meta-X} toggles the @option{-x} (@option{--nohelp}) command-line option.
@@ -1442,9 +1439,6 @@ Toggles the presence of the two-line list of key bindings
at the bottom of the s
@item constantshow
Toggles the constant display of the current line, column, and character
positions.
address@hidden smoothscroll
-Toggles smooth scrolling (when moving around with the arrow keys).
-
@item softwrap
Toggles the displaying of overlong lines on multiple screen lines.
diff --git a/doc/nanorc.5 b/doc/nanorc.5
index b05864dd..621e4299 100644
--- a/doc/nanorc.5
+++ b/doc/nanorc.5
@@ -776,9 +776,6 @@ Toggles the presence of the two-line list of key bindings
at the bottom of the s
.B constantshow
Toggles the constant display of the current line, column, and character
positions.
.TP
-.B smoothscroll
-Toggles smooth scrolling (when moving around with the arrow keys).
-.TP
.B softwrap
Toggles the displaying of overlong lines on multiple screen lines.
.TP
diff --git a/src/global.c b/src/global.c
index 84e32c64..d4de51df 100644
--- a/src/global.c
+++ b/src/global.c
@@ -1256,7 +1256,6 @@ void shortcut_init(void)
/* Group of "Appearance" toggles. */
add_to_sclist(MMAIN, "M-X", 0, do_toggle_void, NO_HELP);
add_to_sclist(MMAIN, "M-C", 0, do_toggle_void, CONSTANT_SHOW);
- add_to_sclist(MMAIN, "M-S", 0, do_toggle_void, JUMPY_SCROLLING);
add_to_sclist(MMAIN, "M-$", 0, do_toggle_void, SOFTWRAP);
#ifdef ENABLE_LINENUMBERS
add_to_sclist(MMAIN, "M-#", 0, do_toggle_void, LINE_NUMBERS);
@@ -1411,8 +1410,6 @@ const char *flagtostr(int flag)
return N_("Help mode");
case CONSTANT_SHOW:
return N_("Constant cursor position display");
- case JUMPY_SCROLLING:
- return N_("Jumpy scrolling (per half-screen)");
case SOFTWRAP:
return N_("Soft wrapping of overlong lines");
case WHITESPACE_DISPLAY:
@@ -1664,8 +1661,6 @@ keystruct *strtosc(const char *input)
s->toggle = NO_HELP;
else if (!strcasecmp(input, "constantshow"))
s->toggle = CONSTANT_SHOW;
- else if (!strcasecmp(input, "smoothscroll"))
- s->toggle = JUMPY_SCROLLING;
else if (!strcasecmp(input, "softwrap"))
s->toggle = SOFTWRAP;
#ifdef ENABLE_LINENUMBERS
--
2.20.1
- [Nano-devel] [PATCH 1/2] bindings: remove the jumpy-scrolling toggle entirely,
Benno Schulenberg <=