Artur Juraszek
33bc2bc312
Allow unzip versions not patched by Debian to enjoy .{jar,aar} completions
...
A minor follow-up to #6866 (e658a88ab0
).
These file types should be properly handled by other unzip flavors too,
regardless of Debian's/non-Linux Unixes' idiosyncrasies.
2020-04-07 22:47:38 +02:00
Thom Chiovoloni
e658a88ab0
Support .jar
and .aar
files in unzip
completions
...
I've been dealing with these a lot recently (android dev...), and it's
pretty annoying that unzip completions don't recognize them (They're
just zip files with a weird file extension).
2020-04-06 19:12:03 +02:00
Johannes Altmanninger
89c4ff9eae
Fix some inconsistencies in docs
2020-04-04 19:19:50 +02:00
Johannes Altmanninger
fd18cba4bc
Add completions for builtin wait
2020-04-04 19:19:50 +02:00
Jason Nader
30459b053f
more dogfood
2020-04-04 15:30:09 +02:00
Jason Nader
7cb1d3a646
Add string split --fields
2020-04-04 15:30:08 +02:00
Johannes Altmanninger
4884a4080e
completions: pass the correct args to git and ninja
2020-04-02 09:44:15 +02:00
exploide
67eaefeb82
added openssl completions
2020-04-02 09:31:13 +02:00
Delapouite
fb5c64641c
feat(completions): add long 'list' option for prevd and nextd
2020-04-02 09:26:15 +02:00
239
1792be096a
Merge branch 'master' into completions-update
2020-03-31 14:43:40 +02:00
Delapouite
9459958c61
feat(completion): add missing -P option to read command
2020-03-30 19:37:42 +02:00
Johannes Altmanninger
08b301721f
Fix file completions for tig/gitk after -- separator [ci skip]
2020-03-29 23:11:08 +02:00
exploide
f7eb3afa11
updates nc completions
2020-03-29 16:02:53 +02:00
Johannes Altmanninger
e49b4df562
fixup! Fix GNU Make completions when specifying a directory with -C
...
Whoops!
2020-03-29 11:17:29 +02:00
Johannes Altmanninger
79566bc325
Fix GNU Make completions when specifying a directory with -C
...
Make is much better than us at figuring out which makefile to use,
just pass through the relevant parameters.
Also previously they didn't work at all for Makefiles like the one in
https://github.com/jonas/tig , for example.
2020-03-29 11:05:40 +02:00
exploide
23339ae15a
added mysql completions
2020-03-28 08:25:06 +01:00
Johannes Altmanninger
15817a0b07
Fix git ranges completion, add gitk and tig
...
[ci skip]
2020-03-27 22:23:26 +01:00
Jason Nader
69afb1b560
Update apropos
completions
2020-03-26 17:12:33 +01:00
Fabian Homborg
911465a8e7
completions/gcc: Moar descriptions
2020-03-25 22:55:58 +01:00
Fabian Homborg
356b35e446
completions/gcc: Improve some descriptions
...
This file is autogenerated, and these descriptions need quite a
cleanup.
This does the first 10% or so.
[ci skip]
2020-03-25 20:18:11 +01:00
exploide
85d6d90bf7
added completions for traceroute and tracepath
2020-03-25 18:27:56 +01:00
Matthieu Guilbert
314f4c48fc
Update terraform completion
...
Add completion for terraform worskpace.
The terraform env command is deprecated.
The terraform workspace command should be used instead.
"terraform env" will be removed in a future Terraform version.
2020-03-25 18:25:19 +01:00
George Christou
a3436110c1
Add string sub --end
( #6765 )
2020-03-22 15:53:09 +01:00
239
232f89afb2
Indent completions
2020-03-22 14:29:35 +01:00
239
260666b545
Remove fd completions
2020-03-22 14:27:49 +01:00
239
749d471d87
Update completions for zpaq
2020-03-21 16:51:01 +01:00
239
3c855e0366
Add completions for Windscribe
2020-03-21 16:49:03 +01:00
239
b677899f1e
Update completions for resolvectl
2020-03-21 16:48:06 +01:00
239
2be7f1a7e6
Update completions for loginctl
2020-03-21 16:47:28 +01:00
239
581f619147
Update completions for Keybase
2020-03-21 16:46:35 +01:00
239
3cd662e9ae
Add completions for fd
2020-03-21 16:45:31 +01:00
239
69c8496cb8
Update completion for cryptsetup
2020-03-21 16:44:04 +01:00
Jason Nader
c4156677cc
Remove unnecessary use of begin
2020-03-21 13:26:58 +01:00
Jason Nader
eba099bf77
Fix abook
completions
2020-03-21 13:22:32 +01:00
Delapouite
6b73079e27
feat: add missing 'save' completion for funced
2020-03-19 21:55:40 +01:00
Jason Nader
0d43615af2
Update completions for read
builtin
2020-03-19 18:23:17 +01:00
Sam Yu
bbb4a63d67
Fix zypper completion
...
Fix packages completion for `zypper download`
2020-03-16 19:09:16 +01:00
Fabian Homborg
aa629c5aca
Reformat fish scripts with escaped newline changes to fish_indent
2020-03-15 21:01:11 +01:00
Jason Nader
266ce7c940
Improve Arch Linux package completions
...
Add completions for `downgrade` tool
Add new `--installed` option for printing Arch packages
Change Arch Linux package related completions to use `--installed`
add newline
2020-03-15 13:19:25 +01:00
Jason Nader
0f681190ba
Fix screen optarg completions as they require a space
2020-03-15 10:21:33 +01:00
Johannes Altmanninger
f665cd6367
completions/kak.fish: use old style instead of short options
...
Kakoune does not accept grouped short options, or option
arguments without a separating space.
2020-03-15 08:50:21 +01:00
Tim Sampson
5cf24b7733
completions: add basic completions for 'ip netns'
2020-03-14 15:47:25 +01:00
Delapouite
a7f62df958
feat: add missing 'current-selection' completion for commandline
...
Related to #4255
2020-03-14 12:50:40 +01:00
exploide
a2a12ffda2
removed wrong escaping in completion descriptions
2020-03-14 12:07:58 +01:00
Fabian Homborg
0af6d36bb8
Merge pull request #6731 from ammgws/complete-gvim
...
update gvim completions
2020-03-10 18:24:26 +01:00
Jason Nader
7fb3880b96
completions: remove unnecessary use of --erase
2020-03-10 18:10:49 +01:00
Jason Nader
faa75d74d2
Update gvim completions
2020-03-10 23:52:00 +09: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
750e6fa663
completions/openocd: Stop using "which"
...
"which" is useless.
2020-03-09 19:46:43 +01:00
rnhmjoj
81668b3f86
completions: fix scp remote path when /bin/ls does not exist
2020-03-09 19:21:43 +01:00
exploide
eac6252ab9
improved find completions
2020-03-08 17:24:14 +01:00
Johannes Altmanninger
660182cfb3
completions/zfs: finish renaming from 05038fc8
2020-03-08 10:00:57 +01:00
Johannes Altmanninger
01d9e56bdd
completions/zfs: fix syntax error from f507f4ad
2020-03-08 10:00:57 +01:00
Jason Nader
926c1f1016
Privatise completion-only funtions
2020-03-07 13:26:27 -08:00
Johannes Altmanninger
52dfb146d1
Fix vscode completion
...
[ci skip]
2020-03-07 21:24:14 +01:00
Johannes Altmanninger
27e88adcd5
Re-fix cargo completions
...
Using a local variable means we have to expand it when loading the
completion. With this approach, the content of the variable will be
expanded, so escape it.
2020-03-07 19:54:50 +01:00
Fabian Homborg
db62953e0f
completions/cargo: Add remaining bits of #6717
...
A nicer variable scope and no more erasing completions.
[ci skip]
2020-03-07 19:38:23 +01:00
Mahmoud Al-Qudsi
4a3ffe741c
Partilaly revert 0b7bbb5654
...
The changes to the `cargo` completions resulted in screenfuls of junk
being dumped to the tty on `cargo pu<TAB>`.
2020-03-07 08:44:00 -06:00
Jason Nader
12ce66684e
completions: add mpv
2020-03-06 22:22:52 +01:00
exploide
61de39bd68
updated grep completion
...
added group-seperator options to grep completion
distinguished between -r and -R
removed deprecated option
2020-03-04 11:31:05 -08:00
Jason Nader
3774edba93
completions: add imv
2020-03-03 18:32:53 +01:00
Jason Nader
4b95f2c5ee
completions: add ps2pdf wrapper functions
2020-03-03 18:32:13 +01:00
exploide
e48ef850b9
added completions for tcpdump
2020-03-03 18:31:42 +01:00
Jason Nader
c5d6a54462
completions: update GNU wc options
2020-03-02 22:21:12 +01:00
Jason Nader
f897948442
completions: update rfkill
2020-03-01 13:48:36 +01:00
Jason Nader
49bdab4898
completions: update timeout
2020-03-01 13:47:53 +01:00
exploide
41e6d4cc9c
added completion for dhclient
2020-03-01 13:46:21 +01:00
akspecs
23f942b315
added uncompressed pkg.tar files for completion
2020-03-01 13:45:20 +01:00
Jason Nader
fed0e0833d
Run fish_indent on completions
2020-03-01 13:44:51 +01:00
Jason Nader
950e2be7a3
python: add new completions
2020-02-28 11:31:57 +01:00
Jason Nader
1f42c30114
python: shorten completion description
2020-02-28 11:31:57 +01:00
Jason Nader
5785555afb
ncdu: update completions
2020-02-28 11:31:20 +01:00
Jason Nader
e2ed4ec014
Add check for locale cmd
2020-02-28 11:29:54 +01:00
Jason Nader
f507f4ad1e
Ddon't use gettext fn in fish functions
2020-02-28 11:29:54 +01:00
Jason Nader
adfe8d681d
Ensure stdin is redirected to python
2020-02-28 11:23:58 +01:00
Jason Nader
45b1ca25a5
Speed up python startup time
2020-02-28 11:23:58 +01:00
Jason Nader
82ab7e39f0
mupdf: update completions
...
[skip-ci]
2020-02-28 11:17:38 +01:00
Jason Nader
39e6570d73
pkginfo: add pypi/pkginfo completions
2020-02-28 11:17:38 +01:00
Jason Nader
94a3a5ff37
telnet: remove gettext cruft
2020-02-28 11:17:38 +01:00
Jason Nader
5fa05d0504
telnet: update completions
...
GNU: https://www.gnu.org/software/inetutils/manual/html_node/telnet-invocation.html
FreeBSD: https://www.freebsd.org/cgi/man.cgi?telnet
OpenBSD: https://man.openbsd.org/telnet.1
NetBSD: https://netbsd.gw.com/cgi-bin/man-cgi?telnet+1.i386+NetBSD-8.0
[skip-ci]
2020-02-28 11:17:38 +01:00
Jason Nader
3279661e3a
whatis: add option completions
...
[skip-ci]
2020-02-28 11:17:38 +01:00
Jan Verbeek
d02736c0ce
Improve psql completions and add some related commands ( #6620 )
2020-02-28 11:16:41 +01:00
Jason Nader
6052758c28
Add strace completions (basic)
2020-02-26 16:32:58 +01:00
Fabian Homborg
cebfaa7786
completions/git: Work around read trimming whitespace
...
Since #6406 , read will trim whitespace before the last variable.
In this case there is only one variable, and the line looks like
M CHANGELOG.md
so it does indeed start with whitespace, and the whitespace is quite
significant.
Fixes #6650 .
[ci skip]
2020-02-25 18:53:46 +01:00
Jason Nader
0b7bbb5654
cleanup completions: localise/erase vars where possible
...
[skip-ci]
2020-02-23 11:10:32 +01:00
Jason Nader
90bd4aa2a1
lscpu.fish: disable file completions, localise var
2020-02-23 09:41:32 +01:00
David Adam
f036d01961
drop rg and bat completions
...
These are shipped upstream.
Closes #5822 .
2020-02-22 22:23:40 +08:00
Daniel Zhang
ff29d81532
Fix variable leaking in completion kill
2020-02-22 11:25:47 +01:00
Fabian Homborg
fb7af4eff2
Merge pull request #6581 from brunelli/master
...
Fix flatpak completion
2020-02-20 19:15:48 +01:00
Fabian Homborg
8195889dba
completions/mvn: Shorten descriptions
...
Bleedin' heck these were long and useless!
[ci skip]
2020-02-20 19:13:16 +01:00
David Adam
45fb2024f8
completions: drop shebang from non-executable files
...
These completion files do not get marked as executable, so they don't
need a shebang.
2020-02-18 21:34:19 +08:00
Fabian Homborg
65883e0e40
Restyle
...
Mostly line breaks, one instance of tabs!
For some reason clang-format insists on two spaces before a same-line comment?
(I continue to be unimpressed with super-strict line length limits,
but I continue to believe in automatic styling, so it is what it is)
[ci skip]
2020-02-17 14:14:05 +01:00
Jason Nader
a619f69b15
Rename functions to match others
2020-02-17 09:55:05 +01:00
Fabian Homborg
63b4a891ff
completions/optipng: Add missing quote
...
Oops!
This should be in 3.1.1!
cc @zanchey
2020-02-17 08:57:41 +01:00
Fabian Homborg
96587d26f5
completions/rbenv: Fix error spew
...
Fixes #6617
2020-02-17 08:57:41 +01:00
Aaron Gyes
b1bbb58af6
Reword open
completion descriptions, don't use sed
...
Fixes issue with (null) junk in -b completions
2020-02-14 14:45:23 -08:00
Fabian Homborg
56040d2d7f
completions/npm: Allow files for "install"
...
Fixes #6596
[ci skip]
2020-02-14 17:57:07 +01:00
Ian Brunelli
f456404482
Simplify flatversion extraction
2020-02-13 22:00:23 -03:00
Ian Brunelli
7516c408ae
Add description to flatpak remote completion
2020-02-12 16:54:54 -03:00
Ian Brunelli
e0551a184d
Add completion for flatpak enter and kill
2020-02-12 16:39:50 -03:00
Ian Brunelli
6d2537d2d9
Some cleanup as suggested
2020-02-12 16:31:21 -03:00
Ian Brunelli
8ebd6ddd92
Add completion for new flatpak commands
2020-02-12 07:36:03 -03:00
Ian Brunelli
d79ea5a898
Fix flatpak completion for versions >= 1.2
2020-02-12 06:21:29 -03:00
Maksim Novikov
682f4b04ad
Include special characters in conda env names
...
Allows completion for environments with names containing special
characters. For example: my-env, myenv.1, myenv+1
2020-02-11 18:28:06 +01:00
Collin Styles
ea8a2b2dda
Correct list-language
to list-languages
in bat completions
2020-02-10 21:38:59 +01:00
Jason Nader
fb00d6638e
completions/apt: Add support for filename completions
...
Plus some small fixes.
Fixes #6209
[ci skip]
2020-02-06 02:17:38 +01:00
Mahmoud Al-Qudsi
9bf5dfd738
Further enrich cargo
completions
...
* Replace multiple calls to `tail` and `string` with a single `string
replace` execution
* Dynamically generate list of available benches, bins, and tests for
`--bench`, `--bin`, and `--test` switches
[ci skip]
2020-02-04 18:12:02 -06:00
Mahmoud Al-Qudsi
8f4797a38b
Update cargo
completions to use dynamic --example
options
...
[ci skip]
2020-02-03 13:48:11 -06:00
Michael Sanders
3f8907d7cf
Add pyenv completions
2020-01-30 21:53:45 -08:00
Michael Sanders
5c8ef19ff8
Bring rbenv completions up-to-date
2020-01-30 21:53:14 -08:00
Johannes Altmanninger
50e08dc3a0
add completions for wireshark/tshark/dumpcap
2020-01-30 16:45:02 +01:00
Jason Nader
7d89cadd58
Stringify vared completions
2020-01-26 13:53:45 +01:00
Jason Nader
3142ef6dbc
Add interface label/name to the completions for -b
2020-01-26 12:26:47 +01:00
Jason Nader
b2969f4dfb
Fix typo in mplayer completions
2020-01-25 08:36:15 +01:00
Jason
2a247c7fe5
Stringify ssh completions ( #6529 )
...
* Stringify ssh completions
* Fix completions for `-b` option
* Fix completions for `-b` option
2020-01-24 18:29:17 +01:00
239
3e08083d49
Add completions for loginctl and resolvectl ( #6501 )
...
* Add completions for loginctl and resolvectl
* Add #6501
* Fix optional arguments
* Remove placeholder arguments
Fix expected arguments
2020-01-24 18:27:47 +01:00
Jason Nader
a5d625d389
Stringify j.fish
2020-01-22 17:43:18 +01:00
Jason Nader
2323a5629c
Stringify netctl completions
2020-01-22 17:41:43 +01:00
Jason Nader
1cafc4eff6
Amend comments incorrectly referring to sed
2020-01-22 17:40:31 +01:00
Aaron Bieber
0918b537ac
Get the list of VMs in a less fragile way.
2020-01-22 16:48:02 +01:00
Jason Nader
13a26a1c65
Remove dropbox
completions
2020-01-21 16:57:27 +01:00
Fabian Homborg
4e931fd967
completions/kill: Offer -SIGNAME
...
E.g. "kill -HUP".
2020-01-20 17:51:59 +01:00
Jason Nader
f63ae0fb4d
Add missing comment to bower.fish
...
Same comment found in yarn.fish
2020-01-20 19:45:21 +08:00
Fabian Homborg
0e5846ee38
completions/fish: Rename debug-level
...
This was renamed to just "--debug", but missed in the completions.
See #5910
[ci skip]
2020-01-19 13:28:21 +01:00
Shun Sakai
f04536637d
Add keepassxc-cli
completions
2020-01-18 12:27:04 -08:00
Shun Sakai
8c725c7d54
Add chronyc
completions
2020-01-14 17:17:28 +01:00
Shun Sakai
316bb88ee7
Add hwinfo
completions
2020-01-14 17:17:28 +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
239
56f52bc693
Add completions for cryptsetup ( #6488 )
2020-01-13 10:47:52 +01:00
Johannes Altmanninger
0c92c7d8ac
Fix remote path escaping for rsync and scp completions
...
They need to be escaped twice, for the local and the remote shell.
Also don't suggest local files as rsync remote paths (-a -> -xa) and
fix completion for remote paths containing multiple consecutive spaces.
Fixes #1872
[ci skip]
2020-01-13 10:30:57 +01:00
239
0acaf766a2
Update Keybase completions ( #6479 )
...
* Update Keybase completions
* Apply suggested change for filtering options
2020-01-10 17:12:12 +01:00
Aaron Gyes
c1140bc436
Improve kill
completions
...
Use string split instead of cut - which we'd fork for 2*signal
count times in a loop when tab was first pressed. Noticably faster
If giving a signal num, what works everywhere is -NUM, if giving
a signal name, what works everywhere is -s NAME - don't show -sNUM
or -NAME completions; that only works on GNU and it's redundant
anyhow as we show the signal number in the description field for -s
or the signal name for the -NUM case in the pager.
Sort -sNAME completions by the signal number not alphabetical
Shorten descriptions
2020-01-02 22:53:28 -08:00
Fabian Homborg
d0edd984d5
Let pacman-derived tools complete zst as well
...
Arch is switching to zst as the default compression method
2019-12-28 17:10:23 +01:00
Fabian Homborg
0866013280
Stop using __fish_complete_suffix with a braced argument
...
__fish_complete_suffix accepts a first argument containing a
brace-expansion, like
__fish_complete_suffix '.{c,cpp,py}'
We're gonna be removing the `eval` that does that shortly, so let's
remove all uses in our code.
2019-12-28 17:10:23 +01:00
Fabian Homborg
0e0d63c0df
completions/pipenv: Really force it to print fish completions
...
"To assume" and such.
It doesn't check $SHELL, so it might have some other automagic that
can fail (probably still because of the login shell, but I have no
idea).
Override the special variable that
click-completion (https://github.com/click-contrib/click-completion )
uses to force it instead.
Really fixes #6454 .
[ci skip]
2019-12-25 16:29:10 +01:00
Fabian Homborg
aba5beaeb4
completions/pipenv: Force it to print fish completions
...
This checks $SHELL to determine which completions to print, and $SHELL
is typically set by your login program.
So if the login shell isn't fish, this will print the wrong
completions.
Fixes #6454
[ci skip]
2019-12-25 16:16:08 +01:00
Sergei Morozov
624e76ae89
Added the --cleanup option completion for the git commit command
2019-12-21 20:03:54 +01:00
Johannes Altmanninger
6dd9e50f82
time: complete external time options only if available
2019-12-21 11:56:06 +01:00
Collin Styles
012773436e
Suggest unique remote branches for git-switch
...
From the `git-switch` documentation:
If <branch> is not found but there does exist a tracking branch in
exactly one remote (call it <remote>) with a matching name, treat as
equivalent to
$ git switch -c <branch> --track <remote>/<branch>
2019-12-14 09:50:48 +01:00
Collin Styles
afd8fc3cdf
Correctly suggest files for git-restore when --staged is present
...
Previously we would include all modified, deleted, and unmerged files
regardless of what options are present.
2019-12-14 09:50:48 +01:00
Collin Styles
48bf689358
Add completions for git-cherry-pick sequencer subcommands
2019-12-14 09:50:48 +01:00
Collin Styles
e7c401571b
Move unique remote branches up in suggested branches for git-checkout
...
Currently we suggest `origin/mybranch` before `mybranch` which seems
backwards. Most of the time users will want to check out `mybranch`.
2019-12-14 09:50:48 +01:00
Collin Styles
393c9ccf99
Add missing completions for git-branch
2019-12-14 09:50:48 +01:00
239
d23ea5f455
Added completions for Keybase commands
2019-12-12 14:16:21 +01:00
239
f1e4dc7ca8
Fixed completion for zpaq
2019-12-12 14:14:43 +01:00
Johannes Altmanninger
a446085c40
Update nmcli completions
...
Set variables for available connections and SSIDs only when the completion is loaded.
This is not perfect but faster than scanning for connections everytime.
Don't complete connection UUID, DBUS-PATH, ACTIVE-PATH because they are unintelligible.
Instead only complete the connection name.
See #6379
[ci skip]
2019-12-12 11:53:37 +01:00
Shun Sakai
11d529557a
Update nmcli
completions
2019-12-12 11:53:37 +01:00
Johannes Altmanninger
d22c7ab993
enhance sudo completions
...
Flag e/edit does not take an argument, so `sudo -e a` TAB would complete
subcommands.
[ci skip]
2019-12-12 09:08:42 +01:00
Fabian Homborg
15c6d8fd4c
completions/zstd: Remove code to figure out number of CPUs
...
This purported to need python > 3.4, but used anypython.
Plus it's not super useful anyway since it can easily be told to
use *all* cpus, so there's no need to set it to the precise number.
See #6400 .
[ci skip]
2019-12-10 20:20:21 +01:00
Akatsuki
efb72f1f91
Revert "Move __fish_systemd_machines into machinectl completion script"
...
This reverts commit 9c15b5b7a4
.
2019-12-09 21:07:21 +01:00