Fabian Boehm
5dc07c9e7e
completions: More shortening
...
Also removes a few deprecated options - there's really no need to
offer these.
2024-05-16 18:29:42 +02:00
Johannes Altmanninger
29f35d6cdf
completion: adopt commandline -x replacing deprecated -o
...
This gives us more accurate completions because completion scripts get
expanded paths
2024-01-27 09:28:06 +01:00
Sam Yu
ac6507776f
Add zypper subcommands completion ( #8183 )
...
* Add zypper subcommands completion
rename functions to avoid confusion
* Revert partial changes
2021-07-30 18:24:32 +02:00
Fabian Homborg
c065d24632
completions: More short descriptions
...
Work on #6981 .
2020-12-14 17:42:04 +01:00
Johannes Altmanninger
49c5f96470
Use set -l to force use of a local variable
...
Bare set overwrites a global/universal variable if it exists.
2020-05-15 08:25:07 +02:00
Sam Yu
bbb4a63d67
Fix zypper completion
...
Fix packages completion for `zypper download`
2020-03-16 19:09:16 +01:00
Fabian Homborg
9367d4ff71
Reindent functions to remove useless quotes
...
This does not include checks/function.fish because that currently
includes a "; end" in a message that indent would remove, breaking the test.
2020-03-09 19:46:43 +01:00
Fabian Homborg
69b464bc37
Run fish_indent on all our fish scripts
...
It's now good enough to do so.
We don't allow grid-alignment:
```fish
complete -c foo -s b -l barnanana -a '(something)'
complete -c foo -s z -a '(something)'
```
becomes
```fish
complete -c foo -s b -l barnanana -a '(something)'
complete -c foo -s z -a '(something)'
```
It's just more trouble than it is worth.
The one part I'd change:
We align and/or'd parts of an if-condition with the in-block code:
```fish
if true
and false
dosomething
end
```
becomes
```fish
if true
and false
dosomething
end
```
but it's not used terribly much and if we ever fix it we can just
reindent.
2020-01-13 20:34:22 +01:00
Sam Yu
4de9a3e102
Update zypper completion
...
- fix repo completion
- add completion for locale management
2019-11-13 13:20:38 -08:00
Sam Yu
ffb4f7a4ff
Update zypper completion
...
- update options to the newest version
- re-format and align
2019-11-10 22:17:00 +01:00
Shun Sakai
c566756f3b
Fix long option name of zypper
2019-06-03 16:36:03 +02:00
Fabian Homborg
ce245704d7
Reformat completion scripts
...
These were excluded from style.fish
2019-05-05 12:53:09 +02:00
Sam Yu
17643ef12c
Fix zypper completion
...
* complete installed packages only for `zypper rm`
* remove incorrect local file completion
2018-09-16 21:15:32 -07:00
Sam Yu
495c09fe6b
Add subcommand options completion for zypper
2018-07-03 13:45:39 -07:00
Aaron Gyes
68527ff20c
completions: --description -> -d
...
This ends up saving a surprising number of bytes.
2017-10-11 10:17:35 -07:00
Sam Yu
81becc5f6b
Add repo completion for zypper ( #4325 )
...
* Add repo completion for zypper
* Replace sed with string in __fish_print_zypp_repos
* Move function into completion script
* Update zypper completion
add subcommand packages to __fish_zypper_repo_commands
2017-09-06 09:53:49 +02:00
Sam Yu
6f6a4a842c
Fix typo in zypper.fish
2017-06-30 14:46:43 +02:00
mascafidi
4c47fbc964
Add Expert Options to DUP command completion
2017-05-30 22:38:15 -07:00
Max Gonzih
994e9fe9de
Implement subcommand arguments completion for zypper package manager
2013-05-24 20:52:34 -07:00
Max Gonzih
e63a2a2152
Add completion for zypper pkg manager (openSUSE)
...
Implemented subcommand completion, global arguments completion
Not implemented yet subcommand arguments completion
2013-05-24 20:52:34 -07:00