Mahmoud Al-Qudsi
ec2659c500
fixup! add makensis ( #5242 )
2018-10-16 13:50:42 -05:00
Mahmoud Al-Qudsi
c140b3c724
Add completions for git config
...
This includes dynamic completion of existing keys.
2018-10-14 18:17:23 -05:00
Mahmoud Al-Qudsi
9c6bd8b1b4
Add completions for kitty
terminal
...
This is a wrapper that calls kitty to dynamically provide completions,
as generated by kitty itself, via `kitty + complete setup fish`.
ref: https://sw.kovidgoyal.net/kitty/#fish
2018-10-14 16:32:49 -05:00
Xuanwo
5e77689c5a
completions: Add systemctl set-property support
2018-10-09 16:51:49 +02:00
Fabian Homborg
728dd25665
[completions/git] Add rebase --exec
...
Fixes #5236 .
2018-10-08 15:43:45 +02:00
Fabian Homborg
0aedd47af2
[completions/env] Argparsify
...
This fixes subcommand completions by using argparse to get the
subcommand, just like we did for `sudo`.
Reported by @adregan on gitter
2018-10-02 19:31:30 +02:00
evuez
f3cee81338
Add --color completion for diff
2018-10-02 18:51:14 +02:00
Mahmoud Al-Qudsi
264d8270a7
Emit an error message on literal zero indices
...
Mostly resolves #4862 , though there remains the lingering question of
whether or not to emit a warning to /dev/tty or stderr when a
non-literal-zero index evaluates to zero.
2018-10-01 20:58:26 -05:00
Mahmoud Al-Qudsi
5b696b5fb5
Update rsync completions
...
Closes #4863 .
2018-10-01 20:37:53 -05:00
Fabian Homborg
3b3361685a
[completions/git] Skip bare repositories
...
Otherwise this would print an unsightly error.
2018-09-27 13:18:26 +02:00
Digital
794b448c00
Add completions for openbsd's doas ( #5196 )
...
* Add completions for openbsd's doas
* Update CHANGELOG.md
* Implement requested changes
2018-09-25 12:31:46 +02:00
Mahmoud Al-Qudsi
deb6d477d4
Escape parameters in rustc
completions
...
Closes #5057 .
2018-09-20 18:59:57 -05:00
Sam Yu
17643ef12c
Fix zypper completion
...
* complete installed packages only for `zypper rm`
* remove incorrect local file completion
2018-09-16 21:15:32 -07:00
Fabian Homborg
d44c21b580
Document/complete feature flags more
2018-09-16 10:39:15 +02:00
maxried
45a2ff4191
Update status.fish
...
Even though breakpoing sounds funnier, the completion should correctly be breakpoint.
2018-09-14 07:48:22 +08:00
Muttley
0f141b6ccf
pacaur: recognize *.pkg.tar as valid package extension
2018-09-11 13:26:27 +02:00
Tang King Fai
0e6cc13d0d
Update cargo completion ( #5172 )
...
* Update cargo completion
* Show sub-command's description for completion
2018-09-07 15:29:48 +02:00
Mo Zhou
add24f96a9
completions: ninja: "ninja -f" should be followed by a *.ninja file.
2018-09-07 08:00:37 +00:00
Curtis Jiang
06e5194092
add OpenWrt and opkg support
...
Signed-off-by: Curtis Jiang <jqqqqqqqqqq@qq.com>
2018-09-04 01:47:30 -07:00
Vicente Reyes
3e9453840f
complete stack built binaries
2018-08-26 17:00:04 -07:00
Fabian Homborg
7606bfc2e5
Merge pull request #5145 from antonv6/hg-completion
...
[Ready] Update Mercurial completion
2018-08-17 16:34:35 +02:00
Anton Shestakov
1e58e00734
hg completion: complete directories for --cwd
2018-08-16 19:26:29 +08:00
Anton Shestakov
b3a00c5389
hg completion: add :forcedump and :tagmerge merge tools
2018-08-16 19:25:16 +08:00
Anton Shestakov
8aef4330f0
hg completion: complete hg convert, email
2018-08-15 14:13:16 +08:00
Anton Shestakov
af4da66515
hg completion: do a pass over mq
2018-08-15 12:21:16 +08:00
Anton Shestakov
fb6b4b9ae5
hg completion: revert can restore deleted files too
2018-08-15 12:20:12 +08:00
Anton Shestakov
cdf39ed660
hg completion: complete hg files, rebase, shelve, unshelve
2018-08-15 12:15:07 +08:00
Anton Shestakov
6223833130
hg completion: update command descriptions, add more
2018-08-15 12:14:11 +08:00
Anton Shestakov
a175aaa18a
hg completion: new flags
2018-08-14 23:51:06 +08:00
Anton Shestakov
afff92c4b1
hg completion: update descriptions
2018-08-14 23:46:51 +08:00
Anton Shestakov
0ffbb657df
hg completion: remove --style (deprecated for 4 years)
...
It still works, but is just an alias for -T/--template.
2018-08-14 23:42:16 +08:00
George Christou
b39651f1ad
completions: [git] Silence various errors outside repo
2018-08-14 17:12:43 +02:00
Anton Shestakov
60e05d82c8
hg completion: fix -r and -x flags used for options
...
"Fixing" boils down to:
- removing -x from options that don't take arguments
- replacing -x with -r for options that want (any) file
2018-08-14 13:05:21 +08:00
Anton Shestakov
f95431362c
hg completion: add more --subrepos
2018-08-14 12:47:18 +08:00
Anton Shestakov
27c06c997c
hg completion: suggest files from hg st -amr
for hg diff
...
Added and removed files are already suggested for hg commit, makes sense
to do the same for hg diff.
2018-08-13 14:58:03 +08:00
Anton Shestakov
a9c30b05af
hg completion: complete abbreviations of hg archive (plus --type)
2018-08-13 14:53:17 +08:00
Anton Shestakov
99860c8294
hg completion: also complete hg blame (alias to annotate)
2018-08-13 14:52:38 +08:00
Anton Shestakov
c8c7fec48a
hg completion: complete --color=debug too
2018-08-13 14:52:10 +08:00
Alexander Dalshov
00dcc2a12d
add pstack completion
2018-08-06 23:20:55 -07:00
Clément Martinez
a536d2bc1f
Add xclip completions
2018-08-04 12:00:18 -07:00
Birger J. Nordølum
c300e09e8c
brew.fish: Fix brew casks search
2018-08-03 22:46:54 +08:00
Mahmoud Al-Qudsi
09541e9524
Add completions for hjson
2018-07-30 14:38:00 -05:00
Mahmoud Al-Qudsi
392cdd4338
Show a meaningful description of packages in __fish_print_packages
...
Use `apt-cache show` instead of `apt-cache packagenames` to efficiently
print package names and a brief description instead of the placeholder
(localized) "Package" text that was previously printed. This applies to
both available and installed packages (for inistall and remove operations,
respectively).
TODO: update `__fish_print_packages` for non-debian platforms to do the
same.
2018-07-28 17:44:17 -05:00
Clément Martinez
32ca6118a6
Add virsh completions
2018-07-28 14:44:11 -07:00
raichoo
d4f5689eaa
modernize darcs
completion
...
`darcs` has changed a lot in recent years. The completion is no longer
up to date.
2018-07-28 13:10:13 -07:00
raichoo
eb3541be86
add more options to set
completion
2018-07-24 20:29:36 +08:00
Twinkle
8440d9ba86
Improve completions for serve
2018-07-24 00:22:13 -07:00
raichoo
b932522138
add more options to psub
completion
2018-07-22 15:23:16 -07:00
James Lee
e26bdff487
Improve eopkg completions by using the --installed
flag ( #5089 )
...
Utilized the `--install` flag added in commit #8c09d6e.
Limit `eopkg remove/autoremove/check ...` completions to installed packages.
Limit `eopkg install/upgrade/info ...` completions to available packages.
2018-07-09 23:21:44 -07:00
David Adam
7de9563aad
docker completions: add dummy file noting they are upstream
...
Suggested in #5090 .
2018-07-08 21:38:08 +08:00
Simon Legner
dfbffd13df
[completions/git] Fix typo
2018-07-05 22:28:52 +02:00
Fabian Homborg
7ead8f459e
[completions/git] Offer containing directories
...
Fixes #5083 .
2018-07-04 15:11:32 +02:00
Sam Yu
495c09fe6b
Add subcommand options completion for zypper
2018-07-03 13:45:39 -07:00
Mahmoud Al-Qudsi
8c09d6e063
Limit apt remove ...
completions to installed packages only
...
Added a new flag `--installed` via `argparse` to `__fish_print_packages`
which indicates that only installed packages should be listed.
TODO: Other non-debian/apt platforms should take advantage of this flag/
behavior as well.
2018-07-02 11:43:18 -05:00
Fabian Homborg
817adc123d
[completions/git] Don't use --ignored=something
...
It was only introduced in 2.16, which was released in January 2018.
Instead, we just use a bare "--ignored", which is equivalent to "--ignored=traditional".
The difference to "--ignored=matching" mode shouldn't matter to us here.
Fixes #5074 .
2018-06-27 22:02:49 +02:00
Mahmoud Al-Qudsi
144af5116a
Allow functions -e
completions to complete hidden __fish functions
...
...but only if the user has started their function name argument with an
underscore.
2018-06-27 14:42:42 -05:00
Mahmoud Al-Qudsi
092307d4c0
Include whatis
description for kernel modules in kldload
completions
...
Using `__fish_whatis` based on a heuristic to make sure completions are
timely available.
2018-06-27 14:38:51 -05:00
Mahmoud Al-Qudsi
121c70cf39
Add completions for FreeBSD's kldunload
...
Lists currently loaded kernel modules as valid completions, and obtains
a description via the newly minted `__fish_whatis` if available.
2018-06-27 14:14:40 -05:00
Sam Yu
9470f8a05b
Fix cut completion ( #5069 )
2018-06-23 15:30:31 -07:00
zhustec
f025607c11
Competion: add missing list-timers for systemctl.fish
2018-06-21 20:10:14 +02:00
Mahmoud Al-Qudsi
fa00183e5f
Fix and optimize kldload completions
...
I'm not sure what was wrong with the old syntax, but I needed to switch
the outer quotes to ' and the inner quotes to " in order for the
completions to work when they weren't explicitly sourced.
Additionally, realized that the overload for __fish_complete_suffix can
be used to get the filtered list of kernel modules from /boot/kernel in
the initial run.
2018-06-19 00:10:40 -05:00
Mahmoud Al-Qudsi
4d909b1c19
Add partial completions for curl, supporting @file syntax
...
Allows the most painful of curl's arguments to be completed by fish by
restoring file-based completions for paths prefixed with `@` (which are
typically used after parameters like --data).
2018-06-18 23:56:22 -05:00
Mahmoud Al-Qudsi
5061f1666b
Add completions for FreeBSD's kldload
2018-06-18 21:01:05 -05:00
Mahmoud Al-Qudsi
072974ec5c
Fix service completions on non-FreeBSD platforms
...
I never realized script-local variables set after the function
definition do not keep their value when the function is executed later
in the file.
2018-06-17 22:03:04 -05:00
Mahmoud Al-Qudsi
31745d29ab
Refactor service
completions to drop eval
usage under FreeBSD
2018-06-17 21:49:39 -05:00
Fabian Homborg
fa665bd3c8
[completions/git] Remove unnecessary helper function
2018-06-15 15:40:04 +02:00
Fabian Homborg
7b86062720
[completions/git] Allow relative paths for files
...
This is _ugly_ because it is implemented for both status --porcelain
formats, but it is both fast and accurate.
2018-06-15 15:40:04 +02:00
Sam Yu
76749468aa
Fix sudo completion
...
* fix command under sudo get sudo's option completions
* rewrite completion of command under sudo with argparse
2018-06-14 23:05:06 +02:00
Gustaf Johansson
1270bb265f
completions: [go] Lookup pkgs from GOPATH
...
As defined in the `go help packages`:
Many commands apply to a set of packages:
go action [packages]
Usually, [packages] is a list of import paths.
This patch introduces automatic lookup of said packages from GOPATH
using `go list`, and provides them as options go subcmds.
2018-06-13 15:33:29 +02:00
Mahmoud Al-Qudsi
35a7e1ef0e
Add intelligent service-specific completions under FreeBSD
2018-06-12 19:24:18 -05:00
Mahmoud Al-Qudsi
eca4273f77
fixup! Add OS check to pkg completions
2018-06-07 13:42:53 -05:00
Mahmoud Al-Qudsi
e8b6705067
Add OS check to pkg completions
2018-06-07 12:22:47 -05:00
Twinkle
3b1806a904
Add completions for serve
...
See: https://github.com/zeit/serve
2018-06-05 16:36:22 +02:00
Mahmoud Al-Qudsi
086d088e1b
Fix scp completions to support bidirectional transfer
...
Also hardcode standard /bin/ls to avoid issues with `ls` aliases on the
target, and inherit the (improved) list of remotes from `ssh`.
2018-06-04 07:32:21 -05:00
Mahmoud Al-Qudsi
c8c3265cb8
Fix completions for service
...
I'm not sure what was up with the old completions,
`$__fish_service_commands` is not set anywhere and completions for the
command (not the service) were not being generated on my machine.
2018-06-04 07:32:21 -05:00
Mahmoud Al-Qudsi
fd14e459cf
Add completions for xsv
2018-06-04 07:32:21 -05:00
Mahmoud Al-Qudsi
f6a1bc1489
Fix unzip completions for non Info-ZIP versions
...
macOS and (AFAICT) most Linux distributions ship with the Info-ZIP
version of unzip, which has the `unzip -h` flag; but other
implementations of unzip do not necessarily have it (i.e. FreeBSD).
`unzip` under FreeBSD does not support `unzip -h`. Under both Linux and
FreeBSD, `unzip -v` presents the list of options, though. Using this
instead of `unzip -h` to detect the Debian-patched version of the
Info-ZIP unzip program.
2018-06-03 14:57:11 -05:00
Fabian Homborg
44d68f99ea
[completions/gcc] Improve wording
...
These completions are apparently based on an auto-generated version,
so there's a whole bunch of rewording to be done here.
Also for some reason some of the options are mentioned more than once?
2018-06-01 20:16:23 +02:00
Fabian Homborg
fa8248f170
[completions/git] Don't run __fish_git_refs twice for "log"
...
That's already included in `__fish_git_ranges`, so we don't need to do
it again.
Mentioned in #4117 .
2018-05-30 18:10:52 +02:00
Gustaf Johansson
23eb63eb2f
completions: [git] Added git help completions
...
This patch adds completions for the help subcommand of git.
2018-05-28 12:15:19 +02:00
Luca Weiss
c1af560753
pacman: Recognize *.pkg.tar as valid package extension ( #5005 )
...
* pacman: Recognize *.pkg.tar as valid package extension
2018-05-26 15:41:46 -07:00
Mahmoud Al-Qudsi
46bd0e66b6
fixup! Clean up completions a little bit
...
Reverts some changes that broke sudo completions, and adds comments
clarifying the purpose behind sudo completions.
Closes #5004 .
2018-05-22 17:44:52 -05:00
Mahmoud Al-Qudsi
0a337a9d8e
Clean up completions a little bit
2018-05-20 14:07:56 -05:00
Mahmoud Al-Qudsi
4be4932786
Fix unzip completions directory completion
2018-05-20 12:33:41 -05:00
Mahmoud Al-Qudsi
5bd121bd6d
Fix unzip completions for non-Linux platforms
2018-05-20 12:04:22 -05:00
Alexander Skwar
9401d3a6d5
Fix fish-shell issue #4996 : open -a works now on non-english installs
2018-05-20 21:14:10 +08:00
Alexander Skwar
e6aacd6167
Fix fish-shell issue #4993 - support pathname completion for open -a
command.
2018-05-20 21:14:10 +08:00
Mahmoud Al-Qudsi
9ddba0116f
Add completions for unzip
2018-05-20 01:22:16 -05:00
Mahmoud Al-Qudsi
1c4940c04c
Make sudo
completions _much_ smarter
...
Now dynamically generating completions for the target of the `sudo`
command, where possible.
2018-05-17 20:19:31 -05:00
Fabian Homborg
560985cdee
Remove test
invocations with implicit -n
tests
...
This is something we would like to remove - #2037 .
2018-05-17 13:24:26 +02:00
Mahmoud Al-Qudsi
18a163dc24
Simplify argument completions for ttx and meson
2018-05-13 20:00:58 -05:00
Mahmoud Al-Qudsi
e197e57a7f
Clarify ttx completion file table naming case sensitivity
2018-05-13 14:05:57 -05:00
Mahmoud Al-Qudsi
1bdf61cb20
Add completions for meson build system
2018-05-13 13:59:03 -05:00
Mahmoud Al-Qudsi
20395339a4
Fix python{,2,3} argument completions
...
Only the first non-switch parameter to python must be a .py file, but
everything thereafter is "just another argument". This enables file
completions for 2nd+ arguments.
2018-05-12 23:40:40 -05:00
Mahmoud Al-Qudsi
82c8abc4dc
Add completions for ttx
2018-05-12 14:06:03 -05:00
Fabian Homborg
84fe46e763
[make completions] Reenable files if token contains "="
...
Fixes #4967 .
2018-05-12 18:52:51 +02:00
Fabian Homborg
9929acd9d8
Revert "Use git ls-files
to generate completions for git
"
...
While this is a bit faster (mostly because it needs less processing on fish's side),
it lacks the neat description bit and the ":/" stuff doesn't work.
The boost is also not large in absolute terms (a few milliseconds).
This reverts commit 1f8e4dad9f
.
2018-05-11 16:00:45 +02:00
Mahmoud Al-Qudsi
1f8e4dad9f
Use git ls-files
to generate completions for git
...
This uses the same logic that git uses to determine the satus of files
and doesn't require any parsing on our end. Brings in support for
relative paths (such as `git add ../f<TAB>`). Should be faster and more
reliable than manually parsing porcelain status.
This doesn't support as many cases as the old `__git_ls_files` function
did (e.g. `renamed` is not supported, nor is `added`), both of which
_can_ be implemented on top of the new logic - but neither of which were
actually being used, anyway.
Usefulness is decreased by #4970 , speed still bottlenecked by #4969 .
cc @faho
2018-05-10 14:04:20 -05:00
Fabian Homborg
1e3d26f744
[git completions] Remove impossible error message
...
We already read the rest into a "_" garbage variable.
2018-05-08 23:16:39 +02:00
Fabian Homborg
183b7f7017
[git completions] Complete deleted files after "--" for "reset"
2018-05-08 23:16:10 +02:00