Skip to content

Commit

Permalink
Merge pull request #2062 from jqnatividad/replace-literal
Browse files Browse the repository at this point in the history
`contrib(completions)`: add `--literal` completion to `replace`
  • Loading branch information
jqnatividad authored Aug 17, 2024
2 parents 7196053 + e664d08 commit e642985
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completions/examples/qsv.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2268,7 +2268,7 @@ _qsv() {
return 0
;;
qsv__replace)
opts="-h --ignore-case --select --unicode --size-limit --dfa-size-limit --output --no-headers --delimiter --progressbar --quiet --help"
opts="-h --ignore-case --literal --select --unicode --size-limit --dfa-size-limit --output --no-headers --delimiter --progressbar --quiet --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/examples/qsv.elv
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ set edit:completion:arg-completer[qsv] = {|@words|
}
&'qsv;replace'= {
cand --ignore-case 'ignore-case'
cand --literal 'literal'
cand --select 'select'
cand --unicode 'unicode'
cand --size-limit 'size-limit'
Expand Down
3 changes: 3 additions & 0 deletions contrib/completions/examples/qsv.fig.js
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,9 @@ const completion: Fig.Spec = {
{
name: "--ignore-case",
},
{
name: "--literal",
},
{
name: "--select",
},
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/examples/qsv.fish
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ complete -c qsv -n "__fish_qsv_using_subcommand rename" -l no-headers
complete -c qsv -n "__fish_qsv_using_subcommand rename" -l delimiter
complete -c qsv -n "__fish_qsv_using_subcommand rename" -s h -l help -d 'Print help'
complete -c qsv -n "__fish_qsv_using_subcommand replace" -l ignore-case
complete -c qsv -n "__fish_qsv_using_subcommand replace" -l literal
complete -c qsv -n "__fish_qsv_using_subcommand replace" -l select
complete -c qsv -n "__fish_qsv_using_subcommand replace" -l unicode
complete -c qsv -n "__fish_qsv_using_subcommand replace" -l size-limit
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/examples/qsv.nu
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ module completions {

export extern "qsv replace" [
--ignore-case
--literal
--select
--unicode
--size-limit
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/examples/qsv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ Register-ArgumentCompleter -Native -CommandName 'qsv' -ScriptBlock {
}
'qsv;replace' {
[CompletionResult]::new('--ignore-case', 'ignore-case', [CompletionResultType]::ParameterName, 'ignore-case')
[CompletionResult]::new('--literal', 'literal', [CompletionResultType]::ParameterName, 'literal')
[CompletionResult]::new('--select', 'select', [CompletionResultType]::ParameterName, 'select')
[CompletionResult]::new('--unicode', 'unicode', [CompletionResultType]::ParameterName, 'unicode')
[CompletionResult]::new('--size-limit', 'size-limit', [CompletionResultType]::ParameterName, 'size-limit')
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/examples/qsv.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ _arguments "${_arguments_options[@]}" : \
(replace)
_arguments "${_arguments_options[@]}" : \
'--ignore-case[]' \
'--literal[]' \
'--select[]' \
'--unicode[]' \
'--size-limit[]' \
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/src/cmd/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use clap::{arg, Command};
pub fn replace_cmd() -> Command {
Command::new("replace").args([
arg!(--"ignore-case"),
arg!(--literal),
arg!(--select),
arg!(--unicode),
arg!(--"size-limit"),
Expand Down

0 comments on commit e642985

Please sign in to comment.