Skip to content

Commit df41f0b

Browse files
frouthisisjofrank
authored andcommitted
docs(cli/repl): Elaborate on what the Ctrl-V keybinding does (denoland#1481)
Co-authored-by: Jo Franchetti <[email protected]>
1 parent c311126 commit df41f0b

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

runtime/reference/cli/repl.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -112,45 +112,45 @@ readTextFileSync readFileSync readDir readLink readAllS
112112

113113
## Keyboard shortcuts
114114

115-
| Keystroke | Action |
116-
| --------------------- | ------------------------------------------------------------------------------------------------ |
117-
| Ctrl-A, Home | Move cursor to the beginning of line |
118-
| Ctrl-B, Left | Move cursor one character left |
119-
| Ctrl-C | Interrupt and cancel the current edit |
120-
| Ctrl-D | If line _is_ empty, signal end of line |
121-
| Ctrl-D, Del | If line is _not_ empty, delete character under cursor |
122-
| Ctrl-E, End | Move cursor to end of line |
123-
| Ctrl-F, Right | Move cursor one character right |
124-
| Ctrl-H, Backspace | Delete character before cursor |
125-
| Ctrl-I, Tab | Next completion |
126-
| Ctrl-J, Ctrl-M, Enter | Finish the line entry |
127-
| Ctrl-K | Delete from cursor to end of line |
128-
| Ctrl-L | Clear screen |
129-
| Ctrl-N, Down | Next match from history |
130-
| Ctrl-P, Up | Previous match from history |
131-
| Ctrl-R | Reverse Search history (Ctrl-S forward, Ctrl-G cancel) |
132-
| Ctrl-T | Transpose previous character with current character |
133-
| Ctrl-U | Delete from start of line to cursor |
134-
| Ctrl-V | Insert any special character without performing its associated action |
135-
| Ctrl-W | Delete word leading up to cursor (using white space as a word boundary) |
136-
| Ctrl-X Ctrl-U | Undo |
137-
| Ctrl-Y | Paste from Yank buffer |
138-
| Ctrl-Y | Paste from Yank buffer (Meta-Y to paste next yank instead) |
139-
| Ctrl-Z | Suspend (Unix only) |
140-
| Ctrl-_ | Undo |
141-
| Meta-0, 1, ..., - | Specify the digit to the argument. `` starts a negative argument. |
142-
| Meta &lt; | Move to first entry in history |
143-
| Meta &gt; | Move to last entry in history |
144-
| Meta-B, Alt-Left | Move cursor to previous word |
145-
| Meta-Backspace | Kill from the start of the current word, or, if between words, to the start of the previous word |
146-
| Meta-C | Capitalize the current word |
147-
| Meta-D | Delete forwards one word |
148-
| Meta-F, Alt-Right | Move cursor to next word |
149-
| Meta-L | Lower-case the next word |
150-
| Meta-T | Transpose words |
151-
| Meta-U | Upper-case the next word |
152-
| Meta-Y | See Ctrl-Y |
153-
| Ctrl-S | Insert a new line |
115+
| Keystroke | Action |
116+
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
117+
| Ctrl-A, Home | Move cursor to the beginning of line |
118+
| Ctrl-B, Left | Move cursor one character left |
119+
| Ctrl-C | Interrupt and cancel the current edit |
120+
| Ctrl-D | If line _is_ empty, signal end of line |
121+
| Ctrl-D, Del | If line is _not_ empty, delete character under cursor |
122+
| Ctrl-E, End | Move cursor to end of line |
123+
| Ctrl-F, Right | Move cursor one character right |
124+
| Ctrl-H, Backspace | Delete character before cursor |
125+
| Ctrl-I, Tab | Next completion |
126+
| Ctrl-J, Ctrl-M, Enter | Finish the line entry |
127+
| Ctrl-K | Delete from cursor to end of line |
128+
| Ctrl-L | Clear screen |
129+
| Ctrl-N, Down | Next match from history |
130+
| Ctrl-P, Up | Previous match from history |
131+
| Ctrl-R | Reverse Search history (Ctrl-S forward, Ctrl-G cancel) |
132+
| Ctrl-T | Transpose previous character with current character |
133+
| Ctrl-U | Delete from start of line to cursor |
134+
| Ctrl-V, Ctrl-Q | Insert the subsequent character verbatim instead of performing any Action associated with it. For example, to insert a newline while editing a multi-line history entry, press Ctrl-V then Ctrl-J (Ctrl-J is the ASCII Control Character `Line Feed`) |
135+
| Ctrl-W | Delete word leading up to cursor (using white space as a word boundary) |
136+
| Ctrl-X Ctrl-U | Undo |
137+
| Ctrl-Y | Paste from Yank buffer |
138+
| Ctrl-Y | Paste from Yank buffer (Meta-Y to paste next yank instead) |
139+
| Ctrl-Z | Suspend (Unix only) |
140+
| Ctrl-_ | Undo |
141+
| Meta-0, 1, ..., - | Specify the digit to the argument. `` starts a negative argument. |
142+
| Meta &lt; | Move to first entry in history |
143+
| Meta &gt; | Move to last entry in history |
144+
| Meta-B, Alt-Left | Move cursor to previous word |
145+
| Meta-Backspace | Kill from the start of the current word, or, if between words, to the start of the previous word |
146+
| Meta-C | Capitalize the current word |
147+
| Meta-D | Delete forwards one word |
148+
| Meta-F, Alt-Right | Move cursor to next word |
149+
| Meta-L | Lower-case the next word |
150+
| Meta-T | Transpose words |
151+
| Meta-U | Upper-case the next word |
152+
| Meta-Y | See Ctrl-Y |
153+
| Ctrl-S | Insert a new line |
154154

155155
## `DENO_REPL_HISTORY`
156156

0 commit comments

Comments
 (0)