mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Fix completions according to new options (#2043)
This commit is contained in:
parent
757c6525f5
commit
0e3448f96c
@ -7,18 +7,18 @@ opts=(
|
|||||||
'(-)'{-a,--authors}'[print QupZilla authors]'
|
'(-)'{-a,--authors}'[print QupZilla authors]'
|
||||||
'(-)'{-v,--version}'[print QupZilla version]'
|
'(-)'{-v,--version}'[print QupZilla version]'
|
||||||
|
|
||||||
'(-)'{-p=,--profile=}'[start with specified profile]'
|
'(-)'{-p,--profile=}'[start with specified profile]'
|
||||||
'(-)'{-ne,--no-extensions}'[start without extensions]'
|
'(-)'{-e,--no-extensions}'[start without extensions]'
|
||||||
'(-)'{-po,--portable}'[start in portable mode]'
|
'(-)'{-o,--portable}'[start in portable mode]'
|
||||||
|
|
||||||
'(-)'{-nt,--new-tab}'[open new tab]'
|
'(-)'{-t,--new-tab}'[open new tab]'
|
||||||
'(-)'{-nw,--new-window}'[open new window]'
|
'(-)'{-w,--new-window}'[open new window]'
|
||||||
'(-)'{-pb,--private-browsing}'[start private browsing]'
|
'(-)'{-i,--private-browsing}'[start private browsing]'
|
||||||
'(-)'{-dm,--download-manager}'[show download manager]'
|
'(-)'{-d,--download-manager}'[show download manager]'
|
||||||
'(-)'{-fs,--fullscreen}'[toggle fullscreen]'
|
'(-)'{-f,--fullscreen}'[toggle fullscreen]'
|
||||||
'(-)'{-nr,--no-remote}'[open new browser instance]'
|
'(-)'{-r,--no-remote}'[open new browser instance]'
|
||||||
'(-)'{-ct=,--current-tab=}'[open URL in current tab]'
|
'(-)'{-c,--current-tab=}'[open URL in current tab]'
|
||||||
'(-)'{-ow=,--open-window=}'[open URL in new window]'
|
'(-)'{-u,--open-window=}'[open URL in new window]'
|
||||||
'*:files:_files'
|
'*:files:_files'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,11 +7,11 @@ _qupzilla()
|
|||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||||
opts="-h --help -a --authors -v --version -p= --profile=
|
opts="-h --help -a --authors -v --version -p --profile=
|
||||||
-ne --no-extensions -po --portable -nt --new-tab
|
-e --no-extensions -o --portable -t --new-tab
|
||||||
-nw --new-window -pb --private-browsing -dm --download-manager
|
-w --new-window -i --private-browsing -d --download-manager
|
||||||
-fs --fullscreen -nr --no-remote -ct= --current-tab=
|
-f --fullscreen -r --no-remote -c --current-tab=
|
||||||
-ow= --open-window="
|
-u --open-window="
|
||||||
|
|
||||||
if [[ ${cur} == -* ]] ; then
|
if [[ ${cur} == -* ]] ; then
|
||||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||||
|
Loading…
Reference in New Issue
Block a user