Bash autocompletion will be installed by default with make install. Zsh autocompletion has to be installed manually, more on that in linux/completion/READMEremotes/origin/falkon
parent
1947568cf7
commit
b9858f98a4
6 changed files with 55 additions and 2 deletions
@ -0,0 +1,8 @@ |
||||
Bash completion file will be automatically installed with make install |
||||
into /etc/bash_completion.d/ |
||||
|
||||
To install zsh completion file, either manually copy it to proper directory |
||||
(one directory from $fpath) and rename to _qupzilla, or run this |
||||
command: |
||||
|
||||
cp notes "`echo $fpath | cut -d' ' -f1`/_qupzilla" |
||||
@ -0,0 +1,17 @@ |
||||
_qupzilla() |
||||
{ |
||||
local cur prev opts |
||||
COMPREPLY=() |
||||
cur="${COMP_WORDS[COMP_CWORD]}" |
||||
prev="${COMP_WORDS[COMP_CWORD-1]}" |
||||
opts="-h --help -a --authors -v --version -p= --profile= |
||||
-ne --no-extensions -nt --new-tab -pb --private-browsing |
||||
-dm --download-manager -nr --no-remote -ct= --current-tab= |
||||
-ow= --open-window=" |
||||
|
||||
if [[ ${cur} == -* ]] ; then |
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) |
||||
return 0 |
||||
fi |
||||
} |
||||
complete -F _qupzilla qupzilla |
||||
@ -0,0 +1,22 @@ |
||||
#compdef qupzilla |
||||
|
||||
opts=( |
||||
'(-)'{-h,--help}'[print usage help]' |
||||
'(-)'{-a,--authors}'[print QupZilla authors]' |
||||
'(-)'{-v,--version}'[print QupZilla version]' |
||||
|
||||
'(-)'{-p=,--profile=}'[start with specified profile]' |
||||
'(-)'{-ne,--no-extensions}'[start without extensions]' |
||||
|
||||
'(-)'{-nt,--new-tab}'[open new tab]' |
||||
'(-)'{-nw,--new-window}'[open new window]' |
||||
'(-)'{-pb,--private-browsing}'[start private browsing]' |
||||
'(-)'{-dm,--download-manager}'[show download manager]' |
||||
'(-)'{-nr,--no-remote}'[open new instance]' |
||||
'(-)'{-ct=,--current-tab=}'[open URL in current tab]' |
||||
'(-)'{-ow=,--open-window=}'[open URL in new window]' |
||||
) |
||||
|
||||
_x_arguments -C $opts |
||||
|
||||
return 0 |
||||
Loading…
Reference in new issue