Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76212 - [sops] autocomplete file name as first argument broken in ZSH

Attached to Project: Community Packages
Opened by Dawid Janczak (Gat) - Saturday, 15 October 2022, 03:17 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:04 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daurnimator (daurnimator)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Hello,

Trying to autocomplete filename as the first argument to sops (i.e. typing `sops <directory_name><Tab>`) does not work in zsh, but does in bash. Autocompleting a filename after `-d` switch works in both.

Additional info:
sops 3.7.3 (latest)

Steps to reproduce:
Install sops and type in `sops <existing_directory_name><tab>` in the shell in zsh - nothing happens instead of showing contents of that directory.
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:04 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/sops/issues/1
Comment by Chih-Hsuan Yen (yan12125) - Saturday, 15 October 2022, 10:26 GMT
The issue in zsh can be addressed by adding a few lines to zsh_autocomplete.
Comment by Daurnimator (daurnimator) - Saturday, 15 October 2022, 10:53 GMT
Duplicate of  FS#70588 ?
Comment by Chih-Hsuan Yen (yan12125) - Saturday, 15 October 2022, 11:09 GMT
Not really.  FS#70588  said:

> The `zsh` completion introduced in latest commit of package is broken and don't complete the `-` or `--` options.

The current sops can complete `-` or `--` options. Filenames after `-d` also work, while sops <filenames> not.

Loading...