Skip to content

Commit fd80e02

Browse files
committed
Adds dialogs autocomplete
1 parent b5825b5 commit fd80e02

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
@@ -21,6 +21,9 @@ _m_sub () {
2121
bluetooth)
2222
subcommands=(status on enable off disable help)
2323
;;
24+
dialogs)
25+
subcommands=(autoexpand)
26+
;;
2427
dir)
2528
subcommands=(tree size delete help)
2629
;;

completion/fish/m.fish

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

68+
complete -f -c m -n '__fish_m_needs_command' -a dialogs -d 'Manage dialogs'
69+
complete -f -c m -n '__fish_m_needs_command dialogs' -a "autoexpand" -d 'Whether print, save and other dialogs auto-expand'
70+
6871
## XXX:
6972
complete -f -c m -n '__fish_m_needs_command' -a dir -d 'Show and delete dir trees'
7073
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
@@ -423,6 +423,11 @@ function _m_cmd {
423423
"disable:turn off bluetooth" \
424424
help
425425
;;
426+
dialogs)
427+
_m_solo \
428+
$sub \
429+
"autoexpand:Whether dialogs auto-expand"
430+
;;
426431
dir)
427432
_m_dir
428433
;;

0 commit comments

Comments
 (0)