summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-18 20:21:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-18 20:21:14 -0700
commitd8ef238e540a00b77d7c66645b266922a5ecd6fa (patch)
treef8c363521fa6aa89c43ec0b3449cc92aa6dc4a95 /txr.1
parentf73367555810f19906e659622c3677eaa9cce59b (diff)
downloadtxr-d8ef238e540a00b77d7c66645b266922a5ecd6fa.tar.gz
txr-d8ef238e540a00b77d7c66645b266922a5ecd6fa.tar.bz2
txr-d8ef238e540a00b77d7c66645b266922a5ecd6fa.zip
linenoise: insert previous word feature
* linenoise/linenoise.c (edit): Ctrl-X Ctrl-W, or Ctrl-X w, with an optional number in between, cause a word from the previous line to be inserted. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.113
1 files changed, 13 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 09f6cf45..d4ba9353 100644
--- a/txr.1
+++ b/txr.1
@@ -33699,6 +33699,19 @@ Navigating to a history line manually using the up and down arrow keys (or
Ctrl-P/Ctrl-N) has the same net effect same as locating that line using
Ctrl-R search.
+.NP* Insert Previous Word
+
+The equivalent command sequences Ctrl-X, w and Ctrl-X, Ctrl-W insert
+a word from the previous line at the cursor position. A word is defined
+as a sequence of non-whitespace characters, separated from other words
+by whitespace. By default, the last word of the previous line is inserted.
+Between the Ctrl-X and Ctrl-W or w, a decimal number can be entered.
+The number 1 specifies that the last word is to be inserted, 2 specifies
+the second last word, 3 the third word from the right and so on.
+Only the most recent three decimal digits are retained, so the number can range
+from 0 to 999. A value of 0, or a value which exceeds the number of words
+causes the Ctrl-W or w to do nothing.
+
.NP* Symbolic Completion
If the Tab key is pressed while editing a line, it is interpreted as a