diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-11-07 11:13:48 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-11-07 11:13:48 +0000 |
commit | ec6914b061c652a26078af71a29a3d3402583b52 (patch) | |
tree | 0a7b73bffa50d3434268aacccd3f070645a0bbda /Doc | |
parent | a6e039e12e5b9e480b876971ff644c3180efb2bc (diff) | |
download | zsh-ec6914b061c652a26078af71a29a3d3402583b52.tar.gz zsh-ec6914b061c652a26078af71a29a3d3402583b52.tar.xz zsh-ec6914b061c652a26078af71a29a3d3402583b52.zip |
29894: display and use previous replacement in replace-string
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Zsh/contrib.yo | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 05bbcd7ec..b02c61c45 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -2335,6 +2335,11 @@ regular expression matching is performed, else a literal string replacement. Note that the previous source and replacement text are the same whether pattern, regular expression or string matching is used. +In addition, tt(replace-string) shows the previous replacement above +the prompt, so long as there was one during the current session; if the +source string is empty, that replacement will be repeated without +the widget prompting for a replacement string. + For example, starting from the line: example(print This line contains fan and fond) |