[pacman-dev,1/2] Update completion for -F changes

Message ID 20191023094104.3991-1-allan@archlinux.org
State Accepted, archived
Headers show
Series [pacman-dev,1/2] Update completion for -F changes | expand

Commit Message

Allan McRae Oct. 23, 2019, 9:41 a.m. UTC
Signed-off-by: Allan McRae <allan@archlinux.org>
---
 scripts/completion/bash_completion.in | 3 +--
 scripts/completion/zsh_completion.in  | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)

Comments

Bruno Pagani Oct. 23, 2019, 11:56 a.m. UTC | #1
Le 23/10/2019 à 11:41, Allan McRae a écrit :
> -  files=('list machinereadable owns search refresh regex' 'l o s x y')
> +  files=('list machinereadablerefresh regex' 'l x y')

Missing white space?
Allan McRae Oct. 23, 2019, 12:07 p.m. UTC | #2
On 23/10/19 9:56 pm, Bruno Pagani wrote:
> Le 23/10/2019 à 11:41, Allan McRae a écrit :
>> -  files=('list machinereadable owns search refresh regex' 'l o s x y')
>> +  files=('list machinereadablerefresh regex' 'l x y')
> 
> Missing white space?
> .
> 

Thanks - fixed.

A

Patch

diff --git a/scripts/completion/bash_completion.in b/scripts/completion/bash_completion.in
index 915004e2..129a87aa 100644
--- a/scripts/completion/bash_completion.in
+++ b/scripts/completion/bash_completion.in
@@ -109,7 +109,7 @@  _pacman() {
   local cur prev words cword
   _init_completion || return
   database=('asdeps asexplicit')
-  files=('list machinereadable owns search refresh regex' 'l o s x y')
+  files=('list machinereadablerefresh regex' 'l x y')
   query=('changelog check deps explicit file foreign groups info list native owns
           search unrequired upgrades' 'c e g i k l m n o p s t u')
   remove=('cascade dbonly nodeps assume-installed nosave print recursive unneeded' 'c n p s u')
@@ -136,7 +136,6 @@  _pacman() {
           _pacman_pkg Qq;;
       F)
         { _arch_incomp 'l list'   && _pacman_pkg Slq ; }       ||
-          _arch_incomp 'o owns'   ||
           compopt +o default;;
       Q)
         { _arch_incomp 'g groups' && _pacman_pkg Qg sort; }    ||
diff --git a/scripts/completion/zsh_completion.in b/scripts/completion/zsh_completion.in
index c114ae02..82868344 100644
--- a/scripts/completion/zsh_completion.in
+++ b/scripts/completion/zsh_completion.in
@@ -101,8 +101,6 @@  _pacman_opts_database=(
 
 _pacman_opts_files=(
 	{-l,--list}'[List the files owned by the queried package]:package:_pacman_completions_all_packages'
-	{-o,--owns}'[Query the package that owns]:files:_files'
-	{-s,--search}'[Search package file names for matching strings]:files:_files'
 	{-x,--regex}'[Enable searching using regular expressions]:regex:'
 	{-y,--refresh}'[Download fresh files databases from the server]'
 	'--machinereadable[Produce machine-readable output]'