summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-14 15:27:13 -0500
committerJune McEnroe <june@causal.agency>2019-01-14 15:27:13 -0500
commitbdd96d1271d1e90798b15ba5d886c15524b4afd2 (patch)
treede44d628fb5421ed3e250f5560a194d9e881043f
parentAllow replacing empty string with fc old=new (diff)
downloadsrc-bdd96d1271d1e90798b15ba5d886c15524b4afd2.tar.gz
src-bdd96d1271d1e90798b15ba5d886c15524b4afd2.zip
Document old=new argument of fc -s
-rw-r--r--bin/cash/cash.111
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/cash/cash.1 b/bin/cash/cash.1
index 49a4f1cc..7cd96c3a 100644
--- a/bin/cash/cash.1
+++ b/bin/cash/cash.1
@@ -2512,6 +2512,17 @@ nor
 .It Fl s
 Re-execute the command without invoking an editor.
 .
+.It Ar old Ns = Ns new
+Replace the first occurrence of
+.Ar old
+in the command with
+.Ar new .
+If
+.Ar old
+is the empty string,
+the command is prefixed with
+.Ar new .
+.
 .It Ar first
 .It Ar last
 Select the commands to list or edit.
b829104dac8581ae0a9b1a48bb54&follow=1'>Use colours in cash promptsJune McEnroe 2019-01-12Set PSlit like NetBSD shJune McEnroe 2019-01-12Install gnupg2 from pkgsrc and symlink gpgJune McEnroe 2019-01-12Reference cash builtin man pages in cash.1 SEE ALSOJune McEnroe 2019-01-12Restore cash builtin man page datesJune McEnroe 2019-01-12Use local libeditJune McEnroe 2019-01-12Replace libedit MakefileJune McEnroe 2019-01-11Import /usr/src/lib/libedit from NetBSD 8.0June McEnroe 2019-01-11Add PSlit for prompt escapesJune McEnroe 2019-01-11Don't make depend automaticallyJune McEnroe2022-02-19Remove unneeded includes in ui.cJune McEnroe 2022-02-19Reimplement tab completeJune McEnroe 2022-02-19Handle errors from editFn, etc.June McEnroe 2022-02-19Reimplement text macrosJune McEnroe 2022-02-19Factor out input handling to input.cJune McEnroe 2022-02-19Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe In other words, warn when a function is missing static. I don't see why this isn't in -Wextra. 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe I know, it feels wrong. 2022-02-18Implement new line editing "library"June McEnroe Losing tab complete and text macros, for now. This new implementation works on an instance of a struct and does not interact with the rest of catgirl, making it possible to copy into another project. Unlike existing line editing libraries, this one is entirely abstract and can be rendered externally. My goal with this library is to be able to implement vi mode. Since it operates on struct instances rather than globals, it might also be possible to give catgirl separate line editing buffers for each window, which would be a nice UX improvement. 2022-02-18Simplify cursor positioning in inputJune McEnroe Do some extra work by adding the portion before the cursor to the input window twice, but simplify the interaction with the split point. This fixes the awkward behaviour when moving the cursor across colour codes where the code would be partially interpreted up to the cursor. 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe