romkatv
4a82ff1ead
speed up widget rebinding by removing redundant array subscripts
2019-04-01 14:56:53 -06:00
Eric Freese
f76472272e
cleanup: Remove unnecessary braces
2019-04-01 14:36:31 -06:00
Eric Freese
681ffc7b28
Reset opts in some functions affected by GLOB_SUBST
...
Should fix GitHub #334
2018-07-13 22:16:53 -06:00
Eric Freese
4e466f0e4e
Support widgets starting with dashes (ex: -a-widget
)
...
Fixes #337
2018-06-10 22:39:58 -06:00
dana
c978004c0e
..._invoke_original_widget: Return 0 when given no arguments
...
`_zsh_autosuggest_widget_accept()` (&al.) passes this function's return status
on, and ZLE rings the bell if it's >0. Not having an original widget isn't an
error condition, so always returning 0 here should be OK to avoid the bell
Fixes #228
2018-01-16 14:10:29 -06:00
Kaleb Elwert
940e10a691
Fix conditionals to use [[ and (( rather than [
...
This fixes a small issue in src/widgets.zsh which makes it so if you
alias [ to g[ (as is done in prezto if the gnu-utility module is loaded)
autosuggestions would fail.
The documentation for GNU test mentions that -o and -a should be avoided
if possible because it's not very clear. Also, with zsh and [[ -o
actually tests if an option is set, which makes this option even more
confusing.
2017-11-27 08:31:41 -07:00
Eric Freese
256293cbb6
Use typeset -g to avoid warnnestedvar warnings
...
Fixes github issue #271
2017-09-27 13:24:06 -06:00
Eric Freese
c52c428793
Fix issues with widgets wrapped by other plugins
...
Puts in a better fix for #126 and related issues.
2017-03-03 18:43:10 -05:00
Eric Freese
75e850577d
Gracefully handle being sourced multiple times
...
Should fix #126
2017-02-17 23:19:55 -07:00
Christian Höltje
0c940e70f2
Don't bind any zle-* methods
...
It seems like all the zle-* methods are special and shouldn't be
monkeyed with.
Specifically `zle-isearch-update` and friends. Binding that widget
caused `history-incremental-pattern-search` to stop working.
Fixes zsh-users/zsh-syntax-highlighting#387
2017-02-17 18:32:52 -07:00
Eric Freese
25f4afb058
Add ZSH_AUTOSUGGEST_IGNORE_WIDGETS array
2016-07-31 19:35:30 -06:00
Eric Freese
964773aa75
Use array indices for forward compatibility
...
See issue #152
2016-04-25 14:26:37 -06:00
Eric Freese
945c660856
Fix #152 by escaping widget names inside evals
...
Solves problems when dealing with widget names with irregular
characters such as those that come from `opp.zsh`.
2016-04-25 14:26:35 -06:00
Eric Freese
a314a01a6a
Fix various bugs found while testing
2016-03-14 16:51:27 -06:00
Kordan Ou
aa597eea6d
Add an autosuggest widget: autosuggest-execute.
2016-03-01 13:18:46 -07:00
Eric Freese
03fac1f0d7
Revert "Use zle -w flag to set WIDGET appropriately when calling orig widget"
...
This reverts commit 70438d233d
.
2016-02-23 18:13:03 -07:00
Eric Freese
70438d233d
Use zle -w flag to set WIDGET appropriately when calling orig widget
2016-02-23 10:21:35 -07:00
Eric Freese
acc129de6c
Fix error when using autosuggest widgets
2016-02-17 13:44:52 -07:00
Eric Freese
41f15d5c9f
Forgot a pesky backslash
2016-02-15 08:45:52 -07:00
Eric Freese
2461a98857
Fix segfaults once and for all?
2016-02-15 08:31:00 -07:00
Eric Freese
5e419da326
Remove list of modify widgets and make 'modify' the default behavior.
2016-02-14 08:54:34 -07:00
Eric Freese
9788c2ee49
Fix deprecation warnings.
2016-02-14 01:07:05 -07:00
Eric Freese
ebcfc46b72
Comment formatting
2016-02-14 00:29:43 -07:00
Eric Freese
51b39e210e
Bound widgets now handle arguments correctly
2016-02-13 23:46:34 -07:00
Eric Freese
775dd20706
Rewrite
2016-02-06 21:05:02 -07:00