Eric Nielsen
61cc8182f9
[pacman] Remove dependency from completion module
...
The completion module has specific code for the pacman module, and we
want to make modules independent from each other.
Plus, as far as I checked, most of the pacman wrappers/frontends are
already packaged with zsh completion out of the box. I'm not an
archlinux user, but I checked the repos of the ones in
https://wiki.archlinux.org/index.php/AUR_helpers#Pacman_wrappers and
these contain zsh completion scripts:
* aura: https://github.com/aurapm/aura/blob/master/aura/doc/completions/_aura
* pacaur: https://github.com/rmarquis/pacaur/blob/master/zsh.completion
* pakku: https://github.com/kitsunyan/pakku/blob/master/completion/zsh.patch
* pikaur: https://github.com/actionless/pikaur/blob/master/packaging/usr/share/zsh/site-functions/_pikaur
* trizen: https://github.com/trizen/trizen/blob/master/zsh.completion
* yay: https://github.com/Jguer/yay/blob/master/completions/zsh
I didn't find zsh completions for the ones listed below, so I added a
compdef function for them inside the pacman module itself:
* aurman
* packer-aur
* wrapaur
* yaourt
2018-09-26 15:29:54 -05:00
Eric Nielsen
e70bee54f3
[completion] Update init.zsh and README.md
...
and use local string variable instead of "hardcoding" the string inside
`${}`.
2018-05-24 20:37:16 -05:00
AtomicCoding
a9828a8097
[completion] LS_COLORS independent of utility module
...
Completion module can now be loaded from an arbitrary location.
Closes #275
2018-05-24 20:15:27 -05:00
Eric Nielsen
56b61e211d
[completion] Simplify matcher-list syntax
...
Refactor using `+` instead of repeating the case insensitive pattern.
2018-04-03 08:57:30 -05:00
Eric Nielsen
e1a2a38a0f
[completion] Prefer left-matching before fuzzy
...
all still being case insensitive.
Having just fuzzy matching returns too many matches in the average case.
2018-03-23 08:36:16 -05:00
Eric Nielsen
98eef4184a
[completion] Improve fuzzy completion matching
...
This will present the menu in case of ambiguous matches, and also expand
by any separator, not just `[._-]`.
Based on the configuration suggested at
https://superuser.com/a/815317/637926
Closes #212
2018-03-22 11:41:21 -05:00
Eric Nielsen
017ff99851
[completion] Don't beep on an ambiguous completion
...
Remove beep when completion is shown. We don't want that to sound like
an error.
2018-03-01 08:25:33 +01:00
Eric Nielsen
cfdf36d76b
[completion] Ask when completion list is long
...
To achieve this, we have to make sure that the following is not set:
* `zstyle ':completion:*:default' list-prompt '...'`
otherwise long completion lists will be paginated (without prompting).
The list is considered too long when it's greater than `${LISTMAX}`,
which has a value of 100 by default.
Also remove options being set (or unset) that are already the default,
namely:
* `AUTO_MENU <D>`
* `AUTO_LIST (-9) <D>`
* `MENU_COMPLETE (-Y)`
And remove the space character from the beginning of the messages.
Fixes #136 . Closes #248
2018-03-01 08:25:33 +01:00
Eric Nielsen
bc742f0023
[completion] Remove smart editor completion
...
as Vim can open archives, and Emacs can virtually open everything :- )
I suggest we don't try to be smart here.
Closes #229
2017-11-29 09:06:41 -05:00
Eric Nielsen
8ba34e68e5
[completion] Don't zcompile the zcompdump file
...
as this is already being done in `zlogin`. Centralizing all the
compilation in one place.
Closes #218
2017-11-24 19:08:20 -05:00
Eric Nielsen
3e31167e70
[completion] Update submodule to version 0.27.0
2017-11-01 17:49:00 -05:00
Eric Nielsen
5564c87338
[completion] Update submodule
2017-10-03 12:17:07 -05:00
Eric Nielsen
dc73306b4d
[completion] Update submodule
2017-09-11 09:41:56 -05:00
Eric Nielsen
96c474978e
[completion] Update submodule
2017-08-19 14:03:28 -05:00
Eric Nielsen
460090beb9
[completion] Update submodule
2017-07-25 10:07:03 -05:00
Eric Nielsen
e3637db2c4
[completion] Update submodule
2017-06-08 09:57:22 -05:00
Matt Hamilton
903e8aa24d
[completion] update submodule
2017-04-30 09:02:46 -07:00
Matt Hamilton
269f8399d2
[completion] update submodule
2017-03-08 06:16:42 -08:00
Matt Hamilton
e267e46f98
[completion] update submodule
2017-01-05 22:32:33 -08:00
Matt Hamilton
081e4f30d0
[completion] update submodule
2016-12-11 09:48:30 -08:00
Matt Hamilton
0e56fa4901
[completion] update submodule
2016-12-01 23:51:59 -08:00
Matt Hamilton
6b31e32711
[completion] update submodule
2016-10-25 16:15:49 -07:00
Matt Hamilton
ccd441b197
[completion] update submodule
2016-09-27 16:39:21 -07:00
Matt Hamilton
0fa860ef84
[completion] update submodule
2016-09-04 08:45:54 -07:00
Matt Hamilton
8ff67e0987
[completion] update submodule
2016-08-11 18:13:53 -07:00
Matt Hamilton
8721d39484
[completion] update submodule
2016-07-26 13:50:07 -07:00
Matt Hamilton
e4378dd8b2
[completion] update submodule
2016-06-03 21:26:48 -07:00
Matt Hamilton
0ca163733f
[completion] update submodule
2016-05-02 07:36:04 -07:00
Matt Hamilton
4ac66646c4
[completion] add ${zcompdump_file} option
...
This commit assumes that the user-provided variable for the filename
will start with '.zcomp'. This is used in the .zlogin for zcompiling the
completion file. Sourcing the .zimrc file within the .zlogin file is
something I'd rather not do, and this seems like a good compromise. If
this becomes an issue, the file can be sourced an the var can be used
instead.
Closes #42
2016-04-16 14:56:53 -07:00
Matt Hamilton
9b03840753
[completion] update submodule
2016-03-27 18:46:59 -04:00
Matt Hamilton
ee512c85a9
[completion] update submodule
2016-02-27 18:43:19 -05:00
Matt Hamilton
e42afb7d99
[completion] update submodule
2016-02-10 04:16:59 -05:00
Matt Hamilton
a7824d788e
[completion] update submodule
2016-02-07 23:41:49 -05:00
Matt Hamilton
b6b3620f34
not in a function; remove local
2015-12-28 01:56:07 -05:00
Matt Hamilton
a1a56ac63f
use consistent variable style
2015-12-19 09:48:29 -05:00
Matt Hamilton
8e4fc03038
update completion docs to reflect zmodules order
2015-12-17 03:06:12 -05:00
Matt Hamilton
01838f0083
add compdef for pacman aliases
...
The recommended order for the module loading has been changed. The last
module to be loaded should be 'completion'. This ensures all completions
set by other modules are dumped and included in the completion.
Because of this, any compdefs like this one (making the pacman aliases
use pacman completion) must be set in the compdefs.zsh file, and loaded
with the completion module. This means the compdefs must be wrapped with
conditional statements to ensure such aliases/functions have been set by
previous modules. I may abstract this conditional to a function in the
future to make this an easier process.
2015-12-17 03:06:12 -05:00
Matt Hamilton
2f9b8437e2
It is probably better to prepend ranther than append
2015-12-16 14:56:54 -05:00
Matt Hamilton
02fbd3d582
correct markdown link format
2015-12-15 02:30:31 -05:00
Matt Hamilton
3141d29d25
add completion documentation
2015-12-15 02:07:30 -05:00
Matt Hamilton
3a62391e0e
initial commit
2015-12-15 00:12:17 -05:00