Eric Freese
1912726460
Try to make async ^C spec less flaky
...
Was intermittently failing, sleep for a little longer to increase
chances of false negatives.
2019-06-14 12:50:44 -06:00
Eric Freese
de266574d3
Merge pull request #434 from zsh-users/meta/improve-highlight-style-docs
...
Improve documentation for configuring highlight style
2019-05-29 01:40:20 -06:00
Eric Freese
48d04447cc
Merge pull request #433 from zsh-users/fixes/ignore-empty-max-size
...
Allow setting max size to empty string (GitHub #422 )
2019-05-29 01:39:24 -06:00
Eric Freese
b714f6667c
Improve documentation for configuring highlight style
...
Supersedes PR #430 and gives additional info.
https://stackoverflow.com/questions/47310537/how-to-change-zsh-autosuggestions-color
2019-05-27 14:56:19 -06:00
Eric Freese
474c577f3c
Allow setting max size to empty string (GitHub #422 )
...
Some people have gotten used to setting ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE
to an empty string rather than leaving it unset. This lets them continue
to do that without getting any warnings (e.g. "bad math expression:
operand expected at end of string").
2019-05-27 14:18:21 -06:00
Eric Freese
e9d8231ba7
Merge pull request #401 from zsh-users/features/completion-suggestions
...
Features/completion suggestions
2019-04-15 12:55:35 -06:00
Eric Freese
ce6ee94f30
Add spec to demonstrate bracketed-paste-magic bug workaround
...
Add `bracketed-paste` to list of widgets that clear the suggestion as a
workaround for GitHub #351
2019-04-15 12:47:21 -06:00
Eric Freese
e7c7efe2e2
Set options immediately after sourcing the plugin before next precmd
...
So that you can access defaults to e.g. add elements to an existing
array.
2019-04-15 12:46:21 -06:00
Eric Freese
733abd4af0
Merge pull request #419 from zsh-users/develop
...
v0.5.2
2019-04-11 10:18:26 -06:00
Eric Freese
152d2c6b31
v0.5.2
2019-04-11 10:15:46 -06:00
Eric Freese
528e338e57
Update changelog for v0.5.2 release
2019-04-11 10:15:13 -06:00
Eric Freese
c1910348c7
Implement completion suggestion strategy ( #111 )
...
Based on https://github.com/Valodim/zsh-capture-completion
`zpty -r` with a pattern seems to have some funky behavior on older
versions, giving unpredictable results
Don't use `-s` option to `zmodload`. It is not available in zsh versions
older than 5.3
If running in sync mode and a completion takes a long time, the user can
^C out of it. We need to use `always` in the strategy function or the
pty will not be destroyed in this case and the next time we go to create
it, it will fail, making the shell unusable.
User can have many different completion styles set that will modify what
they've already typed. These styles will result in suggestions that
don't match what the user has already typed. We try our best to unset
some of the more problematic ones, but add some code to fetch to
invalidate suggestions that don't match what the user's already typed.
2019-04-11 09:53:55 -06:00
Eric Freese
937d6fc241
Merge pull request #418 from zsh-users/features/manual-rebind
...
Allow disabling of automatic widget re-binding
2019-04-10 13:53:37 -06:00
Eric Freese
b9fee8a324
Allow disabling of automatic widget re-binding
...
Addresses github #411
2019-04-10 11:43:21 -06:00
Eric Freese
db290c518b
cleanup: Leave max size config unset by default to match other options
2019-04-10 11:43:20 -06:00
Eric Freese
d8ba53678e
cleanup: Use +
param expansion flag in arithmetic context
2019-04-10 11:42:25 -06:00
Eric Freese
4cd210b70d
Fix async suggestions when SH_WORD_SPLIT is set
2019-04-10 09:51:33 -06:00
Eric Freese
586b51366b
Merge pull request #417 from zsh-users/features/async-process-substitution
...
Refactor async mode to no longer use zpty
2019-04-10 08:06:52 -06:00
Eric Freese
e405afab29
Refactor async mode to no longer use zpty
...
See technique used in `fast-syntax-highlighting`:
- ca2e18bbc9
- http://www.zsh.org/mla/users/2018/msg00424.html
Also see http://www.zsh.org/mla/users/2018/msg00432.html
In async response handler:
- We only want to read data in case of POLLIN or POLLHUP. Not POLLNVAL
or select error.
- We always want to remove the handler, so it doesn't get called in an
infinite loop when error is nval or err.
There is an upstream bug that prevents ctrl-c from resetting the prompt
immediately after a suggestion has been fetched asynchronously. A patch
has been submitted, but a workaround for now is to add `command true`
after the exec.
See https://github.com/zsh-users/zsh-autosuggestions/issues/364
2019-04-09 14:45:22 -06:00
Eric Freese
a5dc4a8db4
Fix version in compiled plugin script
2019-04-09 14:43:48 -06:00
Eric Freese
543f2b5477
Support new zsh version
2019-04-09 14:12:35 -06:00
Eric Freese
a36a9aca44
Enable tcsetpgrp to support job control
...
See https://github.com/zsh-users/zsh-docker/pull/15
2019-04-09 13:14:34 -06:00
Eric Freese
cbf0e24b18
Merge pull request #415 from zsh-users/develop
...
v0.5.1
2019-04-03 10:58:45 -06:00
Eric Freese
f94e667f59
v0.5.1
2019-04-03 10:52:43 -06:00
Eric Freese
3ee91c731c
Update changelog for v0.5.1 release
2019-04-03 10:51:48 -06:00
Eric Freese
0b13f663da
Merge pull request #413 from zsh-users/features/faster-prompts
...
Features/faster prompts
2019-04-02 07:39:55 -06:00
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
50579b3371
Move widget definitions inside anonymous function
2018-12-21 23:20:08 -07:00
Eric Freese
66b842579a
Merge pull request #403 from okdana/dana/typeset-g
...
Set global parameters with typeset -g
2018-12-21 23:19:23 -07:00
dana
aee1b10db6
Avoid warn_create_global warnings
2018-12-19 13:38:06 -06:00
Eric Freese
ebc2c07ac8
Merge pull request #402 from zsh-users/fixes/autocd-tab-completion
...
Respect user's set options when running original widget
2018-12-17 17:59:06 -07:00
Eric Freese
e937e89267
Respect user's set options when running original widget
...
Fixes GitHub #379
2018-12-16 21:13:02 -07:00
Eric Freese
11251d97ca
Merge branch 'master' into develop
2018-12-16 20:50:16 -07:00
Eric Freese
41657e3565
Revert async process substitution & completion strategy
...
They're not quite ready. Keep them on a feature branch for now.
2018-12-16 20:49:06 -07:00
Eric Freese
70f36c007d
Finish renaming "default" strategy to "history"
2018-11-24 15:07:08 -07:00
Eric Freese
a7f0106b31
Merge pull request #393 from zsh-users/releases/v0.5.0
...
Releases/v0.5.0
2018-11-24 10:00:59 -07:00
Eric Freese
286656635c
v0.5.0
2018-11-24 09:56:52 -07:00
Eric Freese
0d994d4732
Update changelog for v0.5.0 release
2018-11-24 09:56:52 -07:00
Eric Nielsen
9e4d3c337f
Don't overwrite config with default values
...
otherwise users are obliged to set the config values *after* sourcing
the plugin. They're not able to do it before. Also, re-sourcing the
plugin will reset the values to the defaults again.
See zimfw/zimfw#301
Fixes #335
2018-11-24 09:56:52 -07:00
Eric Freese
f0f1332e6b
Add after_sourcing
hook for tests
...
Is executed immediately after sourcing the plugin
2018-11-24 09:56:52 -07:00
Eric Freese
a78ea16c50
Support fallback strategies by setting array in config
2018-11-24 09:56:30 -07:00
Eric Freese
62f5f14f2f
default => history
2018-11-24 09:56:00 -07:00
Eric Freese
4540304fa0
Reset opts in some functions affected by GLOB_SUBST
...
Should fix GitHub #334
2018-11-19 15:15:48 -07:00
Eric Freese
df6f6f9ff4
Add install directions for Antigen
2018-11-19 15:15:48 -07:00
Eric Freese
4097d6e0ae
Support widgets starting with dashes (ex: -a-widget
)
...
Fixes #337
2018-11-19 15:15:48 -07:00
Eric Freese
822a1f30e0
Async is less reliable in zsh versions < 5.0.8
...
`stty` occasionally hangs (always in CircleCI) inside the async pty.
Disable the tests for now until we can figure out and fix/workaround
this issue.
2018-11-19 15:15:48 -07:00
Eric Freese
0f80f9511d
Fix handling of newline + carriage return in async pty ( #333 )
2018-11-19 15:15:48 -07:00
Eric Freese
4838222dde
Merge branch 'master' into develop
2018-11-18 22:32:17 -07:00
Eric Freese
35c286de9a
Merge pull request #390 from zsh-users/features/no-overwrite-config
...
Features/no overwrite config
2018-11-18 22:19:31 -07:00