mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-19 05:13:44 +08:00
96416cc49e
* feat: improve konsole completion * Improve konsole profile completion to be dynamic Directly complete --profile as a long argument * Dynamically complete konsole -p
35 lines
1.9 KiB
Fish
35 lines
1.9 KiB
Fish
# Completion for konsole
|
|
|
|
complete -c konsole -f
|
|
|
|
complete -c konsole -l help -xs h -d 'Show help and exit'
|
|
complete -c konsole -l help-all -d 'Show all options and exit'
|
|
complete -c konsole -l version -xs v -d 'Show version and exit'
|
|
complete -c konsole -l author -d 'Show author info and exit'
|
|
complete -c konsole -l license -d 'Show license info and exit'
|
|
complete -c konsole -l desktopfile -d 'Base file name of desktop entry'
|
|
complete -c konsole -l profile -d 'Name of profile to use' -xa "(konsole --list-profiles)"
|
|
complete -c konsole -l layout -r -d 'json layoutfile to be loaded'
|
|
complete -c konsole -l builtin-profile -d 'Use the built-in profile'
|
|
complete -c konsole -l workdir -d 'Set initial working dir' -xa "(__fish_complete_directories)"
|
|
complete -c konsole -l hold -l noclose -d 'Do not close when command exists'
|
|
complete -c konsole -l new-tab -d 'Create a new tab'
|
|
complete -c konsole -l tabs-from-file -r -d 'Create tabs from tabs config'
|
|
complete -c konsole -l background-mode -d 'Start Konsole in the background'
|
|
complete -c konsole -l separate -l nofork -d 'Run in a separate process'
|
|
complete -c konsole -l show-menubar -d 'Show the menubar'
|
|
complete -c konsole -l hide-menubar -d 'Hide the menubar'
|
|
complete -c konsole -l show-tabbar -d 'Show the tabbar'
|
|
complete -c konsole -l hide-tabbar -d 'Hide the tabbar'
|
|
complete -c konsole -l fullscreen -d 'Start Konsole in fullscreen mode'
|
|
complete -c konsole -l notransparency -d 'Disable transparent backgrounds'
|
|
complete -c konsole -l list-profiles -d 'List the available profiles'
|
|
complete -c konsole -l list-profile-properties -d 'List all the profile properties'
|
|
complete -c konsole -s p -d '<P=V> Change profile property' -ra "(__konsole_profile_ops)"
|
|
complete -c konsole -xs e -d '<CMD> Command to execute'
|
|
complete -c konsole -l force-reuse -d 'Force re-using existing instance'
|
|
|
|
function __konsole_profile_ops
|
|
konsole --list-profile-properties | string replace -fr '^(\S+) .*' '$1='
|
|
end
|