Fabian Homborg
eeb42f5e54
git completions: Only show last 1000 commits
...
This can be prohibitively slow on large repositories (minutes!).
While regrettable, no user is going to like waiting that long.
Work towards #3342 , rerun of #3230 .
Many thanks to @gladhorn for the idea!
2016-08-30 23:25:42 +02:00
Frederik Gladhorn
f37995c676
git completion: Limit the number of commits for --fixup ( #3230 )
...
Offering auto completion for existing commits is great, but on big
repositories, it suddenly becomes really slow, even with fast hard
disks, since each commit is read and then a line processed for it.
Instead limit to the last 500 commits (arbitrary number) which still
feels fast. Going back further in history can easily and more reasonably
done with git log etc.
2016-08-27 20:23:39 +02:00
Boris Aranovich
5328d6b83c
Perforce completions ( #3314 )
...
* completions/p4.fish
* Updated per comments + added p4 clients
* p4 completions: integ, opened, reopen. "default" CL support.
* Perforce RCS -> SCM
* p4 reopen: list opened files
* Fixed per review, added -d for all functions
Fixed per comments in review by @faho,
Added -d for all functions,
Renamed ”subcommand" term to “command” (so there’s probably diff noise)
* p4 completions with submit list of files
* p4 completions for submit: lists open files
2016-08-27 20:20:40 +02:00
Cobrand
172541c689
fix error when completing vi if it didnt exist ( #3336 )
2016-08-27 15:37:18 +02:00
Aaron Gyes
b0184f1476
Sync up history completion
2016-08-23 18:07:50 -07:00
ArkBriar
044efef577
fix broken completion of screen on osx, test on ubuntu and mac ( #3271 )
...
* fixes broken completion of screen on osx, test on ubuntu and mac with fish 2.3.1
* replaces sed, __fish_sgrep with fish builtin string
* add completion for `screen -x`
* adjust format (e.g. 12345.socket\t01/01/16 09:55:00 Detached)
2016-08-19 12:00:18 -07:00
Date Huang
5dd959070c
Fix brew completion for brew install
( #3309 )
...
* Fix brew completion for `brew install`
* Using `brew search` rather than `brew --repository`
- Homebrew migrated the directory holding their Formulas into Taps, breaking fish's completions.
- New method to find all Homebrew-core Formulas
- Compatible with old versions of Homebrew and more future proof
* Replace fixed path to search formula with `brew --repository`
* Replace `sed` with builtin `string replace`
2016-08-19 03:58:37 -07:00
Jens Fredskov
2a119ff082
Aura: Show installed packages on remove-completion ( #3297 )
2016-08-11 20:07:59 +02:00
Hunsu
b1f576deae
Add completions for Arcanist ( #3256 )
2016-08-03 15:08:22 +02:00
[Redacted]
00cb9ce80a
Add git shortlog
completion ( #3274 )
2016-08-02 19:34:28 +02:00
Fabian Homborg
afa266a7ea
git completions: Fix cases without current branch
...
Sometimes git just isn't on a branch.
2016-08-02 00:12:31 +02:00
Fabian Homborg
49008d7a1c
Fix escaping in abbr --erase
completions
...
Fixes #3267
2016-07-26 15:23:02 +02:00
Frederik Gladhorn
190fb4a665
git completion: add --stat to show
...
Of the various options for show, --stat is the one I
regularly use to know the size of a commit.
2016-07-16 20:20:33 -07:00
Frederik Gladhorn
6b99af05a5
Git mergetool completion ( #3226 )
...
* git completion: add mergetool
The list of tools is stole from the bash completion file that comes with
git.
* git completion: complete files with merget conflict for mergetool
2016-07-16 00:34:05 +02:00
Frederik Gladhorn
2df263fa26
git completion: Add HEADS
...
Ranges work with tags and HEAD etc.
Allows to complete "git checkout FETCH_HEAD" and similar.
2016-07-14 22:22:28 +02:00
Frederik Gladhorn
06003f82ae
git completion: Rename __fish_git_heads to __fish_git_refs
...
In git speak, these are refs, while there can be several heads which are
refs in turn.
2016-07-13 11:45:42 +02:00
Aaron Gyes
6e0521e23f
Completions (mostly): s/.../…/g
2016-07-09 10:57:59 -07:00
Fabian Homborg
10661bb024
npm completions: Check command npm existence
...
Really fixes #3158 and #3152 .
2016-06-21 17:42:22 +02:00
Fabian Homborg
d66d51f101
systemctl completions: Add reset-failed completion
...
Fixes #3153 .
2016-06-21 12:43:50 +02:00
Fabian Homborg
3a0d417b9e
npm completions: Call command npm
...
npm is often wrapped by a function.
Fixes #3158 .
2016-06-21 12:03:29 +02:00
Aaron Gyes
723d689679
Completion for string match --invert
...
Also adds descriptions for some other options which were absent.
2016-06-13 23:10:05 -07:00
Clément Martinez
4d49c902ac
Fix and enhance netctl-auto completions
...
I mixed things up with `netctl` somehow. Since the two are quite
different they do not have the same function, they should not have
the same completions.
I also find that I would be smarter to only display the relevent
profiles given what we want to do. If we want to disable a profile
we should only complete with enabled profile for completion for
instance. I don't know if the implemention is nice enough however.
2016-06-08 23:34:51 +02:00
Clément Martinez
65ed22d5a6
Add help option completions for godoc, gofmt, goimports, golint, gorename
2016-06-08 17:21:16 +02:00
Clément Martinez
09f9d71bb2
Clean mkdir completions
2016-06-08 16:03:21 +02:00
Clément Martinez
059e11078c
Split __fish_print_modules from modprob.fish and modinfo.fish
2016-06-08 15:13:18 +02:00
Clément Martinez
e30db95baa
Refine mkdir completions for non SELinux and non GNU
2016-06-08 14:30:39 +02:00
Clément Martinez
970d895aca
Add xz completions
2016-06-08 13:40:27 +02:00
Clément Martinez
c9b3220160
Add modinfo completions
2016-06-08 13:40:27 +02:00
Clément Martinez
10575d895d
Add lscpu completions
2016-06-08 13:40:27 +02:00
Clément Martinez
67f3c01396
Add gorename completions
2016-06-08 13:40:27 +02:00
Clément Martinez
536d6cebd9
Add golint completions
2016-06-08 13:40:27 +02:00
Clément Martinez
7a97095583
Add goimports completions
2016-06-08 13:40:27 +02:00
Clément Martinez
f37dafdf52
Clean udisksctl
2016-06-08 08:32:50 +02:00
Clément Martinez
c84137aec8
Clean netctl-auto and udiskctl completions
2016-06-07 20:41:04 +02:00
Clément Martinez
f1dc1cd92b
Add udisksctl autocomplete
2016-06-07 16:50:28 +02:00
Clément Martinez
41f2344cea
Add termite autocomplete
2016-06-07 16:50:28 +02:00
Clément Martinez
a965a71079
Add poweroff autocomplete
2016-06-07 16:50:28 +02:00
Clément Martinez
913624cbfa
Add netctl-auto autocomplete
2016-06-07 16:50:28 +02:00
Clément Martinez
220fd418a7
Add mkdir autocomplete
2016-06-07 16:50:28 +02:00
Clément Martinez
5dda908c1f
Add gofmt autocomplete
2016-06-07 16:50:28 +02:00
Clément Martinez
b7f45c3783
Add godoc autocomplete
2016-06-07 16:50:28 +02:00
Clément Martinez
3a6e239437
Add alsamixer autocomplete
2016-06-07 16:50:28 +02:00
Fabian Homborg
32a585a52b
git completions: Only take general options before command
2016-06-04 12:27:06 +02:00
Fabian Homborg
410d92ed61
git completions: Ignore stderr everywhere
...
This allows us to run git commands outside of a git repo.
Fixes #3114 .
2016-06-04 12:26:06 +02:00
Hunsu
24d6f6d066
Add completions for git blame command ( #3094 )
2016-06-02 12:49:01 +02:00
Jens Fredskov
29c38d73a2
correct __fish_contains_opts to __fish_contains_opt ( #3102 )
...
Completion throws and error about the command `__fish_contains_opts` beings unknown. It seems to be a simple typo, as all other completions use `__fish_contains_opt`
2016-06-01 23:58:38 +02:00
Fahri Cihan Demirci
8d11bb9f86
Add Purge Subcommand Completion for Apt ( #3097 )
2016-06-01 00:56:22 +02:00
Fabian Homborg
0d257fd651
Man completions: Don't show sections when completing pages
2016-05-29 14:31:42 +02:00
Fabian Homborg
2871096f9c
git completions: Add general options
...
These are the options between `git` and the subcommand.
Fixes #3087 .
2016-05-29 13:59:22 +02:00
Frederik “Freso” S. Olesen
7af9e1f5c5
Split off __fish_complete_blockdevice from mount.fish.
...
The __fish_complete_blockdevice function can be useful to other
completions than mount.fish, so it should live on its own so its
available to those.
2016-05-27 14:56:47 -07:00
Frederik “Freso” S. Olesen
980fb59232
Remove executable flag from pacaur completion.
2016-05-27 14:48:41 -07:00
Dan Underwood
475439fa0b
Test for Atom Package Manager now passes correctly
...
Move to `string match` syntax from `grep` caused test to see if the Atom Package Manager is installed to always fail. This appears to fix the issue (tested on fish 2.3.0 with apm 1.6.0).
2016-05-24 11:24:01 +00:00
Fabian Homborg
573b3797a5
Improve asp's package completion
2016-05-19 14:52:38 +02:00
Fabian Homborg
a0b3b8ac4c
Add networkctl completion
...
Very simple, but effective.
2016-05-19 14:50:25 +02:00
Fabian Homborg
4d63ebde15
Remove stray "=" from completions.
2016-05-19 14:29:04 +02:00
Fabian Homborg
9cee3f13a1
Implement src:dest for git push completion
...
This allows specifying a local branch to push to a certain remote
branch.
Fixes #3035 .
2016-05-19 14:11:27 +02:00
Fabian Homborg
8dc74de92e
Add completion for ip
...
This is quite ugly because the syntax is ugly, the documentation both
under- and overspecified at the same time (a BNF that isn't...) and it
has a lot of functionality.
But the completion works half-decent for `ip address`, so let's ship it.
2016-05-19 13:23:00 +02:00
Fabian Homborg
a998921f39
git: Complete reflog for reset
2016-05-13 16:18:29 +02:00
Fabian Homborg
c63c88262b
Indent git completion
...
It's about time I finally fixed my emacs config.
2016-05-11 15:06:10 +02:00
Fabian Homborg
fbe2cdc3c7
git completion: Complete commits for cherry-pick if at least three
...
characters are given
2016-05-11 15:05:56 +02:00
Fabian Homborg
b60ef72c3d
git completion: Fix option-before-command for stash
...
Because it allows sub-subcommands, it has functions to determine which,
if any, is used. These were too simplistic.
2016-05-11 15:03:05 +02:00
Fabian Homborg
d2e79cf6f6
git completion: More stringification
2016-05-11 15:03:05 +02:00
Fabian Homborg
a38d5504ac
git completion: Allow --pretty for more commands
...
This _should_ be all of them.
2016-05-11 15:03:04 +02:00
Fabian Homborg
76d24aa1bc
git completion: Allow more than one arg to using_command
...
Now we can easily add an option to multiple commmands.
This should also fix some edgecases.
2016-05-11 15:03:04 +02:00
Fabian Homborg
a7605d584b
git completion: Show commits for revert and tag --contains
2016-05-11 14:51:54 +02:00
Terje Larsen
4244a6e6fe
Add git commit --fixup completions ( #3021 )
2016-05-11 13:33:22 +02:00
[Redacted]
59c8800c4d
Added completions for rmmod ( #3007 )
2016-05-08 10:01:57 +02:00
Daniel Bergmann
ac47100a7d
Add tags to completion list for git show. ( #2998 )
2016-05-07 12:05:44 +02:00
Fabian Homborg
527e5f52ba
Remove useless case completions
...
It doesn't take options and what it takes (arbitrary strings) we can't
sensibly complete.
2016-05-04 14:51:09 +02:00
Fabian Homborg
fb1443a885
Remove using_command from netctl completions
...
This allows `; and netctl` to work.
First step towards #2705 .
2016-04-30 16:53:20 +02:00
Fabian Homborg
fde26d4049
git completion: Allow optional "+" for push
...
This signifies a force-push.
To avoid cluttering, only complete branches if a + is already given.
Fixes #2879 .
2016-04-30 16:30:02 +02:00
Fabian Homborg
b32bf22616
Add repository/refspec completion to git
...
A few commands (fetch, pull and push at least) take a "repository" (aka
"remote") and then a "refspec" (we currently do branches here).
Fixes #2525 (seems that man is still alive)
2016-04-30 16:21:41 +02:00
Sanne Wouda
8fc6011741
git takes --help even when it needs a command ( #2984 )
...
`git --help` is a valid command and fish should complete it as such
2016-04-29 12:42:15 +02:00
Fabian Homborg
5fa8370c13
git completion: Only show unmerged branches for cherry-pick
2016-04-28 21:30:26 +02:00
Cody Scott
96a28df018
switch to newer flag --set-upstream-to for git ( #2982 )
...
set-upstream was deprecated in git 1.8.0 as stated in [1] in favor
of set-upstream-to. this patch replaces the old flag in fish
completions
[1]: https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/1.8.0.txt
2016-04-28 21:26:45 +02:00
Fabian Homborg
bc35ca6366
Make busctl completions useful
...
- More accurate
- Fast enough to be usable (previously, this would sometimes take a few
seconds)
- A bit smaller
2016-04-27 14:22:16 +02:00
Yauhen Kirylau
21e927d24e
Add completions for 'pacaur' ( #2934 )
2016-04-15 13:45:48 +02:00
Laurence McGlashan
b5b8d9010e
Correct typo in valgrind completions
2016-04-13 14:54:33 -07:00
Aaron Gyes
36691df6fe
Stringify many completions and functions, with --invert stringification.
...
I believe apm must have been buggy - example output that I found online
showed `tr` was mangling paths with spaces in it. Should be fixed.
Also, use dscl on OS X in __fish_complete_users.fish like
__fish_print_users.fish already does.
2016-04-08 10:49:29 +08:00
Josef Gajdusek
0eb3fd6b3f
Make modprobe completion more precise
...
Only match loaded modules when -r is specified.
Also adds /lib/modules/(uname -r)/misc to the search path.
This directory is used by Gentoo for package-provided modules
(such as the app-emulation/virtualbox-modules)
2016-03-28 14:38:19 +02:00
Josef Gajdusek
6663c73eb0
Fix typos: ingnore->ignore
2016-03-28 14:38:19 +02:00
Bogdan Sinitsyn
516695ff21
add yaourt completions
2016-03-24 16:17:10 +01:00
Cody Frazer
1828def866
Add --no-index
option completion for git diff
2016-03-20 10:10:51 -05:00
lordlycastle
540bdfcb02
date and uniq completions for OS X.
2016-03-12 13:57:37 +01:00
David Adam
f4c14b69a2
Update dpkg completions to complete commonly used options
...
Closes #2798 .
2016-03-06 21:29:09 +08:00
Fabian Homborg
5446841069
Ditch __fish_sgrep in obnam completions
2016-02-28 18:07:57 +01:00
Fabian Weisshaar
a805d401b8
add completions for diskutil (osx)
2016-02-23 13:54:46 +01:00
Sunguk Lee
c4f702b7c4
Fix No command 'dscl' found
error of killall command
...
`dscl` command have OSX system, to change `__fish_print_users`
2016-02-15 19:30:58 +09:00
Fabian Homborg
b6e058985b
Fix "replacement string too large" error in pacman completion
...
Turns out we can skip using string altogether, thanks to the magic of
the cartesian product.
2016-02-10 15:35:01 +01:00
Fabian Homborg
adc3b0e122
eselect completion: Silence eselect php output
...
The version with the features we use isn't in gentoo stable yet and
older versions print a very ugly warning.
2016-02-04 23:31:32 +01:00
Elis Axelsson
29d06760bc
Update eselect completions to work for the php-module
...
refs #1131
2016-02-04 23:30:06 +01:00
Fabian Homborg
cadb5d51ea
Replace tr
invocations
2016-02-03 23:47:46 +01:00
Fabian Homborg
158ea98189
Replace uses of expr with math/string
2016-02-03 23:23:59 +01:00
Fabian Homborg
1688b2384f
pacman: Stringify
2016-02-02 09:48:55 +01:00
Fabian Homborg
0c94c2b9e8
pacman: Remove outdated "$argument" hack
...
This doesn't seem to speed up anything.
2016-02-02 09:48:26 +01:00
Fabian Homborg
d3f6c8a694
pacman: Improve --files completion
...
Missed one option and the option-as-command-hack
2016-02-02 09:47:44 +01:00
Fabian Homborg
e086e27f98
Update pacman/makepkg completions for pacman 5
...
Some new options, one new operation - "--files".
2016-02-02 09:23:23 +01:00
Dan Martinez
c7ba446c23
Add support for brew's desc
subcommand
2016-01-21 15:01:18 -08:00
Fabian Homborg
68fcb790b0
Add all boolean values to pacmd completion
...
PA accepts "0", "false" and "off" (among others) for false also for suspend-*.
2016-01-14 23:33:31 +01:00
Fabian Homborg
8db1a5fae7
Add completions for Pulseaudio's pacmd
...
To implement this mostly as a wrapper around pactl, we add the list of
commands for this to that. It's 90% the same anyway. (This means that
`pactl suspend ` will complete files instead of commands like `pactl
banana ` would, but neither is correct)
2016-01-14 23:31:17 +01:00