Skip to content

Commit

Permalink
Merge pull request #77 from triyanox/update-shell-completions
Browse files Browse the repository at this point in the history
chore: update shell completions
  • Loading branch information
chaqchase authored Dec 28, 2024
2 parents fb6182c + d837fa3 commit 88481de
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
8 changes: 8 additions & 0 deletions completions/_lla
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ _lla() {
'-R[Use recursive listing format]' \
'--recursive[Use recursive listing format]' \
'--include-dirs[Include directory sizes in the metadata]' \
'--dirs-only[Show only directories]' \
'--files-only[Show only regular files]' \
'--symlinks-only[Show only symbolic links]' \
'--no-dirs[Hide directories]' \
'--no-files[Hide regular files]' \
'--no-symlinks[Hide symbolic links]' \
'--no-dotfiles[Hide dot files and directories (those starting with a dot)]' \
'--dotfiles-only[Show only dot files and directories (those starting with a dot)]' \
'::directory -- The directory to list:' \
":: :_lla_commands" \
"*::: :->lla" \
Expand Down
2 changes: 1 addition & 1 deletion completions/lla.bash
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,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 <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 --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"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down
8 changes: 8 additions & 0 deletions completions/lla.elv
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ set edit:completion:arg-completer[lla] = {|@words|
cand -R 'Use recursive listing format'
cand --recursive 'Use recursive listing format'
cand --include-dirs 'Include directory sizes in the metadata'
cand --dirs-only 'Show only directories'
cand --files-only 'Show only regular files'
cand --symlinks-only 'Show only symbolic links'
cand --no-dirs 'Hide directories'
cand --no-files 'Hide regular files'
cand --no-symlinks 'Hide symbolic links'
cand --no-dotfiles 'Hide dot files and directories (those starting with a dot)'
cand --dotfiles-only 'Show only dot files and directories (those starting with a dot)'
cand install 'Install a plugin'
cand plugin 'Run a plugin action'
cand list-plugins 'List all available plugins'
Expand Down
8 changes: 8 additions & 0 deletions completions/lla.fish
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ complete -c lla -n "__fish_use_subcommand" -l sort-natural -d 'Use natural sorti
complete -c lla -n "__fish_use_subcommand" -s c -l case-sensitive -d 'Enable case-sensitive filtering (overrides config setting)'
complete -c lla -n "__fish_use_subcommand" -s R -l recursive -d 'Use recursive listing format'
complete -c lla -n "__fish_use_subcommand" -l include-dirs -d 'Include directory sizes in the metadata'
complete -c lla -n "__fish_use_subcommand" -l dirs-only -d 'Show only directories'
complete -c lla -n "__fish_use_subcommand" -l files-only -d 'Show only regular files'
complete -c lla -n "__fish_use_subcommand" -l symlinks-only -d 'Show only symbolic links'
complete -c lla -n "__fish_use_subcommand" -l no-dirs -d 'Hide directories'
complete -c lla -n "__fish_use_subcommand" -l no-files -d 'Hide regular files'
complete -c lla -n "__fish_use_subcommand" -l no-symlinks -d 'Hide symbolic links'
complete -c lla -n "__fish_use_subcommand" -l no-dotfiles -d 'Hide dot files and directories (those starting with a dot)'
complete -c lla -n "__fish_use_subcommand" -l dotfiles-only -d 'Show only dot files and directories (those starting with a dot)'
complete -c lla -n "__fish_use_subcommand" -f -a "install" -d 'Install a plugin'
complete -c lla -n "__fish_use_subcommand" -f -a "plugin" -d 'Run a plugin action'
complete -c lla -n "__fish_use_subcommand" -f -a "list-plugins" -d 'List all available plugins'
Expand Down
8 changes: 8 additions & 0 deletions completions/lla.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ Register-ArgumentCompleter -Native -CommandName 'lla' -ScriptBlock {
[CompletionResult]::new('-R', 'R', [CompletionResultType]::ParameterName, 'Use recursive listing format')
[CompletionResult]::new('--recursive', 'recursive', [CompletionResultType]::ParameterName, 'Use recursive listing format')
[CompletionResult]::new('--include-dirs', 'include-dirs', [CompletionResultType]::ParameterName, 'Include directory sizes in the metadata')
[CompletionResult]::new('--dirs-only', 'dirs-only', [CompletionResultType]::ParameterName, 'Show only directories')
[CompletionResult]::new('--files-only', 'files-only', [CompletionResultType]::ParameterName, 'Show only regular files')
[CompletionResult]::new('--symlinks-only', 'symlinks-only', [CompletionResultType]::ParameterName, 'Show only symbolic links')
[CompletionResult]::new('--no-dirs', 'no-dirs', [CompletionResultType]::ParameterName, 'Hide directories')
[CompletionResult]::new('--no-files', 'no-files', [CompletionResultType]::ParameterName, 'Hide regular files')
[CompletionResult]::new('--no-symlinks', 'no-symlinks', [CompletionResultType]::ParameterName, 'Hide symbolic links')
[CompletionResult]::new('--no-dotfiles', 'no-dotfiles', [CompletionResultType]::ParameterName, 'Hide dot files and directories (those starting with a dot)')
[CompletionResult]::new('--dotfiles-only', 'dotfiles-only', [CompletionResultType]::ParameterName, 'Show only dot files and directories (those starting with a dot)')
[CompletionResult]::new('install', 'install', [CompletionResultType]::ParameterValue, 'Install a plugin')
[CompletionResult]::new('plugin', 'plugin', [CompletionResultType]::ParameterValue, 'Run a plugin action')
[CompletionResult]::new('list-plugins', 'list-plugins', [CompletionResultType]::ParameterValue, 'List all available plugins')
Expand Down

0 comments on commit 88481de

Please sign in to comment.