Yaksh Bariya
54476d583b
Add flag completions for git mv
2021-07-22 13:25:12 +05:30
Yaksh Bariya
9d0d0b81fd
Add completions for git apply
2021-07-22 13:25:12 +05:30
Yaksh Bariya
162c4ac789
Add completions for git mailsplit
2021-07-22 13:25:12 +05:30
Yaksh Bariya
4c5f41531d
Add completions for git am
2021-07-22 13:25:12 +05:30
Yaksh Bariya
2e34852ded
Add completions for git mailinfo
2021-07-22 13:25:12 +05:30
Yaksh Bariya
3f5f722e7a
Add completions for git stripspace
2021-07-22 13:25:11 +05:30
Yaksh Bariya
f976144b27
Add completions for git notes
2021-07-22 13:25:11 +05:30
Yaksh Bariya
1344b638d2
Add completions for git maintenance
2021-07-22 13:25:11 +05:30
Yaksh Bariya
55886943c1
Add missing completions for git daemon
2021-07-22 13:25:06 +05:30
Kevin F. Konrad
869c42d72a
Add completion for azure cli (az) ( #8141 )
...
* add completion for azure cli (az)
* alter az.fish to match faho's requests
Co-authored-by: Kevin Konrad <kevin.konrad@unicepta.com>
2021-07-21 17:57:59 +02:00
Fabian Homborg
8223e6f23e
fish_config: Add CLI-based theme selector
...
`fish_config theme`:
- `list` to list all available themes (files in the two theme
directories - either the web_config/themes one or
~/.config/fish/themes!)
- `show` to show select (or all) themes right in the terminal - this
starts another fish that reads the theme file and prints the sample
text, manually colored
- `choose` to load a theme *now*, setting the variables globally
- `save` to load a theme and save the variables universally
- `dump` to write the current theme in .theme format (to stdout)
- `demo` to display the current theme
2021-07-14 18:56:19 +02:00
Fabian Homborg
fd35dc2aa1
completions/git: Describe more "log" options
...
And do this by reusing other entries - mostly range-diff's.
2021-07-14 18:24:08 +02:00
Johannes Altmanninger
6c22c0e30d
completions/git: do not attempt to complete rev:file in option words
...
Fixes #8139
2021-07-14 00:01:20 +02:00
Johannes Altmanninger
e50805646e
completions/git: define function before use
2021-07-12 23:42:01 +02:00
Siavash Askari Nasr
ab201f7590
Add completion for Rakudo
...
[Rakudo](https://rakudo.org/ ) is an implementation of the
[Raku](https://raku.org/ ) programming language.
2021-07-12 21:33:36 +02:00
Raman Gupta
ed7a64ea77
Replicate upstream git logic for alias commands
2021-07-12 16:39:44 +02:00
radiantly
55e60eeae2
Add completions for black
( #8123 )
2021-07-11 14:35:39 +02:00
Fabian Homborg
4ec06f025c
Fix fish_config prompt completions
...
Oops
2021-07-11 10:13:34 +02:00
Siavash Askari Nasr
8d17f81d66
Add zef completion
...
[zef](https://github.com/ugexe/zef ) is a module manager for
[Raku](https://raku.org/ ) programming language.
2021-07-11 09:26:21 +02:00
YAKSH BARIYA
46ae46b54e
Add initial completion for Angular CLI ( #8111 )
...
* Add initial completion for Angular CLI
* Remove completion for `ng completion`
The `ng completion` doesn't exist. The completiond were autogenerated
using a script. See angular/angular-cli#21085
* Use shorter wording
* Fix typos
2021-07-11 09:25:04 +02:00
Avindra Goolcharan
32826d3596
Node completion: add sparkplug option
...
Feature: https://v8.dev/blog/sparkplug
Tested: Node.js v16.4.0
2021-07-08 16:10:34 +02:00
Kid
727934c6b6
Fix duplicate -p
flag in fish
completion
2021-07-05 19:04:23 +02:00
Kid
1361a5f68c
Add missing options for bind
2021-07-03 22:06:48 +02:00
Johannes Altmanninger
c18f293ae2
completions/git: offer arbitrary commits to "git switch -d"
...
Fixes #8101
2021-07-03 08:54:12 +02:00
Johannes Altmanninger
9f54c8d88b
completions/git: don't offer deleted files to "git diff" unless we have a "--"
...
Fixes #8090
2021-06-29 23:31:05 +02:00
Johannes Altmanninger
6c460f643c
completions/git: don't comlete commits after "git difftool -- "
2021-06-29 23:31:05 +02:00
Luca Weiss
b8e7b6bcb0
completions/git: suggest modified-staged-deleted files
...
Add those files to the completion of 'add', 'checkout', 'diff', 'difftool', 'restore' and 'stash
push'.
2021-06-29 23:12:06 +02:00
Johannes Altmanninger
73b13315de
completions/dd: re-use built-in file completion for "dd if=the-file"
...
This allows to complete file arguments even if they contain variables.
Add similar logic for arguments to Maven's -D option.
See https://github.com/fish-shell/fish-shell/issues/5248#issuecomment-857614957
2021-06-19 20:31:46 +02:00
Johannes Altmanninger
48426d6285
Tweak git completion wording (review for #8062 )
2021-06-19 10:10:59 +02:00
lelgenio
b8767cc803
completions/sv.fish: create completion for sv, a part of runit.
2021-06-19 08:17:53 +02:00
Collin Styles
a5e665cd81
Add completions for "empty" options to git-commit
2021-06-18 20:49:34 +02:00
Collin Styles
feec10f389
Add completions for different types of git resets
2021-06-18 20:49:34 +02:00
Collin Styles
0abbd2bc2f
Add completions for git-revert sequencer subcommands
2021-06-18 20:49:34 +02:00
Collin Styles
15fdfb5afe
Add completion for --abbrev-ref
option to git-rev-parse
2021-06-18 20:49:34 +02:00
Collin Styles
c9f397b968
Remove invalid completion for git-describe
...
The `__fish_git_unique_remote_branches` function isn't applicable here
since `git describe` won't know what to do with a remote branch without
the remote prefix. For example, if there is a branch called
`origin/my-branch`, you can't execute `git describe my-branch` until the
branch is checked out locally. In other words:
Good: `git describe origin/my-branch`
Bad: `git describe my-branch`
Good: `git switch my-branch; git describe my-branch`
2021-06-18 20:49:34 +02:00
Collin Styles
7d5c64a731
Fix completions to cargo's --example
option on macOS
...
The completions for the `--example` option are generated using `find`.
The `find` utility on macOS will produce the following output when the
path argument has a trailing slash:
```
~/bat $ find ./examples/
./examples/
./examples//cat.rs
./examples//advanced.rs
./examples//simple.rs
./examples//list_syntaxes_and_themes.rs
./examples//yaml.rs
```
And will produce this output if the path does NOT have a trailing slash:
```
~/bat $ find ./examples
./examples
./examples/cat.rs
./examples/advanced.rs
./examples/simple.rs
./examples/list_syntaxes_and_themes.rs
./examples/yaml.rs
```
The extra slash after `examples` ends up in the completion suggestions
which is incorrect:
```
~/bat $ cargo run --example <TAB>
/advanced /cat /list_syntaxes_and_themes /simple /yaml
```
Unlike on my Linux box where `find` doesn't output the trailing slash:
```
~/bat $ cargo run --example <TAB>
advanced cat inputs list_syntaxes_and_themes simple yaml
```
Importantly, I get the same (correct) output on Linux even without the
trailing slash in the path argument to `find`.
2021-06-15 21:22:44 +08:00
Johannes Altmanninger
f0de75ddd9
completions/git: complete normal files on "git restore -sHEAD "
...
A full "git ls-files" is slow on larger repositories; this makes the
common case (desired path exists on file system) faster.
2021-06-15 03:27:55 +02:00
Johannes Altmanninger
585dc16a66
completions/git: complete normal files on "git checkout -- "
...
This can give false positives but only if used on directories that
mix tracked and untracked files. The performance is better than
listing all tracked files, and in any case we're pretty far from a
correct solution that knows the target Git commit, so this seems like
good compromise.
2021-06-15 03:27:55 +02:00
Fabian Homborg
695027234b
completions/git: Complete untracked files immediately
...
Fixes #8049
2021-06-08 08:53:49 +02:00
gurudarshan266
b5d48acd7c
Condensed descriptions for various commands ( #8034 )
...
* Shorten descriptions for tmux.fish
* Shorten descriptions for bundle.fish
* Fix description in dhclient.fish
2021-05-28 18:50:01 +02:00
exploide
34ededa644
updated hashcat completions to version 6.2.1
2021-05-26 13:04:36 +02:00
Jyry Hjelt
08a455d4f1
Fixed a typo in rc-update autocompletion
2021-05-18 13:55:27 +02:00
Johannes Altmanninger
e10cab8104
Tweak documentation wording to include non-option arguments
2021-05-16 20:48:53 +02:00
Kid
e714ce238e
Add missing options for complete
2021-05-16 17:33:49 +08:00
Érico Nogueira
3ac2242c68
completions: fix pacmd completions when using pipewire-pulse.
...
In such cases, `pacmd help` prints
No PulseAudio daemon running, or not running as session daemon.
to stderr, which ends up printed to the user terminal.
2021-05-14 21:19:06 +02:00
ridiculousfish
3f35012afb
Fix openssl completions for LibreSSL
...
Fixes #7966
2021-05-05 14:42:36 -07:00
Cycatz
889ff25c75
Remove extra chars after -p and --load options
2021-05-05 21:45:16 +08:00
Fabian Homborg
2b74affaf0
Add prompt selector
...
It's a bit weird to *have* to fire up a browser to get fish_config to
choose a prompt.
So this adds a `prompt` subcommand to `fish_config`:
- `fish_config prompt list` shows all the available prompt names
- `fish_config prompt show` demos the available sample prompts
- `fish_config prompt choose` sources a prompt
- `fish_config prompt save` makes the choice permanent
A bare `fish_config` or `fish_config browse` opens the web UI.
Part of #3625 .
TODO: This shows the right prompt on a new line. Showing it in-line is awkward
to do because we'd have to move it to the right.
2021-05-01 18:50:05 +02:00
Johannes Altmanninger
6b41227ff4
completions/dnf: minor addition to always show RPM files
...
See #7928
2021-04-18 13:09:36 +02:00
Johannes Altmanninger
db0fe92aaa
completions/dnf: cautiously complete RPM files
...
Complete RPM files instead of pacakges if there is either
1. a slash in the token, which precludes package names
2. no matching package
To enable 2, pass the commandline token to the dnf query, instead of
an undefined variable. This allows SQL injection; not sure if we care.
We could always complete RPM files but maybe that's too noisy.
Also, isn't that what the "rpm" command is for?
Closes #7928
2021-04-17 22:53:34 +02:00
Collin Styles
42c11f1b6c
Remove completion files for ls
aliases; just use function --wraps
2021-04-16 17:40:55 +02:00
239
5e66722452
Update completions for resolvectl
2021-04-15 17:38:26 +02:00
239
4688a84398
Update completions for loginctl
2021-04-15 17:38:26 +02:00
239
9b85254717
Update completions for Keybase
2021-04-15 17:38:26 +02:00
239
975cd13108
Update completions for cryptsetup
2021-04-15 17:38:26 +02:00
exploide
89eeafe393
added completions for firewall-cmd (firewalld)
...
based on --help and man page of firewall-cmd 0.9.x
2021-04-05 18:59:58 -07:00
Phil Corbett
13439b399e
Shortens RPM completions
2021-04-02 12:37:59 -07:00
Fabian Homborg
93ce805f32
help: Update completions
...
This is all of the sections in interactive, language and for_bash_users.
The faq names are so long that we're not adding them, also not all of
these have descriptions yet.
2021-03-30 17:40:38 +02:00
Kid
61b94fe093
Fix typo in read
completion ( #7867 )
2021-03-26 20:31:03 +01:00
Johannes Altmanninger
dc417f58ae
completions/aura: remove outdated flag
...
Commit a0b46e620
("Update Aura completions") removed "abs", but forgot
it here.
Fixes #7865
2021-03-26 07:49:05 +01:00
Karolina Gontarek
a0f05b376e
Shorten completions for vbc and pydf ( #7859 )
2021-03-23 20:46:42 +01:00
Jannik Vieten
0f3274d5eb
Fix completion errors for tshark when running as root ( #7858 )
2021-03-23 20:40:44 +01:00
Johannes Altmanninger
516a70d9cb
Misc cleanups
...
Some as suggested by lgtm.com
2021-03-21 19:41:36 +01:00
Olivier FAURE
211f8bc894
Write new completion file for cargo ( #7839 )
2021-03-20 21:44:38 +01:00
exploide
5eadee61c5
improved SSH completions
...
- use __fish_complete_ssh also for sftp
- removed old options -1 and -2
- added several newer options
- cleaned up and sorted completion code
2021-03-20 21:17:53 +01:00
Johannes Altmanninger
582675c96a
completions/git: restore forward-compatibility by using "complete -c"
...
After a fish installation is upgraded to 3.2.0, active shells could
throw an error attempting to load Git completions. It's just a
transient error but also easily avoidable by using the old style.
See #7822
2021-03-15 22:34:30 +01:00
exploide
38cd373ca3
added completions for mkpasswd
2021-03-14 16:46:38 -07:00
Fabian Homborg
3c3bf7ffd7
completions/git: Show recent commits *on all branches* for rebase
...
Doesn't make a ton of sense for the current branch
2021-03-12 18:12:03 +01:00
Fabian Homborg
873d7f6bb3
completions/git: Add recent commits for rebase
...
Fixes #7817
2021-03-12 18:10:11 +01:00
Caroleq
9fe2b27bba
Shorten description in completions ( #7788 )
...
* Fix long descriptions in completions
* PR review modifications
2021-03-09 20:28:25 +01:00
exploide
274be5eeeb
added descriptions to __fish_print_addresses
...
added --all flag to include 0.0.0.0 and ::
adapted use of this function in existing completions
fixes #7787
2021-03-08 17:47:29 +01:00
Jake
ece0aa5324
Update rsync completions ( #7763 )
...
* Add rsync flags completion
* Add missing rsync completions
* Remove bracket expansion and fix aka long options
* Improve rsync flags function code
* Replace "newness" with birth for creation times
* Improve rsync version option description
* Clarify rsync append-verify
2021-03-04 18:15:25 +01:00
exploide
1f3fdf2de6
added hashcat completions
2021-02-28 12:13:58 +01:00
exploide
5ab61dde12
added completions for JohnTheRipper
2021-02-28 12:13:58 +01:00
Brett Jia
384975c892
git: Shorten various long descriptions ( #7752 )
...
* Shorten various long descriptions
* Address review comments
2021-02-28 12:12:57 +01:00
Afsar Pasha
9909623262
Fixed __fish_adb_get_devices
2021-02-28 12:12:01 +01:00
Birk Tjelmeland
2719179bc1
Fix pandoc completion error
...
Pandoc completions would give an error if the folder `~/.pandoc`
does exist. This commit fixes that.
2021-02-27 22:31:42 +08:00
David Adam
39230978b3
docs: call the CHANGELOG "release notes"
2021-02-25 22:46:24 +08:00
ridiculousfish
e7d5a40252
Correct description for 'git worktree lock' description
...
Fixes #7731 .
2021-02-20 11:36:36 -08:00
Johannes Altmanninger
f99c275e42
completions/tig: directory completions after -C want a space
...
Since https://github.com/jonas/tig/releases/tag/tig-2.5.2
2021-02-13 08:07:20 +01:00
exploide
2bab31a316
updated metasploit completions
2021-02-09 23:11:50 +01:00
Johannes Altmanninger
330883b6fd
Run fish_indent on share/**.fish
...
This is mostly to show that some of my following indent changes don't break
current behavior.
2021-02-08 07:31:33 +01:00
Shun Sakai
d8530257c7
Add completions for libavif
2021-02-05 12:25:04 +01:00
Shun Sakai
060e796577
Add completions for the JPEG XL Reference Software
2021-02-05 12:24:23 +01:00
Johannes Altmanninger
29ee4d318d
Do use autogenerated completions for external git subcommands
...
Some third party Git tools provide a man page, which we can at least use
for completing options.
The old logic excluded all generated completions for Git subcommands.
Instead, try to load completions for all available external subcommands.
We can use $PATH/git-* because /bin/git-add and friends were removed in Git
1.6.0 in 2008.
Closes #4358 (the "git-foo" wrapping was added in #7652 )
2021-02-02 07:54:28 +01:00
Akatsuki Rui
176e6a9ce1
completions/userdbctl: init ( #7667 )
...
* completions/userdbctl: init
userdbctl:
Show user and group information.
A part of systemd.
* completions/userdbctl: fix complete services
Complete the services at the completion time.
2021-01-30 18:25:22 +01:00
Akatsuki Rui
350f6fe350
completions/networkctl: add missing commands ( #7668 )
...
* completions/networkctl: add missing commands
* completions/networkctl: fix complete devices
Complete the devices at the completion time.
2021-01-30 18:24:41 +01:00
Fabian Homborg
594d51e7eb
Add a separate --profile-startup option to profile startup
...
This goes to a separate file because that makes option parsing easier
and allows profiling both at the same time.
The "normal" profile now contains only the profile data of the actual
run, which is much more useful - you can now profile a function by
running
fish -C 'source /path/to/thing' --profile /tmp/thefunction.prof -c 'thefunction'
and won't need to filter out extraneous information.
2021-01-29 20:46:34 +01:00
Johannes Altmanninger
0ed7d67532
completions/git: minor cleanup
2021-01-27 07:31:54 +01:00
Johannes Altmanninger
085c1d2096
completions/git: avoid loading git-foo completions twice
...
We were soucing it manually, and implicitly via the `complete -C "git-foo "`
wrapper. Always use the latter, so fish knows that the completion is already
loaded.
2021-01-27 07:31:54 +01:00
Johannes Altmanninger
09161761c1
Complete custom "git-foo" commands from "git foo"
...
Since #7075 , git-foo.fish files are sourced when Git completions are loaded.
However, at least Cobra (CLI framework for Go) provides completions like
complete git-foo ...
This means that completions are only offered when typing "git-foo <TAB>"
and not on "git foo <TAB>". Fix this by forwarding the completion requests.
Take care to only forward if there are actually completions for "git-foo",
to avoid adding filename completions.
2021-01-25 19:09:56 +01:00
Fabian Homborg
8907606b07
completions/ps: Fix typo
...
Fixes #7657
2021-01-25 13:22:14 +01:00
Fabian Homborg
28f4f82246
completions/gem: Unbreak
...
See #7655 .
2021-01-24 21:00:50 +01:00
Fabian Homborg
66932b74b2
completions/launchctl: Unbreak
...
These passed the description as part of the argument but didn't escape
them properly.
Instead, let's just use a description.
Fixes #7655 .
2021-01-24 20:08:22 +01:00
Fabian Homborg
a407af2944
completions/git: Silence git's errors
...
This can spew about not finding the ignore file in some circumstances.
2021-01-22 21:54:36 +01:00
Alexander Sieg
ddab61616f
Include completion for all pkg alias subcommands ( #7642 )
...
* Include completion for all pkg alias subcommands
* Formatting and dynamic evaluation of alias subcommands
* only set package_name completion once
* fixed syntax error
2021-01-21 18:43:26 +01:00
Akatsuki Rui
1a9835f55e
completions/mtr: init ( #7638 )
...
* completions/mtr: init
Add mtr completion.
[ci skip]
* completions/mtr: edit descriptions
2021-01-19 18:09:09 +01:00
Mahmoud Al-Qudsi
e2273bacb2
Separate completions for GNU and BSD ps
command
...
It's not just -F; the majority of options are actually not portable
between the two.
Closes #7545
2021-01-18 14:23:39 -06:00
Johannes Altmanninger
692a8aef03
completions/xargs: provide subcommand completions
2021-01-15 20:23:59 +01:00
Ben Woods
1890c848e0
completions: Add support for lightdm and dm-tool commands ( #7624 )
2021-01-13 14:37:42 +01:00
Clément Martinez
c76074b1d6
Add losetup
completions
2021-01-12 08:22:28 +01:00
exploide
20d91c6be2
added completion script for alternatives
2021-01-10 18:35:46 +01:00
Fabian Homborg
bb3b6e3329
completions/timedatectl: Add missing quotes
...
Oops!
Supersedes #7617 .
2021-01-10 18:33:31 +01:00
Collin Styles
f496b07c7c
Fix completion for --exact
option to fzf
...
These double hyphens will make the completion resolve to `----exact`
which isn't a valid option.
2021-01-10 09:17:21 +01:00
Ben Woods
e93996dc01
completions/pkg: Add support for "alias" and "bootstrap" sub-commands
2021-01-08 21:36:29 +01:00
Johannes Altmanninger
0729c2be4c
Re-add completions for source and ., to prefer *.fish files
...
This is mildly useful when activating virtualenvs. We had remove
these files earlier, but since there are no more false negatives from
__fish_complete_suffix it seems safe to re-add them.
2021-01-07 17:09:05 +01:00
Mahmoud Al-Qudsi
b5523dbd64
Restrict pkg
completions to BSD
...
0507b04
loosened the FreeBSD-only restriction on `pkg` completions to
!SunOS in order to support DragonFlyBSD. This is overly broad and can
still cause the script to be loaded on systems that we can't
realistically expect to have `pkg` be the FreeBSD pkgng package manager
(especially since `pkg` is a much more generic term when compared to the
likes of `dnf`, `yum`, `deb`, and `apt`).
This patch changes `pkg` + BSD to be the minimum requirements for
considering a system to be using pkgng.
2021-01-05 17:30:50 -06:00
Ben Woods
c1ef9676cb
completions/pkg: Add support for "pkg check" sub-command
2021-01-04 21:54:58 +01:00
Fabian Homborg
0507b046ef
completions/pkg: Only exit for Solaris, not everything-but-FreeBSD
...
In e8b6705067
this was made to exit if
not on FreeBSD because Solaris has a tool called "pkg" that apparently
"isn't worth supporting".
Since at least DragonflyBSD also uses FreeBSD's pkg thing, let's turn
that check around.
2021-01-04 17:25:50 +01:00
Weihang Lo
4116aaeb5f
Update rustc.fish
...
- [`-L`: add a directory to the library search path][1]
- [`--crate-type`: a list of types of crates for the compiler to emit][2]
- [`--emit`: specifies the types of output files to generate][3]
[1]: https://doc.rust-lang.org/stable/rustc/command-line-arguments.html#-l-add-a-directory-to-the-library-search-path
[2]: https://doc.rust-lang.org/stable/rustc/command-line-arguments.html#--crate-type-a-list-of-types-of-crates-for-the-compiler-to-emit
[3]: https://doc.rust-lang.org/stable/rustc/command-line-arguments.html#--emit-specifies-the-types-of-output-files-to-generate
2021-01-03 18:09:50 +01:00
Johannes Altmanninger
a24ceaf0df
completions/git: offer ranges for cherry-pick
2020-12-29 16:31:43 +01:00
Johannes Altmanninger
85830a5775
completions/git: don't sort branches and tags
...
This seems a bit more intuitive.
2020-12-29 16:31:43 +01:00
Nunzarius
d3de09da83
Added completions for ldapsearch
2020-12-26 12:13:44 -08:00
Johannes Altmanninger
4dae106911
Use complete --keep-order with __fish_complete_suffix to prioritize files with matching suffixes
...
Part of #7040
2020-12-23 19:14:10 +01:00
Johannes Altmanninger
d18e1c7bca
Revert "completions/unzip: Stop filtering suffixes"
...
This reverts commit 46068cd257
.
2020-12-23 19:14:10 +01:00
Fabian Homborg
04d7d89020
__fish_print_packages: Extract the rest
...
Of note: The rpm/yum thing seems to be coupled, so I put it into one
function that tries the yum helper and uses the rpm path otherwise.
Zypper is already its own thing, so this should only be used for yum
and probably dnf (does that still have the helper?)
Zypper can be dropped, as that already used a separate function in the file.
Apk can just be inlined - it's literally one line for installed and another for all packages.
2020-12-22 17:10:02 +01:00
Fabian Homborg
cf59c3b680
completions/eopkg: Rework some comments
2020-12-22 17:10:02 +01:00
Nunzarius
f7966b3249
Added completions
2020-12-22 17:06:27 +01:00
Ivan Tham
c5343a538f
Add cargo abbr completions
2020-12-21 23:05:31 +01:00
Shun Sakai
58d9fa3820
Add completions for .NET
2020-12-19 16:55:24 -08:00
Fabian Homborg
75dcbed700
Remove some useless uses of no-scope-shadowing
...
This is a very delicate tool, and these completions simply don't need them.
2020-12-16 18:31:51 +01:00
Jason
b0dcfac2a0
Update find.fish
2020-12-15 14:42:03 +01:00
Fabian Homborg
edbb8ad0a4
completions/fish: Add --debug-output, remove debug levels
...
The levels don't do anything anymore, so we can remove them.
2020-12-14 19:36:18 +01:00
Fabian Homborg
6e9364ab50
fish_indent: Change --debug-level to --debug with flog categories
...
The "debug-level" flag makes little sense since we have no more
debug *levels* left.
2020-12-14 19:36:18 +01:00
Daniel Hoekwater
e8dcef5a71
completions: Fix some more overlong descriptions ( #7550 )
...
* Fix overlong completion descriptions for wget
* Fix overlong completion descriptions for valgrind
* Fix overlong completion descriptions for mocha
* Fix overlong completion descriptions for adduser
* Shorten and clean up completion descriptions
2020-12-14 19:01:04 +01:00
Fabian Homborg
c065d24632
completions: More short descriptions
...
Work on #6981 .
2020-12-14 17:42:04 +01:00
Johannes Altmanninger
f0f21bdecd
Minor refactoring to __fish_git_local_branches
2020-12-12 08:22:24 +01:00
Jason
7e3d3cc30f
completions: git switch only takes branch names
...
Trying to switch to a remote branch like "upstream/ver2" will error with "fatal: a branch is expected, got remote branch 'upstream/ver2'", so these completions should only print the branch name. There doesn't seem to be a function for printing just the branch names for remotes (branch names can have forward-slashes in them), so I have just left them out for now.
2020-12-12 07:19:55 +01:00
Fabian Homborg
952f1971ad
completions/mount: Allow files
...
This can use files/directories in a variety of ways, and it's
basically impossible to enumerate all of them - basically *any file*
could be mounted, if only there is a filesystem for it.
We still give the blockdevices and predefined mountpoints, so they can
still be used.
2020-12-11 23:09:16 +01:00
Jason
9140fc7931
pactl completions: guard call to other pulseaudio tools ( #7532 )
...
At least on Arch Linux, pacmd and pulseaudio aren't necessarily available just because pactl is (pipewire is now a thing, and it installs libpulse but not pulseaudio)
2020-12-06 14:54:41 +01:00
Mahmoud Al-Qudsi
a614a19b07
[apt] Dynamic completions for source repo
...
Dynamically complete the possible candidates for `apt install -t <repo>`
by "parsing" the installed configuration files.
[ci skip]
2020-12-05 10:45:04 -06:00
Johannes Altmanninger
4ed22246c3
completions/gem: do not execute completion description
2020-11-29 06:07:00 +01:00
Marcel Hellwig
c7dc2c5a58
add completion for icdiff
...
icdiff is a diff command that uses colors by default and is an advances
version of the original diff command
https://github.com/jeffkaufman/icdiff
2020-11-24 19:25:51 +01:00
Milan Zink
f1a5fa82a0
Adding 'dnf versionlock' completions
2020-11-23 21:34:07 -08:00
Fabian Homborg
2e55e34544
Reformat
2020-11-22 14:39:48 +01:00
Mahmoud Al-Qudsi
6c8c8bf819
[zfs] Dynamically complete possible zfs property values
...
Use the man pages to dynamically generate possible completions for `zfs
set property=` payloads.
[ci skip] // Does that even work for GitHub actions?
2020-11-21 11:05:00 -06:00
Akatsuki Rui
df4114fb93
homectl.fish: fix Expected argument for option a
...
And a mistake space in description
[ci skip]
2020-11-20 23:08:50 +01:00
Érico Rolim
036ed36887
share/completions/ls: remove double whitespace.
...
Small typo in the description for one of the options.
2020-11-13 14:34:42 +01:00
Érico Rolim
943ead2598
share/completions: fix non-standard capitalization.
...
Use "Installed package" instead of "Installed Package".
2020-11-13 14:34:42 +01:00
Mahmoud Al-Qudsi
6bd4f52b0d
[zfs] Optimize enumeration of snapshots
...
Only generate the list of snapshots when
a) the argument must be a snapshot and nothing else, or
b) the argument as typed contains a literal @, or
c) a snapshot is a valid completion and there is only one dataset
matching the argument as entered.
Unfortunately, it seems the `zfs` command itself is extremely primitive
and doesn't support listing snapshots by dataset so when we need to
generate completions, we end up needing to enumerate all snapshots
(ever) across all datasets. I'd be very happy to be proven wrong, but I
think the only other way would be manually parse `zdb` output.
See #7472
2020-11-12 22:24:29 -06:00
Shun Sakai
36337fc45d
Add completions for julia
2020-11-09 00:41:38 +09:00
Sean Wei
ca0f5686ff
Fix typo
2020-10-31 13:27:05 +01:00
Jan-Jaap Korpershoek
4b74fbf1b7
Make mysql completions work with log-in ( #7397 )
...
Complete databases using credentials specified on the commandline.
2020-10-30 18:34:23 +01:00
Mahmoud Al-Qudsi
3471db51c8
[completions] Add completions for pidof
...
[ci skip]
2020-10-30 11:16:22 -05:00
Clément Martinez
5a0bc0a516
Add bluetoothctl completions
2020-10-30 16:38:26 +01:00
Akatsuki Rui
f73808a0fa
Add completions for homect ( #7435 )
...
systemd-homed control tool
based on the systemd v246.6-1 manpage
2020-10-30 04:25:54 +01:00
Akatsuki Rui
d9b39b0d51
hostnamectl.fish: new completion
...
systemd-hostnamed control tools
2020-10-28 19:38:45 +01:00
Akatsuki Rui
9910bdf07a
coredumpctl.fish: new completion
...
systemd-coredump control tools
2020-10-28 19:38:45 +01:00
Akatsuki Rui
91d6e50ed8
bootctl.fish: new completion
...
systemd-boot control tools
2020-10-28 19:38:45 +01:00
Akatsuki Rui
745c2c6383
timedatectl.fish: add missing 2 commands
...
timesync-status
show-timesync
and some missing options
2020-10-28 19:38:45 +01:00
Fabian Homborg
0259b29a09
completions/cdh: Only shorten ~ if the token starts with one
...
Works around #4570
Also keep order like it always wanted.
[ci skip]
2020-10-28 18:18:06 +01:00
Mahmoud Al-Qudsi
c560240abc
[zpool] Improve ZFS completions
...
Do not show devices already part of a zpool on calls to `zpool add`
and the converse.
2020-10-25 21:51:34 -05:00
Clément Martinez
cbc40842e2
Complete pipenv run
2020-10-25 17:18:42 -05:00
Johannes Altmanninger
b633b443ba
fixup! completions/git: handle "1 .A" files
2020-10-17 07:45:22 +02:00
Johannes Altmanninger
14855de95a
completions/git: handle "1 .A" files
...
Fixes #7403
[ci skip]
2020-10-16 22:11:01 +02:00
Fabian Homborg
2a6547dd7c
completions/mysql: Complete database name
...
Gosh this interface is awful - we really really need to strip the
weird ascii table and the "Database" header.
[ci skip]
2020-10-12 19:50:20 +02:00
Mahmoud Al-Qudsi
3f0e2ef1dc
[openssl] Support openssl 1.1.0 completions
2020-10-10 11:53:57 -05:00
Johannes Altmanninger
863b4700f8
Use builtin command in spago completions, add to changelog
2020-10-10 13:11:53 +02:00
matoruru
d544cda937
Add completions/spago.fish
2020-10-10 13:07:27 +02:00
Johannes Altmanninger
a635d78976
competions/env: only invoke subcommand completions once
...
This prevents a seemingly infinite loop in
fish -c 'alias ssh "env ssh"; complete -C "ssh "'
It still prints "maximum recursion depth exceeded", but a follow-up commit
will work around that.
Fixes #7389
2020-10-10 09:24:49 +02:00
Johannes Altmanninger
f917211f3b
completions/ssh: history --max=n might be better than head -n
2020-10-10 09:24:49 +02:00
Johannes Altmanninger
1173e8bda4
Clarify that some complete calls just need a command with no user-defined completion
2020-10-10 09:24:49 +02:00
Joni Salmi
f845f267bd
umount.fish Add long flags and fix long description in completion #6981
2020-10-03 17:16:39 -07:00
Johannes Altmanninger
f758d39535
string pad: handle padding characters of width > 1
...
If the padding is not divisible by the char's width without remainder,
we pad the remainder with spaces, so the total width of the output is correct.
Also add completions, changelog entry, adjust documentation, add examples
with emoji and some tests. Apply some minor style nitpicks and avoid extra
allocations of the input strings.
2020-09-27 21:59:15 +02:00
Johannes Altmanninger
46746b4b26
completions/git: offer commit ranges for range-diff
...
A match made in heaven!
2020-09-27 21:59:15 +02:00
Johannes Altmanninger
e9582c41b2
Remove __fish_complete_external_command
...
It's no longer used.
2020-09-25 19:33:01 +02:00
Johannes Altmanninger
618705285d
completions/git: support ... range notation
...
https://git-scm.com/docs/gitrevisions#_revision_range_summary
2020-09-25 19:33:01 +02:00
Johannes Altmanninger
2a95b283ee
completions/git: complete only right commit if cursor is beyond the ".."
...
This enables completion for the right part of a range in many cases, like
`git log HEAD~10..`.
2020-09-25 19:33:01 +02:00
Mahmoud Al-Qudsi
533957fc2e
[apt] Add --with-new-pkgs completion
...
[ci skip]
2020-09-22 21:52:47 -05:00
Fabian Homborg
a3e20a4d38
Don't use abbreviated long options
...
"function --argument" is not a thing, it's "--argument-names". This only
accidentally works because our getopt is awful and allows abbreviated
long options.
Similarly, one argparse test used "--d" instead of "-d" or "--def".
2020-09-19 11:47:41 +02:00
exploide
ca730cf714
added completions for micro
2020-09-18 19:41:44 +02:00
Johannes Altmanninger
07c8608034
Fix make -j description
2020-09-17 18:44:54 +02:00
Mahmoud Al-Qudsi
304649acc6
[zfs] Add completions for new dataset prefix
...
[ci skip]
2020-09-16 14:37:59 -05:00
Mahmoud Al-Qudsi
bf31333622
[ffmpeg] Prevent -codec from matching -codec:[vas]
...
This was preventing the narrowing of matching completions.
[ci skip]
2020-09-07 16:52:47 -05:00
Mahmoud Al-Qudsi
2a4289dcd1
[ffmpeg] Fix variable name in __fish_ffmpeg_complete_regex
...
[ci skip]
2020-09-07 16:52:47 -05:00
Joost-Wim Boekesteijn
0cec12c6c0
ffprobe completions: show_stream -> show_streams
...
This should be `show_streams` instead of `show_stream` according to:
31b6b6685e
:/doc/ffprobe.texi#l218
2020-09-07 18:52:08 +02:00
Mahmoud Al-Qudsi
4331face4a
[vips] Add vips completions
...
Just a skeleton completion file, but the list of available
actions/completions is at least dynamically generated (there's a lot of
them, they are impossible to remember, and they depend on build
options).
[ci skip]
2020-09-04 21:40:27 -05:00
Mahmoud Al-Qudsi
fe6fb23f43
[ffmpeg] Add -f formats completions
...
[ci skip]
2020-09-04 13:43:26 -05:00
Fabian Homborg
1041e59c5b
fixup! Do actually use the correct command
...
Sorry!
2020-09-04 16:59:08 +02:00
Fabian Homborg
0ae37ac83a
Add alias completions
...
Fixes #7305
2020-09-04 16:58:41 +02:00
Fabian Homborg
bfb5b28d0f
Let command, jobs and type take --query
instead of --quiet
...
Now command, jobs, type, abbr, builtin, functions and set take `-q` to
query for existence, but the long option is inconsistent.
The first three use `--quiet`, the latter use `--query`. Add `--query`
to the first three, but keep `--quiet` around.
Fixes #7276 .
2020-09-04 16:55:09 +02:00
Mahmoud Al-Qudsi
91b2edd51d
[apt] Add --no-install-recommends
...
[ci skip]
2020-09-03 21:47:21 -05:00
Mahmoud Al-Qudsi
326fd8d750
[cargo] Add dynamic --package completions
...
[ci skip]
2020-09-03 13:41:37 -05:00
Akatsuki
4f0f5daea9
go.fish: add some missing options
...
also fix long descriptions #6981
2020-09-02 20:58:29 +02:00
Shun Sakai
244feee692
Add completions for some missing GLib's tools ( #7300 )
2020-09-01 05:15:23 +02:00
Mahmoud Al-Qudsi
c1cb462854
[ffmpeg] Complete some popular codec-specific options
2020-08-30 22:23:25 -05:00
Mahmoud Al-Qudsi
010db9e7be
[ffmpeg] Complete filter graphs
...
Dynamically generate a list of supported filters and transmogrify the
typed out filter graph into a fish completion.
[ci skip]
2020-08-30 22:23:25 -05:00
Mahmoud Al-Qudsi
3d5e1a061c
[ffmpeg] Add enumeration of pixel formats
...
[ci skip]
2020-08-30 22:23:25 -05:00
Mahmoud Al-Qudsi
280e99467d
[ffmpeg] Enumerate codecs for numbered streams
...
* This adds support for enumerating codecs after, e.g., -c✌️ 0
* (Also adds support for indeterminate codecs without a/s/v specified)
[ci skip]
2020-08-30 22:23:25 -05:00
Mahmoud Al-Qudsi
0d3f4db33a
[cargo] Use filesystem for --example completions
...
`cargo run --example` no longer lists examples and never listed examples
that were not built.
2020-08-29 17:06:33 -05:00
Akatsuki
f88d7dd312
btrfs.fish: fix long descriptions
2020-08-28 20:10:12 +02:00
exploide
167a96fdeb
corrected grep completions
2020-08-24 20:28:46 +02:00
Daniel Bengtsson
23f9373d26
Fix the description for ping.
...
Fix the long description for ping.
2020-08-24 19:31:48 +02:00
Tom Dunlap
dc411b373d
Remove "go run" from commands with exclusive args
...
`go run` compiles and runs a go program passing along the trailing args to the compiled program. Limiting `go run` to only complete *.go files means that if you are running a go file that takes a file path as a command line argument, you frustratingly cannot use tab completion.
2020-08-21 20:40:23 +02:00
Daniel Bengtsson
9ffaade0db
Fix the long description for ansible.
...
Maybe it's not necessary to display the default path here.
2020-08-20 21:40:11 +08:00
Charles Gould
bb23385baa
completions: add missing options for history builtin
2020-08-20 20:15:56 +08:00
Johannes Altmanninger
eb59d4eb14
Run fish_indent on share/**.fish
2020-08-17 17:40:28 +02:00
Colin Woodbury
a0b46e6204
Update Aura completions
2020-08-13 00:29:55 +02:00
Johannes Altmanninger
46a69d6b90
Simplify prime-run completions
2020-08-10 20:46:07 +02:00
oriko1010
8b02a78887
Add completion for prime-run
2020-08-10 20:44:20 +02:00
Johannes Altmanninger
9c327b19a6
Fix extra or missing newlines at end of file in our fish scripts
...
New fish_indent does that too, so this will make any future reformatting
diffs smaller.
Done using either of:
perl -pi -e 'undef $/; s/\n*$/\n/' share/**.fish
kak -n -f '<a-/>\n*<ret>d' share/**.fish
2020-08-09 23:53:46 +02:00
Johannes Altmanninger
918c62863e
Fix typo
2020-08-09 23:53:46 +02:00
Johannes Altmanninger
b7bd7e9916
Clean up some __fish_complete_suffix usage
...
Also don't cd in pine completions.
2020-08-08 22:56:54 +02:00
Fabian Homborg
be9d17b08a
help: Add the other pages
2020-08-07 21:06:16 +02:00
Johannes Altmanninger
d7ccc475cf
Cleanup __fish_complete_subcommand
...
The external-commands-only completion was briefly added in 3.1.0 and removed
in 3.1.1 (see #6798 ), which means we can remove some dead code.
Maybe we should just remove __fish_complete_external_command - it could break
users, but then again, we don't really have a way to stop people from starting
to use this deprecated function. The underscores ought to communicate that
this is function is private to fish but that is not enforced.
2020-08-06 21:24:26 +02:00
Allen Sobot
54823c9243
Implement XBPS completions ( #7239 )
2020-08-05 20:01:19 +02:00
Daniel Kravetz
7a77907b62
Update k3d
completions ( #7232 )
2020-08-01 13:41:44 +02:00
ridiculousfish
1c2323e76f
Use dashes instead of underscores pervasively in tutorial anchors
...
This fixes some broken help completions.
2020-07-31 12:10:16 -07:00
Johannes Altmanninger
233945b58b
completions/git.fish: fix completions for "git config"
...
gui.fontui can be like "-family ..."
2020-07-25 18:53:24 +02:00
Shun Sakai
25e9a758ad
Add completions for p7zip
2020-07-24 17:42:44 +02:00
Stefan Tatschner
d4fafc15ca
completions: Remove -f from pacman -U
...
pacman -U is intended to be used with (among others) files like this:
# pacman -U ./linux-headers-5.6.2.arch1-2-x86_64.pkg.tar.zst
Thus, let's enable file path completion for this kind of operation.
2020-07-24 19:49:20 +08:00
Daniel Kravetz
0f78700f6b
Update share/completions/k3d.fish
...
Co-authored-by: Gokul Soumya <gokulps15@gmail.com>
2020-07-16 15:11:40 -07:00
Daniel Kravetz Malabud
da16e8c6b3
Add k3d
completions
2020-07-16 15:11:40 -07:00
Mahmoud Al-Qudsi
50e2a8dd72
[dnf] Fall back to dnf repolist
when no sqlite3
...
[ci skip]
2020-07-08 11:24:29 -05:00
Shun Sakai
d24a14744c
Update apk-tools completions ( #7171 )
...
* Update apk-tools completions
Add completions of options of it's subcommands.
The completions of deprecated options is unimplemented.
* Fix installed package listing for apk-tools
An error occurs when the local cache does not exist, so fixed this.
2020-07-05 18:22:36 -05:00
Mahmoud Al-Qudsi
79d6710db4
fixup! Add udevadm completions
...
[ci skip]
2020-07-04 15:49:47 -05:00
Gokul Soumya
7e2a067f53
Add completions for mpc ( #7169 )
2020-07-04 19:46:19 +02:00
Mahmoud Al-Qudsi
de47a096e8
Add udevadm completions
...
[ci skip]
2020-07-01 09:27:20 -05:00
Gokul Soumya
3f210acdff
Add completions for yadm ( #7100 )
2020-07-01 00:34:00 +02:00
Mahmoud Al-Qudsi
9846328b41
[xinput] Provide completions for device properties
...
Also support specifying devices and properties by name, not just id.
[ci skip]
2020-06-29 22:09:53 -05:00
Mahmoud Al-Qudsi
46587b47c4
Add completions for synclient
...
[ci skip]
2020-06-29 13:03:48 -05:00
Daniel Bengtsson
05abd0ed68
Fix long description in completion.
...
Simplify the description sudo for the option l. I think it's sufficient.
Fixes : #6981
2020-06-29 09:58:02 -05:00
Mahmoud Al-Qudsi
da21ab5892
[xinput completions] Support devices with : in name
...
[ci skip]
2020-06-28 23:03:03 -05:00
Clément Martinez
5da3a95451
Add git diff --staged
completion
2020-06-26 18:26:50 -05:00
Fabian Homborg
149a0b98af
Another formatting run
...
I really kinda hate how insistent clang-format is to have line
breaks *IFF THE LINE IS TOO LONG*.
Like... lemme just add a break if it looks better, will you?
But it is the style at this time, so we shall tie an onion to our
belt.
2020-06-24 20:43:56 +02:00
Fabian Homborg
c21a3b9d71
Break up lines over 1000 characters
...
Yeah, these are just excessive.
In case you are wondering: 2812 characters was the longest line in all
of fish.
2020-06-24 20:42:03 +02:00
Gokul Soumya
e41404eed3
Improve git config completions ( #7150 )
...
* completions/git: Show all accepted values with git config
Finally closes #3812 .
Acceptable values are generated using `git help --config`
* completions/git: Show config value as description for git config
* completions/git: Handle multiline config values
When completing `git config` only display the first
line of config value as description if it is
multiline, appended with an ellipsis.
2020-06-24 20:07:25 +02:00
Fabian Homborg
9ae880f6ac
Comment *why* adb needs its redirections hand-fed
...
[ci skip]
2020-06-23 09:02:26 +02:00
Erutuon
2b6ce30a70
Fix redirection in adb shell
...
`adb` shell by default sends stderr from the command to stdout, so that `adb pull nonexistent<tab>` will show the error message from the `find` command. `>` must be escaped so that redirection is done inside the command executed by `adb shell`.
2020-06-23 08:59:02 +02:00
Gokul
c7a8e35bfc
completions/function: Update missing completions
...
- Complete signals with --on-signal
- Complete variables with --on-variable and --inherit-variable
- Complete event handlers with --on-event
- Complete commands with --wraps
- Add `complete` spec for --inherit-variable
2020-06-22 17:27:57 +02:00
Clément Martinez
1d1a2802ca
Add completion for systemctl --failed
2020-06-22 17:24:15 +02:00
Fabian Homborg
d8e5dfbb51
completions/dnf: Only offer the packagename
...
Removing the extraneous cruft.
Really, this should just be using its database properly.
Fixes #7118 .
2020-06-20 19:56:33 +02:00
Oscar Tin Lai
eb4f86710d
Add support for git-* command auto-completion ( #7075 )
...
* add support for git custom command completion
* small fixups
* remove autogenerated path from sourcing git-* completions
2020-06-20 18:35:10 +02:00
wayou
424e658d16
Add completions for deno
2020-06-20 18:31:57 +02:00
Daniel Bengtsson
dd1a26588a
Fix long description in completion.
...
Simplify the description, I think it's sufficient like this.
Fixes : #6981
2020-06-20 18:18:45 +02:00
Fabian Homborg
ee0d13a552
completions/set: Stop "hiding" dunder-prefixed variables
...
This was intended to stop showing the user "unimportant" variables,
but it just didn't complete them entirely, even if the current token
starts with a dunder (or `fish` of all things!).
Because completions sort `_` last, let's just complete these always
and let the user filter them.
2020-06-20 09:51:29 +02:00
Gokul
dde7ee9c7d
Add completions for github's gh tool
2020-06-17 20:27:20 +08:00
Gokul
9b10636824
Make completion descriptions for feh shorter
...
Strikes off feh in #6981 .
2020-06-15 21:55:47 +08:00
Shun Sakai
ffaf969e6e
Add completions for apk-tools
...
Completion of options for each subcommand is not implemented.
2020-06-14 19:23:49 +02:00
Maciek Borzecki
47200a8abf
completions/snap: workaround snap interfaces deprecation notice
...
The `snap interfaces` command prints out a deprecation notice to stderr. This breaks the completion
support for interfaces, connect and disconnect commands like so:
```
$ snap connect <TAB>error: no interfaces found
error: no interfaces found
...
'snap interfaces' is deprecated; use 'snap connections'.
'snap interfaces' is deprecated; use 'snap connections'.
'snap interfaces' is deprecated; use 'snap connections'.
error: no interfaces found
error: no interfaces found
'snap interfaces' is deprecated; use 'snap connections'.
```
Ultimately, the snap command completion should switch to `snap connections`. However, for now try to
workaround the notice by redirecting stderr.
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
2020-06-14 19:22:37 +02:00
Shun Sakai
991389603c
Add completions for xxHash
2020-06-14 19:22:01 +02:00
Fabian Homborg
983f9eaa50
completions/apt: Let autoremove take packages
...
Fixes #7095
[ci skip]
2020-06-08 17:43:23 +02:00
Gokul
413a6aec98
Add completions for create_ap
2020-06-08 16:57:57 +02:00
Charles Gould
3692d63188
completions: shorten fzf descriptions
2020-06-04 18:24:11 +02:00
Charles Gould
0f4ed5b6b8
completions: shorten base64 descriptions
2020-06-04 18:24:11 +02:00
Charles Gould
fd2eb26ee3
completions: fix typo for mktemp
2020-06-04 18:24:11 +02:00
Alexander Sieg
af2d19bde0
completions: add hikari completion ( #7083 )
...
* completions: add hikari completion
* requested changes by code reviewer
2020-06-04 18:22:25 +02:00
Jason
4dff15b74e
kdeconnect-cli completions: ignore stderror ( #7074 )
...
* kdeconnect-cli completions: ignore error messages
* squash this please
2020-06-03 16:12:52 +02:00
Fabian Homborg
f25f15fd69
completions: Fix leftover "^" redirections
2020-06-02 21:43:32 +02:00
Jason
fd7bb14cf2
completions: update xrandr ( #7065 )
...
* completions: update xrandr
Adds new options from new version of xrandr
* xrandr: remove version checks
2020-05-30 12:11:26 +02:00
Charles Gould
dcf4d671c2
completions: fish_add_path
2020-05-30 10:09:21 +02:00
Jason
f041daecc6
completions: update python3
2020-05-28 17:42:00 +02:00
Donovan
bc2eb383d4
Funcsave with --directory option ( #7041 )
...
* funcsave: add option --directory
Signed-off-by: Donovan Jean <commit@dkrm.dev>
* funcsave: fix synopsis
Signed-off-by: Donovan Jean <commit@dkrm.dev>
* funcsave: fix completion
Signed-off-by: Donovan Jean <commit@dkrm.dev>
* funcsave: fix error message
Signed-off-by: Donovan Jean <commit@dkrm.dev>
* funcsave: fix parameter expansion
Signed-off-by: Donovan Jean <commit@dkrm.dev>
2020-05-27 20:13:44 +02:00
Jason
fb57a98aef
Shorten python3 completion descriptions
2020-05-27 20:12:48 +02:00
Fabian Homborg
46068cd257
completions/unzip: Stop filtering suffixes
...
It's unhelpful quite often.
See #7040 .
2020-05-27 19:35:17 +02:00
Jason Nader
65dde5b55a
Fallback to the slower --list-devices if device not immediately available
2020-05-24 20:19:19 +02:00
Jason Nader
68a1f2b20a
completions: speed up kdeconnect-cli device discovery
2020-05-24 20:19:19 +02:00
Johannes Altmanninger
6746060c14
Run fish_indent on all fish files in share/
2020-05-19 21:15:39 +02:00
Johannes Altmanninger
c54ee22c46
Refactor: remove unnecessary exports
2020-05-19 21:15:11 +02:00
Johannes Altmanninger
3819696091
Fix Kakoune completions
2020-05-19 21:15:11 +02:00
Charles Gould
b673f32b93
Add fish debugging examples
2020-05-19 21:07:33 +02:00
Shun Sakai
cc039e29ce
Add completions for Docutils
2020-05-19 21:02:55 +02:00
Fabian Homborg
43df5ba828
completions: Stop checking for command existence
...
Since 4414d5c888
(in fish 3.0.0) we
don't autoload completions if the command doesn't exist.
So there is no need to check inside the scripts anymore.
Whats more, a few (like pip and cabal) checked `command -q` instead of
`type -q`, meaning they'd fail if someone used a function instead of a
command of that name.
If the *command* actually needs to exist, checks like that are still
warranted, like in `npm` where aliasing it to `nvm` is popular.
A teensy additional bit: Make `sysctl -w` the same as `sysctl
--write`. That description was bogus.
2020-05-18 20:48:36 +02:00
Jason Nader
3cfcbe0975
completions: shotern atom
descriptions
2020-05-18 18:54:21 +02:00
Fabian Homborg
495cbb185f
completions/zpool: Use --inherit-variable
...
The local-exported variable will have disappeared by the time the
function is called.
"-V"/"--inherit-variable" is meant for something like this.
Fixes #7011
2020-05-16 23:02:47 +02:00
Johannes Altmanninger
e03c375ee3
Purge remnants of process expansion, document {fish,last}_pid
2020-05-16 11:58:12 +02:00
Johannes Altmanninger
f9447dc72f
help.fish: fix help for the separate completion page
2020-05-16 11:58:12 +02:00
Fabian Homborg
62f1ed0b5e
completions/git: More files for git commit
...
Fixes #7009 .
2020-05-15 20:26:07 +02: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
Johannes Altmanninger
fe6c76d058
Read into local variables in some completions
...
Otherwise these might modify global or universal vars.
2020-05-15 07:14:54 +02:00
Atanas Yankov
bb458c7186
Add some missing journalctl completions ( #6989 )
2020-05-15 06:58:11 +02:00
Shun Sakai
3ee4c139b3
Add completions for Sphinx
2020-05-13 20:31:01 -07:00
Shun Sakai
230dbae0b9
Add completions for cmark
2020-05-13 20:31:01 -07:00
Shun Sakai
ed4dd1dd4d
Add completions for Asciidoctor
2020-05-13 20:31:01 -07:00
Akatsuki
46c253b9d6
completions/set: add --path and --unpath
...
Add missing options:
--path causes the specified variable to be treated as a path variable, meaning it will automatically be split on colons, and joined using colons when quoted (echo "$PATH") or exported.
--unpath causes the specified variable to not be treated as a path variable. Variables with a name ending in "PATH" are automatically path variables, so this can be used to treat such a variable normally.
[ci skip]
2020-05-13 20:28:35 -07:00
Jason Nader
90c89c877f
Use short flag for --description for consistency in code base
2020-05-08 22:58:52 +02:00
Ron Gebauer
54f3fbbf8c
Fix issue if md5sum is used instead of md5 ( #6958 )
...
* Fix issue if md5sum is used instead of md5
Both have a different output which results in different array sized
Signed-off-by: Ron Gebauer <ron.gebauer@raytion.com>
* Add feedback
Signed-off-by: Ron Gebauer <ron.gebauer@raytion.com>
2020-05-07 21:02:22 +02:00
Charles Gould
bd472ececc
Add fish_trace to special variable completions
2020-05-03 21:20:24 +08:00
Fabian Homborg
1988bd2579
completions/git: Only use first line of alias as the description
...
This was a weird one. We split the aliases correctly even with
multiple lines, but then broke it all again when we just printed the
description.
Note that it would be possible to use `string split0` here, but since
anything longer than a line is likely too long for a description
anyway we don't bother.
Fixes #6946 .
2020-04-26 08:49:01 +02:00
exploide
c0542727c4
added completions for metasploit commands
...
- msfconsole
- msfdb
- msfvenom
2020-04-25 09:30:09 +02:00
Jason
bd44c3a5cb
Shorten descriptions
2020-04-25 09:29:42 +02:00
Fabian Homborg
47677dfe95
Merge #6788
...
Completions update
2020-04-25 09:29:01 +02:00
Ron Gebauer
d256ff84f7
Improve gradle completion ( #6864 )
...
* Improve gradle completion a lot
Signed-off-by: Ron Gebauer <ron.gebauer@raytion.com>
2020-04-25 09:22:07 +02:00
Kid
6022d216cb
Update Yarn completions ( #6821 )
...
* Update `yarn global` command
* Add descriptions
2020-04-25 09:21:05 +02:00
239
4d596a8f1d
Merge branch 'master' into completions-update
2020-04-23 14:01:42 +02:00
Jason Nader
f66285d7a1
dogfood string split -f
2020-04-20 22:39:48 +02:00
Fabian Homborg
3f95440f26
completions: Use commandline -opc, not just -o
...
`commandline -o` tokenizes *the entire commandline buffer*.
See #6922 .
2020-04-20 19:43:01 +02:00
Charles Gould
2421eb6180
docs: Add completions for fish_key_reader
2020-04-19 07:06:31 +02:00
exploide
8e418f5205
updated su completions
2020-04-18 10:54:06 +02:00
Jason Nader
85a8deabe9
Run fish_indent
on all files
2020-04-18 10:53:11 +02:00
Fabian Homborg
157469038f
completions/duply: Stringify
...
This used a hardcoded "/bin/ls" for unknown reasons.
For one that's unnecessary, for another we don't want to parse string.
Use globs instead.
2020-04-18 10:29:18 +02:00
Fabian Homborg
6004d04da6
completions/rmmod: Stop hardcoding lsmod location
...
No idea what that was supposed to accomplish to begin with.
Fixes #6912
2020-04-18 10:26:55 +02:00
David Adam
021679b17c
completions/nc.traditional: add missing fish suffix to file
...
Noted in
https://github.com/fish-shell/fish-shell/pull/6873#issuecomment-614290625
2020-04-16 23:17:02 +08:00
Benjamin Kellermann
de9f4cb252
add completion for netcat
...
- implement the most common netcat variants on Linux
- nc.openbsd
- nc.traditional
- nc/netcat tries to guess which netcat is currently used
2020-04-13 23:45:40 +02:00
Benjamin Kellermann
0a40a6d551
add completion for nmap
2020-04-13 23:45:40 +02:00
Johannes Altmanninger
671b941b52
Fix ninja target completions without the -C flag
2020-04-13 22:56:22 +02:00
exploide
82b811281d
added completions for groups (coreutils)
2020-04-13 22:56:22 +02:00
exploide
ee180988d1
sftp completions
2020-04-11 13:24:35 +02:00
Shun Sakai
4f60693037
Add completions for Zopfli
2020-04-11 13:13:56 +02:00
xnumad
af5a9cf88e
It's wget --bind-address
...
Fixes typo
2020-04-09 23:49:27 +08:00
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
Shun Sakai
b862c63905
Fix an issue that cannot run on non-Linux systems
...
If Python 3.4 or later installed on the system, complement to the
number of physical cores. In addition, even if the number of physical
cores cannot be obtained, it was fixed to run properly.
2019-12-07 12:21:51 +01:00
Shun Sakai
8d56609734
Add zstd completions
...
Squashed commit of the following:
commit 55c8e73faff2418161404f012440acced09580e4
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 05:25:02 2019 +0900
Implementation of `zstdless` completions
commit e81ae6f83fb9f23bdd6038fbf29ea594da098c2c
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 05:20:33 2019 +0900
Implementation of `zstdgrep` completions
commit 2ade3a9c01bdc5b024f785c369fcb6c3e007cb19
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 04:50:42 2019 +0900
Implementation of `pzstd` completions
commit 0b9cb86a6936f3de18db7b2c012da6efec89c8e8
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 04:39:52 2019 +0900
Implementation of `zstdcat` completions
commit e4a4101d18a82fb06ee451560d079b9b81af5f3e
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 04:25:05 2019 +0900
Implementation of `unzstd` completions
commit 88ad0af46d486a92ab3989c55abb3ff477e5a372
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 04:18:38 2019 +0900
Implementation of `zstdmt` completions
commit 13f2bf7951501031c61a5c0f143b8a29eaa9437e
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Fri Nov 29 01:13:52 2019 +0900
Implementation of `zstd` completions
2019-12-07 12:21:51 +01:00
Shun Sakai
bc2634eaaf
Add lz4 completions
...
Squashed commit of the following:
commit 08ea083bf87a613675789937d7f6740daa26fc61
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Thu Nov 28 23:51:35 2019 +0900
Implementation of `lz4cat` completions
commit 027adedfeb7bb65ffd46e44b4266df3d98368326
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Thu Nov 28 23:36:12 2019 +0900
Implementation of `unlz4` completions
commit 522925450a8076d4a0d3377cd9233abc643bbbf7
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Thu Nov 28 23:19:45 2019 +0900
Implementation of `lz4c` completions
commit 298ce5e05e3be2cac774063ed2ee8289ba53cf24
Author: Shun Sakai <sorairolake@protonmail.ch>
Date: Thu Nov 28 23:02:52 2019 +0900
Implementation of `lz4` completions
2019-12-07 12:21:51 +01:00
Fabian Homborg
9d14594f7c
Merge pull request #6390 from ammgws/debian
...
Move __fish_print_debian_services into invoke-rc.d completion script
2019-12-07 12:16:29 +01:00
Jason
3129b3c5ef
Move __fish_print_debian_services into invoke-rc.d completion script
2019-12-05 05:26:26 +09:00
Jason
a361cde1df
Move __fish_complete_svn_diff into the completion script
2019-12-04 20:53:58 +01:00
Jason
965b142acd
Move __fish_print_zfs_* into zfs completion script
2019-12-04 20:53:01 +01:00
Jason
69dccce937
Move __fish_print_function_prototypes into valgrind completion script
2019-12-04 20:51:55 +01:00
Jason
013001c283
Move __fish_print_lsblk_columns into lsblk completion script
2019-12-04 20:51:37 +01:00
Jason
5107de395d
Move __fish_print_xdg_desktop_file_ids into xdg-mime completion script
2019-12-04 20:51:21 +01:00
Jason
9c15b5b7a4
Move __fish_systemd_machines into machinectl completion script
2019-12-04 20:51:09 +01:00
Jason
b658b421ad
Move __fish_ports_dirs into ports completion script
2019-12-04 20:50:55 +01:00
Jason
40832f897c
Move __fish_portage_print_repository_names into emaint completion script
2019-12-04 20:50:28 +01:00
Jason
69255d5641
Move __fish_parse_configure into configure completion script
2019-12-04 20:50:19 +01:00
Jason
b3f8a93e02
Move __fish_print_abook_emails into mutt completion script
2019-12-04 20:50:01 +01:00
Shun Sakai
62d435f25b
Add completions of --committer-date-is-author-date
and --ignore-date
for git-rebase
2019-12-02 15:23:56 +01:00
Shun Sakai
b4f0a67ef2
Add git-count-objects
and git-gc
completions
2019-12-02 15:23:56 +01:00
Jason
2fd1e4ab75
Move __fish_complete_unrar into the completion script
2019-12-01 17:35:35 +01:00
Jason
fa373c102c
Move __fish_complete_wvdial_peers into the completion script
2019-12-01 17:34:46 +01:00
Jason
6486349725
Move __fish_complete_tar into the completion script
2019-12-01 17:34:27 +01:00
Jason
6245d76e57
Move __fish_complete_lsusb into the completion script
2019-12-01 17:33:07 +01:00
Jason
b358cee5fe
Move __fish_complete_setxkbmap into the completion script
2019-11-30 12:12:18 +01:00
ridiculousfish
39e5ffde93
Rename __fish_complete_file_url to __fish_evince_complete_file_url
...
As the function is now private to evince, use a less generic name.
2019-11-30 00:23:54 -08:00
mk2
c36d802dda
Move __fish_complete_file_url to evince.fish
2019-11-30 00:21:47 -08:00
mk2
439470b048
Move __fish_complete_ant_targets to ant.fish
2019-11-27 16:32:37 +01:00
Jason
3cf6ebc0e1
Amend typos and grammar errors
2019-11-25 13:07:15 +01:00
Akatsuki
cb72a33e0c
Fix some issues in __fish_complete_subcommand.fish
...
Fix 'string length: Unknown option': add `--` before $subcommand
Fix count $subcommand always = 1 with `sudo` and `doas`:
give argv as array to __fish_complete_subcommand
[ci skip]
2019-11-17 00:39:06 +01:00
Fabian Homborg
330f1701d7
Restyle
...
This mostly fixes some wrong indents or replaces some stray tab indents.
I excluded alignment on purpose, because we have a whole bunch of code
that goes like
```fish
complete -c foo -n 'some-condition' -l someoption
complete -c foo -n 'some-longer-condition' -l someotheroption
```
and changing it seems like a larger thing and would include more
thrashing.
See #3622 .
2019-11-16 14:57:59 +01:00
Sergei Morozov
91bda38d57
Added the missing argument for -c|--configuration option of PHPUnit
2019-11-13 13:24:41 -08:00
Sergei Morozov
9251601e0b
Added completion of the argument for the composer show
command
2019-11-13 13:23:55 -08:00
Sam Yu
4de9a3e102
Update zypper completion
...
- fix repo completion
- add completion for locale management
2019-11-13 13:20:38 -08:00
Johannes Altmanninger
e37bb0721d
completions/git: fix typo in deleted-staged files
...
Fixes #6315
2019-11-12 21:40:13 +01:00
Z. Grace Moreau
35bc811310
add completions for plutil
2019-11-10 22:19:15 +01: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
Clément Martinez
82227b8854
Add apt install --reinstall
completion
2019-11-09 22:40:20 +08:00
Collin Styles
422e2dcbdd
Add completions for rustup doc
...
[As of rustup 1.20][1], users can give a topic as an argument to `rustup
doc` to open the relevant documentation page in a browser. This commit
adds completions for these topics to assist users in finding what
they're looking for.
[1]: https://blog.rust-lang.org/2019/10/15/Rustup-1.20.0.html#improvements-to-rustup-doc
2019-11-07 18:48:19 +01:00
Johannes Altmanninger
08eac28bd8
Add individual documentation pages for string's subcommands
...
This adds string-x.rst for each subcommand x of string. The main page
(string.rst) is not changed, except that examples are shown directly after
each subcommand. The subcommand sections in string.rst are created by
textual inclusion of parts of the string-x.rst files.
Subcommand man pages can be viewed with either of:
```
man string collect
man string-collect
string collect <press F1 or Alt-h>
string collect -h
```
While `string -h ...` still prints the full help.
Closes #5968
2019-11-07 09:54:25 +01:00
Christopher Rogers
b089a579bd
Fix typo in git clean completion
2019-11-07 15:32:43 +09:00
Johannes Altmanninger
04c912e0e3
Fix typo, closes #6289
...
[ci skip]
2019-11-05 13:32:41 +01:00
Johannes Altmanninger
4f1fa9513c
Make most subcommand completions take external commands only
...
Also fix ssh completions which were broken by
277fca9c6a
.
2019-11-05 11:47:05 +01:00
Johannes Altmanninger
36693e4391
Complete empty subcomands consistently
...
If the command is empty, try to complete starting from the empty command
instead of the whole commandline.
2019-11-05 09:05:46 +01:00
Johannes Altmanninger
afb56a007d
Fix completions for env
...
Fixes #5306
2019-11-05 08:44:04 +01:00
Johannes Altmanninger
6fb7f9b6b8
Fix completion for builtins (with subcommands)
...
Presently the completion engine ignores builtins that are part of the
fish syntax. This can be a problem when completing a string that was
based on the output of `commandline -p`. This changes completions to
treat these builtins like any other command.
This also disables generic (filename) completion inside comments and
after strings that do not tokenize.
Additionally, comments are stripped off the output of `commandline -p`.
Fixes #5415
Fixes #2705
2019-11-04 16:44:51 +01:00
Johannes Altmanninger
dfc1d1931d
Add /usr/local/sbin to PATH for sudo completions
...
[ci skip]
2019-11-01 17:20:09 +01:00
Johannes Altmanninger
e0d4a1d78b
Fix sudo/doas completions not using /sbin
...
Fixes #6259
[ci skip]
2019-11-01 21:24:03 +08:00
Roman Beranek
c2dbe36e4a
scp completions: remove inappropriate opt '-q' from string match -eq
cmd
2019-10-31 18:32:28 +01:00
Johannes Altmanninger
20314c5b3d
completions/git: improve diff completions
...
Offer commit ranges only if left of a --.
Suggest added files in git diff --cached (or the --staged synonym)
Fixes #6262
2019-10-30 12:09:38 +01:00
Johannes Altmanninger
f4b4ff63b9
completions/git: honor global git arguments like --git-dir
...
Fixes #6219
2019-10-29 19:15:35 +01:00
Johannes Altmanninger
4095247deb
completions/git: some improvements
2019-10-29 19:13:31 +01:00
Amy Grace
ba56a2ec0e
Add completions for irb
( #6260 )
2019-10-29 19:11:25 +01:00
LawAbidingCactus
21a6a192ae
refactor gpg.fish completions
...
refactor gpg completions into functions
comment changes; improve gpg version detection
[ci skip]
2019-10-29 19:07:35 +01:00
Akatsuki
446735af07
completions/btrfs.fish: Format options list
...
Format the list of completion per command
Easier to read and edit at next time if need
2019-10-27 16:47:48 -07:00
Akatsuki
b43f80e2d9
completions/btrfs.fish: Add detailed options completions
...
Add completion for options in option groups
Remove myself author information
2019-10-27 16:47:48 -07:00
Clément Martinez
756e9826bc
Improve gpg
completions
2019-10-27 13:22:24 -07:00
Johannes Altmanninger
56b4763c67
Fix file completion for builtins "set" and "test -f" and others
2019-10-27 08:07:54 +01:00
Johannes Altmanninger
40c553db29
Fix completion scripts for builtins "exec" and "not"
2019-10-27 06:58:20 +01:00
Johannes Altmanninger
4a1edbd3cb
make completions for ninja aware of the build directory passed by -C
2019-10-27 06:58:20 +01:00
Jan Tojnar
9d1ccf8110
Fix composer completions on Python 3
...
Some distros (Arch) use python command for Python 3, so we need to update the scripts to work with it. We cannot just switch to python3 command because MacOS does not ship it.
2019-10-26 18:19:44 +02:00
Akatsuki
0ef6a136e8
completions: add btrfs ( #6243 )
...
* completions: add btrfs
Completion definitions for the btrfs-progs.
* completes/btrfs.fish: using `not set -q argv[1]` instead of `test -z $argv`
* CHANGELOG: add btrfs completions
2019-10-26 18:15:42 +02:00
Shun Sakai
3e28ab454f
Rename long option of bzip2
...
From `--bzip` to `--bzip2`
2019-10-26 18:13:54 +02:00
Shun Sakai
7ce38a1ee6
Add supported compression algo to completions for tar
...
- lzip (--lzip)
- LZMA (--lzma)
- lzop (--lzop)
- Zstandard (--zstd)
2019-10-26 18:13:54 +02:00
Z. Grace Moreau
4be30a872a
add completion for nethack
2019-10-26 18:13:15 +02:00
Akatsuki
f8ead077bf
completions/pacman.fish: add ignore
& ignoregroups
completions
...
`ignore` -> `$listall`
`ignoregroups` -> `$listgroups`
2019-10-26 18:11:29 +02:00
Akatsuki
0ec954a8c2
completions/pacman.fish: -F add package completions
...
`-F` add package completions, let `-Fl` work fine
Another changes:
Add missing quotes, let format neat
2019-10-26 18:11:29 +02:00
Akatsuki
080f367635
completions/pacman.fish: refine completions
...
Refine completions with pacman 5.2.0 man pages
2019-10-26 18:11:29 +02:00
Akatsuki
2b9dd4595c
completes/pacman.fish: replace --force
to --overwrite
2019-10-26 18:11:29 +02:00
Akatsuki
4cdc5e4020
completions/pacman.fish: Update for pacman 5.2
...
pacman 5.2 has remove File Options `-s --search` and `-o --owns`.
Ref: [pacman: rework the UI of -F](https://git.archlinux.org/pacman.git/commit/?id=ff1ae94c102cab487444bcdb0c76ee489c11dfe8 )
2019-10-26 18:11:29 +02:00
239
6a9ab0599f
completion: zpaq archiver ( #6245 )
2019-10-25 15:22:09 +02:00
Ryan Adolf
947e46b9cc
Add completions for iw
2019-10-24 11:03:54 +02:00
Z. Grace Moreau
b1fb99b578
add completions for cygpath
and cygstart
2019-10-23 19:41:53 +02:00
Collin Styles
ffb551fc06
Add --cut-at-cursor option to commandline -op
calls in git completions
...
We used to just check for the presence of "--" on the command line to
make judgements about which completions to suggest. Now, even if "--" is
present, we can still make different suggestions by taking the cursor's
position into account.
2019-10-19 19:28:20 +02:00
Collin Styles
12a5dd219f
Add completions for git-commit
2019-10-19 19:28:17 +02:00
Collin Styles
cc84dc7510
Add completions for git rev-parse
2019-10-19 19:26:12 +02:00
Collin Styles
486bc71cf8
Add completions for git reflog
2019-10-19 19:26:12 +02:00
Collin Styles
9384801e3c
Add completions for push
subcommand to git stash
2019-10-19 19:26:12 +02:00
Collin Styles
63e840995e
git-reset: Don't suggest branch completions if -- is present
...
If "--" is present in the command line, it's usually safe to assume that
the user is going to want to complete a file tracked by git so let's
only suggest branches if "--" isn't present.
2019-10-19 19:26:12 +02:00
Collin Styles
3de3a34e79
Add completion for git log --date=human
2019-10-19 19:26:12 +02:00
Collin Styles
bd71308788
Add git completions for range-diff
2019-10-19 19:26:12 +02:00
Johannes Altmanninger
00fc1306d0
completions/git: allow arbitrary refs in git push remote src:dest
...
When there is already a "src:", we assume that it is a valid ref and
just complete "dst". This allows completion of dest if src is e.g. a
commit SHA (completing all possible refs would probably impact
performance).
See issue #3035 .
2019-10-19 16:10:25 +02:00
艾雨寒 ArielAxionL
9ea8aa072f
add a completion for zstd support
...
An update has been released by Arch Linux official to support the packages for zstd compression.
> https://www.archlinux.org/news/required-update-to-recent-libarchive/
2019-10-19 12:55:30 +02:00
Johannes Altmanninger
ed8b0c8c0c
Add completions for the kakoune editor
...
[ci skip]
2019-10-17 21:50:27 +02:00
Fabian Homborg
9c4edb68ff
Add g++ completions that wrap gcc
...
Should be alright for a first pass.
Fixes #6217 .
[ci skip]
2019-10-17 17:45:47 +02:00
Mahmoud Al-Qudsi
b29fd88cad
[rustup] Add completions for rustup show
and rustup profile
...
[ci skip]
2019-10-16 19:05:53 -05:00
Mahmoud Al-Qudsi
9a99836c74
[rustup] Fix string replace
coalesce of multiple $argv
...
[ci skip]
2019-10-16 18:57:03 -05:00
Johannes Altmanninger
203a2e7af4
completions/grep: specify some required parameters
2019-10-16 11:23:53 +02:00
Z. Grace Moreau
ff2baf2591
add completions for Visual Studio Code CLI tool
2019-10-15 13:05:08 -07:00
Andy
39671e6b19
Fix ranger options: choosefile(s), choosedir
...
Source <ee344c896e/ranger/core/main.py (L293-L303)
>
2019-10-13 12:14:08 -07:00
Sergei Morozov
478f54c035
Added PHPUnit shell completion
2019-10-13 12:13:34 -07:00
Clément Martinez
1f35b146de
Add grub-mkrescue completions
2019-10-10 18:16:32 +02:00
aca
8c5aca599f
completions/fzf: completion for fzf
2019-10-10 18:16:00 +02:00
matoruru
422441e903
Add completions/sfdx.fish ( #6149 )
...
* Add completions/sfdx.fish
* completions/sfdx.fish: add completion for options
* completions/sfdx.fish: add a completion for --manifest(-x) option which need package.json
* completions/sfdx.fish: replace redundant function with already existing one
2019-10-07 17:32:56 +02:00
ridiculousfish
e2952f230b
Revert #6139
...
Revert "gut gpg.fish/gpg1.fish/gpg2.fish; migrate functionality to __fish_complete_gpg.fish"
This reverts commit d558218d03
.
Revert "break version-specific completions out into independent function;"
This reverts commit 9160e77b01
.
Revert "split gpg2- and gpg1-specific completions to conditional block"
This reverts commit a069b95f63
.
2019-10-06 12:35:07 -07:00
LawAbidingCactus
d558218d03
gut gpg.fish/gpg1.fish/gpg2.fish; migrate functionality to __fish_complete_gpg.fish
2019-10-06 12:31:42 -07:00
LawAbidingCactus
9160e77b01
break version-specific completions out into independent function;
...
document changes
2019-10-06 12:31:42 -07:00
LawAbidingCactus
a069b95f63
split gpg2- and gpg1-specific completions to conditional block
...
This allows gpg.fish to account for both gpg versions.
2019-10-06 12:31:31 -07:00
madblobfish
87dee7ad1c
improved ansible-vault completions
2019-10-06 15:13:06 +02:00
Sergei Morozov
1602902e12
Improved shell completion for Composer
...
1. Added missing commands and arguments.
2. Removed alternative spelling of some commands (e.g. clear-cache|clearcache) since a choice of spelling is not really useful for completion.
3. Fixed a typo: np-ansi → no-ansi.
4. Removed redundant backslash in front of $COMPOSER_HOME.
The updated completion was initially generated using the bamarni/symfony-console-autocomplete package and then incorporated into the existing code.
2019-10-05 12:54:20 -07:00
Sergei Morozov
2fa3c6298b
Unmarked the colo(u)r options of the git command as requiring an argument
...
According to man, the argument is optional:
$ man git
--color[=WHEN], --colour[=WHEN]
2019-10-02 16:21:41 +02:00
Collin Styles
dae4faa512
Fix completions for abbr --erase
2019-09-28 00:19:39 +02:00
aca
4747bdd7e7
completions/go: add/improve completion
...
- completion for go mod/generate
- better description for go help
2019-09-26 21:59:41 +02:00
Johannes Altmanninger
8063d6d0b8
complete builtin: suggest commands for options --comand and --wraps
2019-09-25 17:00:48 +08:00
Johannes Altmanninger
2dbbaa6a97
Honor required parameters in completions for builtins
...
This adds the -r (or -x) flag to completions of builtins' options that have a required_argument.
2019-09-25 17:00:48 +08:00
Jakob Landbo
ed0a7f5cdb
completions/git: Added autostash option to rebase
2019-09-24 21:59:26 +08:00
Aaron Gyes
eef62b8848
Correct wc completions for macOS, BSDs.
2019-09-22 14:02:22 -07:00
Johannes Altmanninger
d99c19cc03
Fix completions for chown ( #6132 )
...
Reproducer: type `chown --f<TAB>`
2019-09-22 10:01:41 -07:00
LawAbidingCactus
d4a5ef1703
rewrite __fish_complete_gpg2_key_id to produce better output
2019-09-21 22:04:17 +08:00
LawAbidingCactus
b8ba04dcf4
fix compatibility with BSD sed
2019-09-21 22:04:17 +08:00
LawAbidingCactus
2f67cb341c
add remaining gpg2-specific completions; formatting
2019-09-21 22:04:17 +08:00
LawAbidingCactus
1a59731ea7
Create updated completions for gpg2
2019-09-21 22:04:17 +08:00
LawAbidingCactus
d2e9ee290c
rewrite __fish_complete_gpg_key_id to produce better output
2019-09-21 21:58:59 +08:00
Johannes Altmanninger
eea3bd5fc3
completions/git: improve completion for git restore and git switch
...
- suggest relevant files for git restore
- add `-r` to require an argument for some options
2019-09-18 14:08:43 -05:00
Johannes Altmanninger
ec834820f5
completions/git: handle 2 RM and 2 RD files
...
This commit makes git completions aware of files that are both staged as renamed, and have unstaged
modifications/are deleted.
__fish_git_files now potentially prints these files twice:
$ __fish_git_files renamed modified
foo Renamed file
foo Modified file
Fixes #6031
2019-09-18 14:03:11 -05:00
Mahmoud Al-Qudsi
58cd1a5140
Eschew hard-coding rustup components in favor of a hack
...
[ci skip]
2019-09-10 03:23:59 -05:00
Mahmoud Al-Qudsi
32546d6491
Reorder rustup
completions to avoid undefined function error
...
[ci skip]
2019-09-10 03:23:55 -05:00
Mahmoud Al-Qudsi
85f93ff002
Add dynamic completions for rustup
...
[ci skip]
2019-09-09 20:55:08 -05:00
LawAbidingCactus
c20a9ea477
fix compatibility with BSD sed
...
Closes #6087 .
2019-09-03 15:35:04 +08:00
Nathan Galt
8b84f4f117
Add completions/tokei.fish
...
Closes #6085 .
2019-09-02 22:37:01 +08:00
Nathan Galt
76195dfe1d
Update bat completions from 0.11.0 to 0.12.0
...
Closes #6084 .
2019-09-02 22:35:08 +08:00
Nathan Galt
635dafeb9c
Update bat completion to support cache command
...
Closes #6076 .
2019-09-02 22:32:47 +08:00
Shun Sakai
5221d723ca
Added patool completions
2019-09-01 17:28:46 -07:00
Shun Sakai
42c6b9c176
Implemented the completions of all options of git restore
and git switch
( #6054 )
...
* Implemented the completions of all options of `git restore` and `git switch`
* Apply requested changes
2019-08-30 11:31:35 +02:00
Sergei Morozov
753f49dba9
Added git rebase --rebase-merges[=(rebase-cousins|no-rebase-cousins)] to completion
...
See https://git-scm.com/docs/git-rebase/2.18.0#git-rebase--r
2019-08-27 22:04:55 +02:00
LawAbidingCactus
35b64b0470
add completions for qubes-gpg-client
2019-08-27 15:20:07 +08:00
adiabatic
dd34bf0ba6
Create bat.fish
2019-08-23 21:49:55 -07:00
Shun Sakai
ecacf34693
Added git restore
and git switch
completions
...
These commands were added in version 2.23.
2019-08-22 20:25:02 +08:00
adiabatic
85f57d1d33
Create hledger.fish
2019-08-16 21:25:41 -07:00
adiabatic
ab6fd6554f
Add completions/cwebp.fish
2019-08-08 18:51:13 +02:00
Daniel Bretoi
575fdb5492
add missing flag
2019-08-06 20:19:12 +02:00
adiabatic
9b89b820da
Add completions/src.fish
2019-08-05 12:18:29 +02:00
Fabian Homborg
2c3bc1e857
Fix grep wrapper completions
...
[ci skip]
2019-08-04 15:34:33 +02:00
Fabian Homborg
3296bb6c3b
Fix apt-show-versions command name
...
[ci skip]
2019-08-04 15:34:33 +02:00
Fabian Homborg
3fd567749c
Fix latex tool completions
...
Again the wrapping was used the wrong way around.
(also why on earth are there like fifty of these darn things?)
[ci skip]
2019-08-04 15:34:32 +02:00
Fabian Homborg
ab1b2b84f6
Move netcat completions to an autoloadable name
...
The file was named "netcat", but it completes a tool named "nc", so it
wouldn't be loaded.
[ci skip]
2019-08-04 15:34:32 +02:00
Fabian Homborg
8ea034837d
Remove pacsrv completions
...
These have been broken for 4 years (completed `pacsrc` instead), and I
can't find the tool anywhere.
[ci skip]
2019-08-04 15:34:32 +02:00
Fabian Homborg
0fc4b415ac
Fix rgrep completions
...
This used the arguments the wrong way around.
2019-08-04 15:34:32 +02:00
adiabatic
75a6ad602f
completions/canto.fish: s/cnato/canto/
2019-08-04 15:21:41 +02:00
mk2
0083555925
Move __fish_complete_abook_formats to abook
2019-08-04 15:20:32 +02:00
Shun Sakai
67cf50eda4
Added completions of languages developed by Microsoft
...
* csc, csi, vbc - .NET Compiler Platform (Roslyn)
* fsharpc, fsharpi - F# compiler and REPL environment
* tsc - TypeScript compiler
2019-08-03 14:47:59 -07:00
Frederik Gladhorn
ffcf5a5e03
completions/git: Add git cherry
...
See for example: https://git-scm.com/docs/git-cherry
git cherry is quite helpful when trying to findout if merges between
branches are complete, when there were cherry-picks in addition to
merges.
2019-07-24 16:02:30 +02:00
Fabian Homborg
9e6ae1cbef
completions/git: Fix error with git config
...
This passed "--get" when it should have been "get".
Fixes #6000 .
[ci skip]
2019-07-20 14:25:45 +02:00
adiabatic
6ca56fe0cb
tmutil.fish: Add completions for local-snapshots subcommands ( #5995 )
...
* tmutil.fish: Add local-snapshot subcommands
* tmutil.fish: Add completion for thinlocalsnapshots
* tmutil.fish: Run fish_indent
* tmutil.fish: Remove duplicate destinationinfo
2019-07-17 08:40:15 +02:00
Mahmoud Al-Qudsi
7ee675afcf
Update aws
and aws s3
completions
...
Improve handling of switches interjected between the commands, and
support for completing buckets automatically for secondary+ parameters
to `aws s3`.
2019-07-11 21:22:25 -05:00
Peter Lithammer
9d47c46a7a
Suppress shell function lookup for ssh during scp completion
...
This prevents functions or aliases to run during tab completion of
remote files for the `scp` command.
2019-07-08 22:12:44 +02:00
Shun Sakai
e7b42615c8
Add FFmpeg completions ( #5922 )
...
* Add FFmpeg completions
* Fix to use builtin command
2019-06-23 16:40:26 +02:00
Lily Ballard
fe2ec1e4f8
Merge pull request #5943 from lilyball/string_collect
...
Add new `string` subcommand `string collect`
2019-06-22 00:30:20 -07:00
infix
ae2c40ebdb
Updated DNF auto completion
2019-06-21 09:24:37 -07:00
Lily Ballard
181e44d331
Invert the flag for string collect
...
Instead of requiring a flag to enable newline trimming, invert it so the
flag (now `--no-trim-newlines`) disables newline trimming. This way our
default behavior matches that of sh's `"$(cmd)"`.
Also change newline trimming to trim all newlines instead of just one,
again to match sh's behavior.
2019-06-16 16:40:14 -07:00
Lily Ballard
b41e5cbbb7
Add string collect
...
The `string collect` subcommand behaves quite similarly in practice to
`string split0 -m 0` in that it doesn't split its output, but it also
takes an optional `--trim-newline` flag to trim a single trailing
newline off of the output.
See issue #159 .
2019-06-16 15:51:57 -07:00
Fabian Homborg
b4792bde19
Remove brew completions
...
Leave a note in place
Fixes #5892 .
[ci skip]
2019-06-12 20:42:20 +02:00
Shun Sakai
c566756f3b
Fix long option name of zypper
2019-06-03 16:36:03 +02:00
Fabian Homborg
f9f30e6a8e
completions/rsync: Fix "=THING"
...
This included stuff like `--max-size=SIZE`. Weird that nobody noticed?
[ci skip]
2019-05-30 21:41:58 +02:00
Fabian Homborg
cd2b1b99e8
completions/rpm: Complete files for -qf
...
Fixes #5127 .
[ci skip]
2019-05-30 19:27:41 +02:00
Fabian Homborg
df6f3fdcf4
completions/pacman: Fix pacman -Qo
...
(also yaourt)
[ci skip]
2019-05-30 19:20:06 +02:00
Fabian Homborg
430b2a48a9
completions/sudo: Fix sudo -e
...
This uses the new "--force-files" flag.
Fixes #5646 .
[ci skip]
2019-05-30 19:14:33 +02:00
Fabian Homborg
6d66c47f70
completions/fish: Add FLOG additions
...
[ci skip]
2019-05-28 22:43:37 +02:00
Fabian Homborg
d46dacdfee
Stop abusing __fish_complete_suffix to complete dirs
...
[ci skip]
2019-05-27 19:37:28 +02:00
Fabian Homborg
261198aa3e
completions/set: Complete some config vars even if they aren't set
...
Fixes #5884 .
[ci skip]
2019-05-21 17:00:32 +02:00
ridiculousfish
3d25ce1fd4
Merge remote-tracking branch 'takoyaki/ant_completion' into master
2019-05-11 23:22:45 -07:00
Fabian Homborg
c27c8801af
completions/git: Put local branches before unique remotes
...
With a few remotes, unique remote branches can get quite large, and
you probably mostly work on your own.
[ci skip]
2019-05-11 12:43:05 +02:00
Fabian Homborg
50ed5126f1
completions/git: Reorder some completions with --keep-order
...
They are displayed in LIFO-order, so it makes sense to e.g. put the
recent commits close to last (only before files) for `checkout`.
Fixes #5868 .
2019-05-10 15:36:41 +02:00
Fabian Homborg
d83636f70e
completions/git: Handle AD files
...
Added files that were deleted after. These count as both added and
deleted.
Fixes #5861 .
[ci skip]
2019-05-05 13:49:11 +02:00
Fabian Homborg
ce245704d7
Reformat completion scripts
...
These were excluded from style.fish
2019-05-05 12:53:09 +02:00
Deniz Kızılırmak
c7cbf6dad0
Make 'git checkout' complete recent commits
2019-05-05 11:52:18 +02:00
Fabian Homborg
0784b76570
completions/env: Inhibit files
...
(Also remove annoying "commmand" description)
[ci skip]
2019-05-03 16:35:25 +02:00
Fabian Homborg
411b4aea9d
share/completions/env: Fix
...
This completed the commandline with options removed, which looked like
env VAR=VAL command option
Which didn't really actually work.
Fixes #5856 .
[ci skip]
2019-05-02 16:29:11 +02:00
Wilke Schwiedop
95346770d3
Update emaint.fish
2019-04-29 18:33:37 +02:00
Wilke Schwiedop
78e6631e53
formatting
2019-04-29 18:33:37 +02:00
Wilke Schwiedop
05f79335cc
completions/emerge: add verbose-conflicts
2019-04-29 18:33:37 +02:00
Wilke Schwiedop
1b3643270d
completions/epkginfo: add completion
2019-04-29 18:33:37 +02:00
Wilke Schwiedop
d0c3a4f33f
completions/equery: shorten descriptions
2019-04-29 18:33:37 +02:00
Wilke Schwiedop
34f50883a4
completions/ebuild: add pretend command
2019-04-29 18:33:37 +02:00
Wilke Schwiedop
52450dc864
completions/emaint: fix logs command
2019-04-29 18:33:37 +02:00
puenka
30f040ed36
Add speedtest-cli/speedtest completion ( #5840 )
...
* Add speedtest-cli/speedtest completion
Added a completion file for speedtest-cli utility (https://github.com/sivel/speedtest-cli ) as shipped from various package repositories.
* added no-files parameter
* Remove inheritance to speedtest
* Create speedtest.fish
2019-04-27 09:34:28 +02:00
Mahmoud Al-Qudsi
ae11bf4dcb
Add completions for git show $rev:$path
...
This command can be used to "`cat`" the contents of `$path` as of `$rev`.
These are "silent" completions, e.g. while this adds a completion for
`git show master:foo`, the completions for `git show <TAB>` are not
affected; these "advanced" completions kick in only after at least
`git show master:<TAB>` to prevent completion pollution or slowing down
tab completions in the typical case (as this would cause each valid and
possibly unique $rev completion result to complete to `n*$rev`
completions for *n* files.
[ci skip]
2019-04-23 21:54:09 -05:00
Mahmoud Al-Qudsi
4bdab33a00
Add dynamic cipher completion to ssh -c ...
...
[ci skip]
2019-04-22 15:17:38 -05:00
Mahmoud Al-Qudsi
32ad1a6e62
Add basic completions for FreeBSD's camcontrol
2019-04-19 20:57:27 -05:00
Wilke Schwiedop
76306c4582
completions/usermod: various fixes
...
* -a does not take arguments
* -e more helpful description
* -g add arguments
* -G fix arguments
* add -r to various options
2019-04-20 08:43:43 +08:00
Mahmoud Al-Qudsi
d66ec08819
Add partial aws
and ~full aws s3
completions
...
[ci skip]
2019-04-17 22:37:19 -05:00
Aaron Gyes
65bc94c493
Revert "set completions: complete __ variables"
...
This reverts commit f4e40f2f4b
.
2019-04-15 12:57:59 -07:00
Aaron Gyes
89b6b05f88
Fix builtin
completions
...
Command substitution needs parenthesis
2019-04-15 12:24:54 -07:00
Aaron Gyes
f4e40f2f4b
set completions: complete __ variables
...
Now that __ stuff is sorted after a-z, we should not completely
omit them from completions.
2019-04-14 20:35:02 -07:00
Mahmoud Al-Qudsi
5989a92dae
Add completions for rg
(ripgrep)
...
[ci skip]
2019-04-12 15:20:45 -05:00
Fabian Homborg
898ed12a6c
Merge pull request #5795 from cstyles/git-completions
...
Add git completions
2019-04-12 09:42:52 +02:00
Collin Styles
502efb0f3e
Improve descriptions
2019-04-10 19:11:52 -07:00
Aaron Gyes
f086064d72
add --print-rusage-self to completions
2019-04-10 16:41:26 -07:00
Artur Juraszek
cece4d81c1
completions/pinky: Prompt with users list
2019-04-10 12:46:36 +02:00
Collin Styles
3cfa5d422e
Remove string match; use string replace's --filter option
2019-04-09 20:59:48 -07:00
Mahmoud Al-Qudsi
49935f13df
Add completions for git bisect
...
[ci skip]
2019-04-09 20:36:42 -05:00
Collin Styles
724dd06c62
Add completions for git-help
2019-04-06 14:04:28 -07:00
Fabian Homborg
78931d78bd
completions/git: Handle diff --cached
...
Fixes #5785 .
[ci skip]
2019-04-06 21:45:17 +02:00
Collin Styles
2226a87b59
Add completions for git-worktree
2019-04-06 12:24:24 -07:00
Collin Styles
82596465b2
Add completions for git-describe
2019-04-06 12:24:24 -07:00
Collin Styles
0bd8c61e7e
Add completions for git-ls-files
2019-04-06 12:24:24 -07:00
Collin Styles
6e3c87f4c3
Add completions for git-merge-base
2019-04-06 12:24:24 -07:00
Aaron Gyes
469a8880aa
correct 'bind' completions
...
--new-mode isn't even an option `bind` takes, and it
-m for -M.
2019-03-31 21:38:23 -07:00
Fabian Homborg
1937e409f7
completions/find: Fix typo
2019-03-29 17:46:01 -05:00
Mahmoud Al-Qudsi
93b02dcec4
Don't use camcontrol in FreeBSD zpool completions
...
It requires root/su privileges to list devices, and we have a great
alternative that already produces the desired results.
2019-03-29 17:43:03 -05:00
Fabian Homborg
fc7d11d7b8
Update zpool completions to use string
instead of grep
2019-03-29 17:37:26 -05:00
Fabian Homborg
77e71cfcb1
completions/git: Handle AM files
...
Fixes #5763 .
[ci skip]
2019-03-24 17:12:36 +01:00
Fabian Homborg
22d9382646
completions/service: Remove useless helper function
...
[ci skip]
2019-03-24 16:59:49 +01:00