Fabian Homborg
5d20750aaa
Merge pull request #3123 from moverest/completion
...
Extend autocompletion support
2016-06-10 18:47:55 +02:00
Fabian Homborg
222a07e907
Allow compressed man pages in help
...
It seems Fedora compresses our whopping 340k of man pages.
Fixes #3130 .
Inspired by @TieDyedDevil's work there.
2016-06-10 14:13:15 +02: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
Jorge Bucaran
aee9d2c9d7
Do not hardcode RGB values in color definitions.
2016-06-01 21:50:19 -07: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
2768d2ea06
Style fixes for fish_vi_cursor
...
"$fcn"
[ci skip]
2016-05-30 16:40:49 +02:00
Andreas Wagner
3d19b549c8
Fix utf-8 decoding error in file_is_overwritable of create_manpage_completions.py
2016-05-29 14:12:32 -07:00
Fabian Homborg
bfb5fec330
Remove stray "0" output from man completions
2016-05-29 14:34:20 +02:00
Fabian Homborg
0d257fd651
Man completions: Don't show sections when completing pages
2016-05-29 14:31:42 +02:00
Fabian Homborg
ebde55f704
Man completions: Show all pages for a section
...
If one is given, of course.
2016-05-29 14:31:12 +02:00
Fabian Homborg
f23464001f
Indent __fish_git_prompt
2016-05-29 14:10:10 +02:00
Fabian Homborg
0882e0cb95
Git prompt: Remove legacy option
...
Git has supported `rev-list --count` for years, so this shouldn't be
needed anymore.
2016-05-29 14:07:15 +02:00
Fabian Homborg
763c620d0b
Stringify git prompt
2016-05-29 14:06:12 +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
Fabian Homborg
8e88b29eeb
Git prompt: Shorten the sha ourselves
...
Possibly fixes #3083 .
2016-05-28 19:30:29 +02:00
Fabian Homborg
aaaea44714
Git prompt: Only shorten sha if needed
...
This speeds up the common case when IO is slow, e.g. when used with
sshfs.
We only use the short sha for figuring out whether the state is
valid (for which a long sha should also work) and for display when HEAD
is detached (I think that's the correct git-ism).
Working towards #3083 .
2016-05-28 17:58:29 +02:00
Fabian Homborg
d79a5a3152
Funced: Make removal safer, take two
...
Now we try to remove the file and then the directory, without forcing
anything, showing any (quite unexpected) error to the user, once.
2016-05-28 12:34:04 +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
Fabian Homborg
53c506f109
Run fish_indent on default_key_bindings
2016-05-25 16:10:16 +02:00
Fabian Homborg
7d1f45e25f
Add clipboard helper functions and bind them
...
\cy copies, \cv pastes.
2016-05-25 16:10:16 +02:00
Fabian Homborg
b9848538e3
Funced: Limit damage when removing tmpfile
...
This will now only forcibly remove _files_, not directories.
$tmpdir _should_ be something only we use in /tmp, but mktemp might screw up.
2016-05-24 13:55:09 +02: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
dac8483f7e
Simplify some code in abbr
...
We actually need less duplication here.
2016-05-23 19:59:02 +02:00
Fabian Homborg
46f4819ffa
Fix printing "--" in abbr --show
2016-05-23 19:59:02 +02:00
Fabian Homborg
c238ad35bd
Fix "--" argument in abbr
2016-05-23 19:59:02 +02:00