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
d1214edc7a
functions/__fish_print_pacman_repos.fish: fix
...
This function return wrong data.
Fix this.
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
Johannes Altmanninger
0a5c2051b1
Always use wl-{copy,paste} if running on wayland
2019-10-24 11:42:33 +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
868eba5e80
Fix error on typing Alt-l on a token that starts with a dash
2019-10-19 12:31:09 +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
ARifleman
876176fc94
Added 'Nord' color scheme to sample color schemes ( #6201 )
2019-10-15 23:18:18 -07: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
jalr
2e6ab0b418
cd: Fix test for too many args
2019-10-10 18:06:11 +02:00
Greg Anders
055a332133
Only print extra newlines for multi-line prompts ( #6179 )
...
Corrects #6110
BSD `seq` produces a down-counting sequence when the second argument is
smaller than the first, e.g.:
$ seq 2 1
2
1
$
While GNU `seq` produces no output at all:
$ seq 2 1
$
To accommodate for this behavior, only run `seq` when we are sure that
the second argument is greater than or equal to the first (in this case,
the second argument `line_count` should be greater than 1).
2019-10-08 19:14:51 +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
Greg Anders
0f802eaad8
Add default \es keybinding for "prepend sudo"
2019-10-06 15:17:49 +02:00
Greg Anders
e5fc8abefe
Fix default Alt+W keybinding ( #6110 )
...
* Fix default Alt+W keybinding
The old keybinding would chop off the last line of the `whatis` output
when using a multi-line prompt. This fix corrects that.
* Make variable local and remove unneeded if statement
* Test that token is non-empty
2019-10-06 15:14:10 +02:00
madblobfish
87dee7ad1c
improved ansible-vault completions
2019-10-06 15:13:06 +02:00
Kon Doumou
e44d207d64
sudo keywork is ignored when alt+h is pressed
...
if `sudo` is in the beggining of the command string, then at alt+h press
the manual of the following command is shown instead.
Fixes https://github.com/fish-shell/fish-shell/issues/5982
2019-10-06 15:12:02 +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
Johannes Altmanninger
d74b774f51
Fix paginate binding (\ep) for multiline jobs
...
Reproducer: type `: \<RET><M-p>`. This used to print an error due to builtin test receiving
too many arguments.
It looks like (commandline -j) can return multiple items, because a job can be broken up in multiple
lines terminated by backslashes.
2019-10-03 21:40:25 +02:00
Fabian Homborg
70fc2611bd
webconfig: Escape abbrs properly
...
Fixes #6120
2019-10-02 20:37:24 +02: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
Aaron Gyes
19c575e116
builtin functions: colorize output if interactive
...
We can also get rid of the | fish_indent --ansi stuff in type.fish
2019-09-25 04:18:06 -07: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
ridiculousfish
e1f46d22de
Simplify space binding and fix search
...
With the new support for self-insert inserting a bound sequence,
the default binding for space as expanding abbreviations can be simplified
to just `self-insert expand-abbr`. This also fixes the bug where space
would cancel pager search.
2019-09-21 16:06:19 -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
Aaron Gyes
b7dd060dec
sample prompts: use $USER instead of (whoami)
2019-09-18 23:35:16 -07: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
David Adam
737c2d156d
history: fixup exact matching by default
...
Work on #6070 . Fixup from 54ed2ad440
.
2019-09-11 23:12:10 +08: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
Mahmoud Al-Qudsi
912421f1cb
Switch away from awk
for __fish_print_hostnames
...
By not manipulating each line or even each file at a time, we can go
back to `string` and piece together a pipeline that will execute
significantly faster than shelling out to `awk` will. This also removes
one of the few dependencies on `awk` in the codebase.
With this change, `__fish_print_hostnames` now finishes ~80% faster than
it used to a few commits back.
2019-09-05 22:44:09 -05:00
Mahmoud Al-Qudsi
1db861b4db
Clean & slightly optimize SSH hostnames handling in __fish_print_hostnames
2019-09-05 22:44:09 -05:00
Mahmoud Al-Qudsi
06317f0a98
Optimize __fish_print_hostnames
hosts file loading/parsing
...
Reordering the `getent hosts` and read from `/etc/hosts` combined with
minimizing shelling and job invocations for parsing the output results
in a profiled and benchmarked ~42% decrease in the time it takes to run,
and that's on a machine with a very small hosts list in the first place.
This update also fixes the hadling of IPv6 addresses in the hosts
output, which were previously ignored, and ignores 127.* loopback
addresses in addition to the 0.0.0.0 address (plus adds support for
shorter IPv4 notations).
2019-09-05 22:44:09 -05:00
LawAbidingCactus
c20a9ea477
fix compatibility with BSD sed
...
Closes #6087 .
2019-09-03 15:35:04 +08:00
David Adam
54ed2ad440
history: implement exact matching by default for delete
...
Brings behaviour into line with documented and intended behaviour.
Closes #6070 .
2019-09-02 22:59:52 +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
Aaron Gyes
edc8d5d7a3
string-replace-fewer-backslashes -> regex-easyesc
...
This shortens a very long feature name.
See discussion in #5805
2019-08-13 22:32:04 -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
Klaus Alexander Seistrup
7046d251d9
Make sure nop command always suceeds
2019-08-03 18:14:12 +02: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
Fabian Homborg
ef403129e4
fish_vi_key_bindings: Remove duplicate \cc binding
...
Already done in the shared bindings.
[ci skip]
2019-07-15 21:04:23 +02:00