Skip to content

Commit

Permalink
Adds dialogs autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
bensleveritt committed Aug 24, 2020
1 parent 72dfead commit 45bbb55
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions completion/bash/m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ _m_sub () {
bluetooth)
subcommands=(status on enable off disable help)
;;
dialogs)
subcommands=(autoexpand)
;;
dir)
subcommands=(tree size delete help)
;;
Expand Down
3 changes: 3 additions & 0 deletions completion/fish/m.fish
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ complete -f -c m -n '__fish_m_using_command bluetooth' -a "off" -d 'turn off blu
complete -f -c m -n '__fish_m_using_command bluetooth' -a "disable" -d 'turn off bluetooth'
complete -f -c m -n '__fish_m_using_command bluetooth' -a "help" -d 'Show help'

complete -f -c m -n '__fish_m_needs_command' -a dialogs -d 'Manage dialogs'
complete -f -c m -n '__fish_m_needs_command dialogs' -a "autoexpand" -d 'Whether print, save and other dialogs auto-expand'

## XXX:
complete -f -c m -n '__fish_m_needs_command' -a dir -d 'Show and delete dir trees'
complete -f -c m -n '__fish_m_using_command dir' -a "tree" -d 'tree view of folders in the current or specified path'
Expand Down
5 changes: 5 additions & 0 deletions completion/zsh/_m
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,11 @@ function _m_cmd {
"disable:turn off bluetooth" \
help
;;
dialogs)
_m_solo \
$sub \
"autoexpand:Whether dialogs auto-expand"
;;
dir)
_m_dir
;;
Expand Down

0 comments on commit 45bbb55

Please sign in to comment.