aboutsummaryrefslogtreecommitdiffhomepage
path: root/janet.1
diff options
context:
space:
mode:
authorcrocket <748856+crocket@users.noreply.github.com>2020-01-22 09:45:13 +0900
committercrocket <748856+crocket@users.noreply.github.com>2020-01-22 13:55:44 +0900
commit8162c64ca3e8689f70384dcb6bdb3326126ded87 (patch)
treeda1fffd3b67ba00fcf724435a3505820647d1ad9 /janet.1
parentMerge pull request #266 from andrewchambers/idempotentclose (diff)
Make REPL key bindings more similar to those on GNU readline.
* I deleted Alt-H and Alt-L because Ctrl-F and Ctrl-B serve the same roles. * Ctrl-W, Alt-D, Alt-F, and Alt-B behave more similarly to the same key bindings on GNU readline. * Improved documentation of REPL keybindings on man page. * Home and End keys now work on more terminal environments. * Removed bindings for `Esc OH` and `Esc OF` because andrewchambers doesn't need those bindings and the bindings don't seem to make much sense for Home and End. `Esc O` is Single Shift Select of G3 Character Set in xterm. https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
Diffstat (limited to 'janet.1')
-rw-r--r--janet.170
1 files changed, 45 insertions, 25 deletions
diff --git a/janet.1 b/janet.1
index 12a06e04..dfc415ee 100644
--- a/janet.1
+++ b/janet.1
@@ -29,68 +29,88 @@ most new platforms.
.SH REPL KEY-BINDINGS
.TP 16
-.BR Home/Ctrl\-A
-Move cursor to the beginning of input line
+.BR Home
+Move cursor to the beginning of input line.
.TP 16
.BR End
-Move cursor to the end of input line
+Move cursor to the end of input line.
.TP 16
.BR Left/Right
-Move cursor in input line
+Move cursor in input line.
.TP 16
.BR Up/Down
Go backwards and forwards through history.
.TP 16
-.BR Ctrl\-,
-Go to earliest item in history
+.BR Tab
+Complete current symbol, or show available completions.
.TP 16
-.BR Ctrl\-.
-Go to last item in history
+.BR Delete
+Delete one character after the cursor.
.TP 16
-.BR Tab
-Complete current symbol, or show available completion
+.BR Backspace
+Delete one character before the cursor.
+
+.TP 16
+.BR Ctrl\-A
+Move cursor to the beginning of input line.
+
+.TP 16
+.BR Ctrl\-B
+Move cursor one character to the left.
+
+.TP 16
+.BR Ctrl\-E
+Move cursor to the end of input line.
+
+.TP 16
+.BR Ctrl\-F
+Move cursor one character to the right.
.TP 16
.BR Ctrl\-H
-Delete one character behind the cursor.
+Delete one character before the cursor.
+
+.TP 16
+.BR Ctrl\-K
+Delete everything after the cursor on the input line.
.TP 16
.BR Ctrl\-L
Clear the screen.
.TP 16
-.BR Ctrl\-W
-Delete a word behind the cursor
+.BR Ctrl\-N/Ctrl\-P
+Go forwards and backwards through history.
.TP 16
-.BR Alt\-A
-Move cursor forward one word.
+.BR Ctrl\-U
+Delete everything before the cursor on the input line.
.TP 16
-.BR Alt\-B
-Move cursor backwards one word.
+.BR Ctrl\-W
+Delete one word before the cursor.
.TP 16
-.BR Delete
-Delete character on cursor.
+.BR Alt\-B/Alt\-F
+Move cursor backwards and forwards one word.
.TP 16
-.BR Alt\-H
-Move cursor one character to the left.
+.BR Alt\-D
+Delete one word after the cursor.
.TP 16
-.BR Alt\-L
-Move cursor one character to the right.
+.BR Alt\-,
+Go to earliest item in history.
.TP 16
-.BR Alt\-D
-Delete word at cursor.
+.BR Alt\-.
+Go to last item in history.
.LP