Skip to content

Commit 45bbb55

Browse files
committed
Adds dialogs autocomplete
1 parent 72dfead commit 45bbb55

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

completion/bash/m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ _m_sub () {
1818
bluetooth)
1919
subcommands=(status on enable off disable help)
2020
;;
21+
dialogs)
22+
subcommands=(autoexpand)
23+
;;
2124
dir)
2225
subcommands=(tree size delete help)
2326
;;

completion/fish/m.fish

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ complete -f -c m -n '__fish_m_using_command bluetooth' -a "off" -d 'turn off blu
6262
complete -f -c m -n '__fish_m_using_command bluetooth' -a "disable" -d 'turn off bluetooth'
6363
complete -f -c m -n '__fish_m_using_command bluetooth' -a "help" -d 'Show help'
6464

65+
complete -f -c m -n '__fish_m_needs_command' -a dialogs -d 'Manage dialogs'
66+
complete -f -c m -n '__fish_m_needs_command dialogs' -a "autoexpand" -d 'Whether print, save and other dialogs auto-expand'
67+
6568
## XXX:
6669
complete -f -c m -n '__fish_m_needs_command' -a dir -d 'Show and delete dir trees'
6770
complete -f -c m -n '__fish_m_using_command dir' -a "tree" -d 'tree view of folders in the current or specified path'

completion/zsh/_m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,11 @@ function _m_cmd {
417417
"disable:turn off bluetooth" \
418418
help
419419
;;
420+
dialogs)
421+
_m_solo \
422+
$sub \
423+
"autoexpand:Whether dialogs auto-expand"
424+
;;
420425
dir)
421426
_m_dir
422427
;;

0 commit comments

Comments
 (0)