Skip to content

Commit

Permalink
Merge pull request #91 from chaqchase/update-shell-completions
Browse files Browse the repository at this point in the history
chore: update shell completions
  • Loading branch information
chaqchase authored Jan 6, 2025
2 parents f7f4a12 + 2529059 commit a25015e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions completions/_lla
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ _lla() {
'*--enable-plugin=[Enable specific plugins]: : ' \
'*--disable-plugin=[Disable specific plugins]: : ' \
'--plugins-dir=[Specify the plugins directory]: : ' \
'--permission-format=[Format for displaying permissions (symbolic, octal, binary, verbose, compact)]: :(symbolic octal binary verbose compact)' \
'-h[Print help information]' \
'--help[Print help information]' \
'-V[Print version information]' \
Expand All @@ -36,6 +37,7 @@ _lla() {
'--table[Use table listing format (overrides config format)]' \
'-g[Use grid listing format (overrides config format)]' \
'--grid[Use grid listing format (overrides config format)]' \
'--grid-ignore[Use grid view ignoring terminal width (Warning: output may extend beyond screen width)]' \
'-S[Show visual representation of file sizes (overrides config format)]' \
'--sizemap[Show visual representation of file sizes (overrides config format)]' \
'--timeline[Group files by time periods (overrides config format)]' \
Expand Down
6 changes: 5 additions & 1 deletion completions/lla.bash
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ _lla() {

case "${cmd}" in
lla)
opts="-h -V -d -l -t -T -g -S -G -F -s -r -f -c -R --help --version --depth --long --tree --table --grid --sizemap --timeline --git --fuzzy --icons --no-icons --no-color --sort --sort-reverse --sort-dirs-first --sort-case-sensitive --sort-natural --filter --case-sensitive --enable-plugin --disable-plugin --plugins-dir --recursive --include-dirs --dirs-only --files-only --symlinks-only --no-dirs --no-files --no-symlinks --no-dotfiles --dotfiles-only <directory> install plugin list-plugins use init config update clean shortcut completion theme help"
opts="-h -V -d -l -t -T -g -S -G -F -s -r -f -c -R --help --version --depth --long --tree --table --grid --grid-ignore --sizemap --timeline --git --fuzzy --icons --no-icons --no-color --sort --sort-reverse --sort-dirs-first --sort-case-sensitive --sort-natural --filter --case-sensitive --enable-plugin --disable-plugin --plugins-dir --recursive --include-dirs --dirs-only --files-only --symlinks-only --no-dirs --no-files --no-symlinks --no-dotfiles --dotfiles-only --permission-format <directory> install plugin list-plugins use init config update clean shortcut completion theme help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down Expand Up @@ -109,6 +109,10 @@ _lla() {
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--permission-format)
COMPREPLY=($(compgen -W "symbolic octal binary verbose compact" -- "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
Expand Down
2 changes: 2 additions & 0 deletions completions/lla.elv
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ set edit:completion:arg-completer[lla] = {|@words|
cand --enable-plugin 'Enable specific plugins'
cand --disable-plugin 'Disable specific plugins'
cand --plugins-dir 'Specify the plugins directory'
cand --permission-format 'Format for displaying permissions (symbolic, octal, binary, verbose, compact)'
cand -h 'Print help information'
cand --help 'Print help information'
cand -V 'Print version information'
Expand All @@ -39,6 +40,7 @@ set edit:completion:arg-completer[lla] = {|@words|
cand --table 'Use table listing format (overrides config format)'
cand -g 'Use grid listing format (overrides config format)'
cand --grid 'Use grid listing format (overrides config format)'
cand --grid-ignore 'Use grid view ignoring terminal width (Warning: output may extend beyond screen width)'
cand -S 'Show visual representation of file sizes (overrides config format)'
cand --sizemap 'Show visual representation of file sizes (overrides config format)'
cand --timeline 'Group files by time periods (overrides config format)'
Expand Down
2 changes: 2 additions & 0 deletions completions/lla.fish
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ complete -c lla -n "__fish_use_subcommand" -s f -l filter -d 'Filter files by na
complete -c lla -n "__fish_use_subcommand" -l enable-plugin -d 'Enable specific plugins' -r
complete -c lla -n "__fish_use_subcommand" -l disable-plugin -d 'Disable specific plugins' -r
complete -c lla -n "__fish_use_subcommand" -l plugins-dir -d 'Specify the plugins directory' -r
complete -c lla -n "__fish_use_subcommand" -l permission-format -d 'Format for displaying permissions (symbolic, octal, binary, verbose, compact)' -r -f -a "{symbolic ,octal ,binary ,verbose ,compact }"
complete -c lla -n "__fish_use_subcommand" -s h -l help -d 'Print help information'
complete -c lla -n "__fish_use_subcommand" -s V -l version -d 'Print version information'
complete -c lla -n "__fish_use_subcommand" -s l -l long -d 'Use long listing format (overrides config format)'
complete -c lla -n "__fish_use_subcommand" -s t -l tree -d 'Use tree listing format (overrides config format)'
complete -c lla -n "__fish_use_subcommand" -s T -l table -d 'Use table listing format (overrides config format)'
complete -c lla -n "__fish_use_subcommand" -s g -l grid -d 'Use grid listing format (overrides config format)'
complete -c lla -n "__fish_use_subcommand" -l grid-ignore -d 'Use grid view ignoring terminal width (Warning: output may extend beyond screen width)'
complete -c lla -n "__fish_use_subcommand" -s S -l sizemap -d 'Show visual representation of file sizes (overrides config format)'
complete -c lla -n "__fish_use_subcommand" -l timeline -d 'Group files by time periods (overrides config format)'
complete -c lla -n "__fish_use_subcommand" -s G -l git -d 'Show git status and information (overrides config format)'
Expand Down
2 changes: 2 additions & 0 deletions completions/lla.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Register-ArgumentCompleter -Native -CommandName 'lla' -ScriptBlock {
[CompletionResult]::new('--enable-plugin', 'enable-plugin', [CompletionResultType]::ParameterName, 'Enable specific plugins')
[CompletionResult]::new('--disable-plugin', 'disable-plugin', [CompletionResultType]::ParameterName, 'Disable specific plugins')
[CompletionResult]::new('--plugins-dir', 'plugins-dir', [CompletionResultType]::ParameterName, 'Specify the plugins directory')
[CompletionResult]::new('--permission-format', 'permission-format', [CompletionResultType]::ParameterName, 'Format for displaying permissions (symbolic, octal, binary, verbose, compact)')
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information')
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information')
[CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information')
Expand All @@ -42,6 +43,7 @@ Register-ArgumentCompleter -Native -CommandName 'lla' -ScriptBlock {
[CompletionResult]::new('--table', 'table', [CompletionResultType]::ParameterName, 'Use table listing format (overrides config format)')
[CompletionResult]::new('-g', 'g', [CompletionResultType]::ParameterName, 'Use grid listing format (overrides config format)')
[CompletionResult]::new('--grid', 'grid', [CompletionResultType]::ParameterName, 'Use grid listing format (overrides config format)')
[CompletionResult]::new('--grid-ignore', 'grid-ignore', [CompletionResultType]::ParameterName, 'Use grid view ignoring terminal width (Warning: output may extend beyond screen width)')
[CompletionResult]::new('-S', 'S', [CompletionResultType]::ParameterName, 'Show visual representation of file sizes (overrides config format)')
[CompletionResult]::new('--sizemap', 'sizemap', [CompletionResultType]::ParameterName, 'Show visual representation of file sizes (overrides config format)')
[CompletionResult]::new('--timeline', 'timeline', [CompletionResultType]::ParameterName, 'Group files by time periods (overrides config format)')
Expand Down

0 comments on commit a25015e

Please sign in to comment.