Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gen/completions/_sd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ _sd() {
'-V[Print version]' \
'--version[Print version]' \
':find -- The regexp or string (if using `-F`) to search for:' \
':replace_with -- What to replace each match with. Unless in string mode, you may use captured values like $1, $2, etc:' \
':replace_with -- What to replace each match with. Unless in string mode, you may use captured values like $1, $2, etc. Use $$ to get a literal dollar sign:' \
'*::files -- The path to file(s). This is optional - sd can also read from STDIN:_files' \
&& ret=0
}
Expand Down
2 changes: 1 addition & 1 deletion gen/sd.1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Print version
The regexp or string (if using `\-F`) to search for
.TP
<\fIREPLACE_WITH\fR>
What to replace each match with. Unless in string mode, you may use captured values like $1, $2, etc
What to replace each match with. Unless in string mode, you may use captured values like $1, $2, etc. Use $$ to get a literal dollar sign
.TP
[\fIFILES\fR]
The path to file(s). This is optional \- sd can also read from STDIN.
Expand Down
3 changes: 2 additions & 1 deletion sd-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ w - match full words only
pub find: String,

/// What to replace each match with. Unless in string mode, you may
/// use captured values like $1, $2, etc.
/// use captured values like $1, $2, etc. Use $$ to get a literal
/// dollar sign.
pub replace_with: String,

/// The path to file(s). This is optional - sd can also read from STDIN.
Expand Down