Commit Graph

961 Commits

Author SHA1 Message Date
Eric Johnson b49f300934
xinput: escape colons in device names
The completion menu breaks if any device names have colons in them, as colons are used to separate completion matches from their descriptions.
2021-08-23 18:39:34 -04:00
und3rdg ae82a1efae Lowercase variables. 2021-08-13 22:42:29 +01:00
und3rdg 00b5130b26 Globals are bad! keep var's local, nice and cozzy. 2021-08-12 22:21:16 +01:00
und3rdg 8ed1a90bde Completion for openvpn3. 2021-08-11 18:43:45 +01:00
oxiedi f996cf93ed Add completion for rmlint 2021-07-19 12:35:04 +05:00
und3rdg 5025527880 new completion for QMK CLI 2021-06-28 07:29:25 +01:00
nicoulaj 9dfd5c6670
Merge pull request #774 from simnalamburt/mssh-errorhandling
_mssh: Handle error cases more gracefully
2021-05-03 19:28:33 +02:00
maniac c4b8c83315
gist -u or gist --update will auto-complete user gists
This commit will help the user to easily update their existing gist
using zsh auto-completion rather than going to github and then
extracting the required gist hash/URL

Note: This commit effects the working of file: `src/_gist`
2021-05-02 19:24:38 +05:30
Shohei YOSHIDA 876e972fe0 fix license 2021-04-30 12:56:12 +09:00
André Kugland 67ced04c7f
completions for lilypond 2021-04-24 02:45:29 -03:00
André Kugland 78fb97c24d
changed "(%)" to "(percent)" in optarg descriptions 2021-04-22 18:58:03 -03:00
Shohei YOSHIDA fea56d1a7b Add zsh license header 2021-04-21 09:45:28 +09:00
André Kugland 57ba534a6a
added appropriate opts for _arguments 2021-04-19 16:57:12 -03:00
André Kugland d930094f84
fixed issues raised in the review 2021-04-19 16:43:00 -03:00
André Kugland b65eb5d64e
added completions for opus-tools (opusenc, opusdec & opusinfo) 2021-04-18 23:00:47 -03:00
Oliver Kiddle cb4b721ada Add exclusion lists to nano completion 2021-04-12 23:53:05 +02:00
Ludovic Jozeau 98cb234270
fix (( $+functions[_f] )) || _f()
checked with: "\(\( \$\+functions\[(.*)\] \)\) \|\|\n(?!\1)"
2021-04-08 15:50:39 +02:00
Marlon Richert 24834255e9
Remove deprecated `-$` option 2021-03-22 12:21:08 +02:00
Alex Vondrak b152a4901f
Autocomplete files for mix run
Previously, `mix run <tab>` would not expand into anything, even though the [`mix run`](https://hexdocs.pm/mix/Mix.Tasks.Run.html) task accepts filenames as inputs. This commit collapses the growing list of such cases (`test`, `format`, `run`) into one clause that autocompletes files.

Although `mix run` accepts several different `--flags`, the autocompletion isn't currently set up to deal with subcommands' specific options, so I'm punting on that part.
2021-03-16 13:44:40 -07:00
Khue Nguyen 23ce4b9085 add 'shellcheck' completion 2021-02-28 06:44:59 -05:00
Shohei YOSHIDA d16c8aea54 Add new flags which are introduced at Go 1.16 2021-02-25 11:32:20 +09:00
davidhcefx 37a9a485ee update nano to version 5.4 2021-02-11 02:51:33 +08:00
Score_Under 4c5a8ef41e
Add license notice to _gpgconf 2021-02-04 15:48:07 +00:00
Score_Under ab80ddd379
Shorter perl one-liner in _gpgconf 2021-02-04 14:45:30 +00:00
Score_Under a1d53f8824
Add missing homedir option to _gpgconf 2021-02-04 14:41:16 +00:00
Score_Under c90c27f8fc
Add completion for gpgconf 2021-02-04 13:20:36 +00:00
Hannu Hartikainen 19a412373f
udisksctl: fix paths with a colon
For paths such as `/dev/disk/by-id/usb-JetFlash_Transcend_64GB_15AFGA849642-0:0`, `_describe` parses the colon as field separator. This results in wrong completions and the general feeling that udisksctl is broken because it won't mount my pendrive.

Since the output of `udisksctl complete` is (apparently) just a list of paths, it's safe to escape all colons with a backslash.
2021-01-18 10:13:44 +00:00
Aske Bækdal Møller 3511fb04db Use correct makefile for target completion 2021-01-16 10:37:26 +01:00
Gianluca Recchia 17d92b0a8e
Fix completion of cipher algorithms 2021-01-03 16:31:19 +01:00
Hyeon Kim 5922465d53
_mssh: Handle error cases more gracefully
1.  Do nothing when there's no AWS CLI
2.  Print error message gracefully if AWS CLI failed
2020-12-31 17:27:10 +09:00
Hyeon Kim 7a4574cd45
_mssh: Add a license header 2020-12-30 20:03:56 +09:00
Hyeon Kim 43a6b81308
Add 'mssh' completion
mssh is a Python client for accessing EC2 instances via AWS EC2 Instance
Connect.

References:
  https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-methods.html#ec2-instance-connect-connecting-ec2-cli
  https://github.com/aws/aws-ec2-instance-connect-cli
  https://pypi.org/project/ec2instanceconnectcli/
2020-12-30 17:02:50 +09:00
nicoulaj 44c5bce312
Merge pull request #711 from kanashimia/master
Update stack completions as in the current version 2.3.0.1
2020-12-27 16:41:58 +01:00
Norbert Lange 6dff9453ca CMake: note myself as additional author 2020-12-25 23:50:13 +01:00
Norbert Lange 19e65b20dd CMake: udpate generators list 2020-12-25 23:34:56 +01:00
Norbert Lange f5d179b0b5 CMake: Major update to options, adapted to 3.19
Now listed in the same order as the builtin help (CMake 3.19),
for easier audit in the feature.

Commands and descriptions updated.

Support for listing presets.

Use this command to create output for comparison
(not 100% exact obviously):

cmake --help |
  sed -n "s,^ *\(--*[^= ]*\).* = *\([^=]*\),    '\1[\2]',p" |
  sed 's,\.],],'
2020-12-25 23:05:51 +01:00
Norbert Lange 7246533baa CMake: add -E command completions 2020-12-25 22:21:49 +01:00
Norbert Lange 990e604652 CMake: Completely overhaul help command completions
Several argument names where wrong,
completed all available -list functions,
escape brackets in the list, etc.
2020-12-25 22:18:42 +01:00
Norbert Lange 2dc84783fe CMake: Turn some property values into local arrays
Update C/C++ Standards supported aswell
2020-12-25 22:11:49 +01:00
Norbert Lange 63b470243b CMake: fix option completion after first argument
for some reason this just ended after the first option.
2020-12-25 21:57:24 +01:00
Shohei YOSHIDA 2d5a8a3ef1 Remove flameshot completion
It is provided from original project now
2020-09-23 14:39:32 +09:00
Shohei YOSHIDA 454d236d3a
Merge pull request #752 from pseyfert/go1.15
prepare go 1.15
2020-09-01 12:12:00 +09:00
Shohei YOSHIDA 55026f8ed9 Update nano completion
Add '-u', '--unix' flag
2020-08-10 13:17:28 +09:00
Kamlesh 31c76d90a7 incporporated code review comments
incporporated code review comments from @syohex
2020-07-20 22:38:46 -04:00
Kamlesh 231db68806 Update new completions for Flutter
closes https://github.com/zsh-users/zsh-completions/issues/682

Add new completions for the Flutter CLI
2020-07-20 00:13:15 -04:00
Shohei YOSHIDA afcaccd3ca Update node flags 2020-07-17 22:16:36 +09:00
Paul Seyfert 74a316cca8 prepare go 1.15 2020-06-17 22:22:01 +02:00
Shohei YOSHIDA 3b247d3071
Merge pull request #749 from arp242/psqlrc
pgsql: add -X to psql commands to prevent loading ~/.psqlrc
2020-06-03 14:24:46 +09:00
Martin Tournoij 76efcab2f9
pgsql: Check for pg_config existence
pg_config isn't installed by default on many systems, and is usually
part of postgresql-libs-devel or some such, leading to needless
"pg_config not found" errors on completion.
2020-06-03 12:33:45 +08:00
Martin Tournoij f371431619
pgsql: add -X to psql commands to prevent loading ~/.psqlrc
The ~/.psqlrc may alter the output. In particular, I have '\timing on'
in there to add timings. This is useful when using psql, but not when
relying on it in scripts.

For example:

    psql -Aqt -c "select n.nspname \
        from pg_catalog.pg_namespace n \
        where n.nspname "'!~'" '^pg_' \
          and n.nspname <> 'information_schema' \
        order by 1;" postgres 2>/dev/null

Gives the output:

    public
    Time: 1.882 ms

Whereas with -X it gives the standard output:

    public
2020-06-03 11:40:37 +08:00
OKURA Masafumi 0bd08521f9 Add completion for nanoc
nanoc is a static site generator written in Ruby.
Website for nanoc is here: https://nanoc.ws/
2020-05-28 07:47:52 +09:00
Shohei YOSHIDA ae19ab20f5 Move comment line for avoiding completion error 2020-05-27 23:07:34 +09:00
Shohei YOSHIDA 787ea7a719 Update vnstat completion 2020-05-27 08:49:43 +09:00
Shohei YOSHIDA 23614ea318 Update rspec format option candidates 2020-05-26 11:20:50 +09:00
Shohei YOSHIDA 6daa0849e2 Update ffind completion 2020-05-26 07:38:59 +09:00
Shohei YOSHIDA c13c3ce7f8 Add license header and metadata and fix typo 2020-05-25 23:32:47 +09:00
Shohei YOSHIDA a2fa9788b6
Merge pull request #740 from syohex/pr-665
Cleanup #665
2020-05-25 23:29:37 +09:00
Felix Neumärker b7bc314a82
Add completion for fail2ban-client 2020-05-25 15:12:01 +02:00
Shohei YOSHIDA c65ddb6621 Improve mc completion
- Add license header
- improve file completions
- update new options
2020-05-25 20:44:45 +09:00
Shohei YOSHIDA b43531a749 Update nano completion 2020-05-25 16:18:46 +09:00
Shohei YOSHIDA 7a23291f66 Update httpie completion 2020-05-25 08:21:51 +09:00
Shohei YOSHIDA 013f6ac258
Merge pull request #737 from syohex/pr-683
Squash #683 and add file local variables
2020-05-17 22:00:32 +09:00
Shohei YOSHIDA bbfdc2635a Add file local variables for _golang 2020-05-17 21:27:32 +09:00
Paul Seyfert 815f3808a0 Update to go 1.14 2020-05-17 21:25:54 +09:00
Shohei YOSHIDA 836d9e27bb Implement 'perf script' completion
and fix typos
2020-05-16 11:16:29 +09:00
Shohei YOSHIDA cafbd76037 Implement 'perf sched' completion 2020-05-16 00:23:52 +09:00
Shohei YOSHIDA 9db043ca96 Update 'perf kmem' completion 2020-05-15 23:19:56 +09:00
Zhuo Zhang 07c5f46eea support cmake --install related options 2020-05-15 15:55:59 +08:00
Shohei YOSHIDA fe8e9a0d29 Implement perf trace 2020-05-15 09:29:56 +09:00
Shohei YOSHIDA ba0cc35915 Implement 'perf lock' completion 2020-05-15 08:03:23 +09:00
Shohei YOSHIDA ab17b682be Implement 'perf bench' subsystem and suite completion 2020-05-14 21:12:03 +09:00
Shohei YOSHIDA 8b7e37acce Update 'perf timechart' completion 2020-05-14 09:30:24 +09:00
Shohei YOSHIDA ffaa7d5b67 Implement 'perf report' completion 2020-05-13 23:14:40 +09:00
Shohei YOSHIDA 769585ecb3 Implement 'perf record' completion 2020-05-13 09:30:08 +09:00
Shohei YOSHIDA 2c2cc6cc43 Implement perf data completion 2020-05-12 23:54:47 +09:00
Shohei YOSHIDA f46cc5639f Update 'inject' and 'buildid-cache' options 2020-05-12 08:31:10 +09:00
Shohei YOSHIDA 18a6415967 Implement 'perf mem' completion 2020-05-12 00:52:20 +09:00
Shohei YOSHIDA a2b542f687 Update 'perf test' completion 2020-05-11 23:17:27 +09:00
Shohei YOSHIDA 8292501ae1 Implement perf c2c completion 2020-05-11 08:14:08 +09:00
Shohei YOSHIDA f816c920c5 Implement perf config/ftrace/kallsyms subcommand 2020-05-10 20:32:32 +09:00
Shohei YOSHIDA 9dc327a19b Update subcommand 2020-05-10 19:01:08 +09:00
Shohei YOSHIDA e60485263b Implement perf probe completion 2020-05-10 10:50:16 +09:00
Shohei YOSHIDA aea74be9a4 Implement perf stat completion
except stat record/report completion
2020-05-09 23:40:19 +09:00
Shohei YOSHIDA 91c7785937
Merge pull request #716 from syohex/syohex/perf-top
Implement perf top completion
2020-05-09 22:03:56 +09:00
Shohei YOSHIDA 580905588b Implement perf top completion 2020-05-09 20:44:00 +09:00
Shohei YOSHIDA 73505e4768 Don't use sed gnu extension, use POSIX syntax 2020-05-09 19:22:56 +09:00
Shohei YOSHIDA fd64c85cf7 Fix run subcommand --cwd issue
opt_args cannot be read from 2nd completion
2020-05-09 16:48:48 +09:00
Shohei YOSHIDA 1a420d3839 Update subcommand flags 2020-05-09 14:57:49 +09:00
Shohei YOSHIDA 44e1c1ed9c Improve completion when '--cwd' is specified 2020-05-09 14:28:04 +09:00
Shohei YOSHIDA 4601310ac2 Update subcommand completion 2020-05-09 10:08:03 +09:00
Shohei YOSHIDA 195bdb40c7 Set description for all options 2020-05-08 08:42:05 +09:00
Shohei YOSHIDA 4817a6afba Update yarn command line options 2020-05-08 07:48:34 +09:00
Kanashimia d57ce3b635
Remove '*' from nix* and docker* 2020-05-05 02:52:58 +03:00
Kanashimia 378d08d82d
Another minor changes.. 2020-05-05 02:46:48 +03:00
Kanashimia 44b3d21dd7
Fix all words to start with a lowercase letter. 2020-05-05 02:41:27 +03:00
Kanashimia 565d378f00
Update _stack 2020-05-05 02:24:33 +03:00
Shohei YOSHIDA 41828e2df4
Merge pull request #706 from syohex/syohex/add-protoc
Add protoc compdef
2020-04-24 20:53:14 +09:00
Shohei YOSHIDA e6eb268a07 Improve node inspect completion
It should be completed only after 'node'
2020-04-23 21:31:49 +09:00
Shohei YOSHIDA 9f5aa05a75 Update node completion to v14 2020-04-22 23:41:36 +09:00
Shohei YOSHIDA 376c51ca59 Add protoc compdef 2020-04-22 23:12:27 +09:00