Eric Freese
1c3e3fd939
Merge pull request #439 from zsh-users/fixes/copy-earlier-word
...
Don't fetch suggestions after copy-earlier-word
6 years ago
Henré Botha
527fd17ffc
Don't fetch suggestions after copy-earlier-word
...
Like {up,down}-line-or-beginning-search, this widget relies on
`$LASTWIDGET` being set to function correctly on subsequent invocations.
When asynchronous suggestions are enabled, and the widget triggers a
suggestion to be fetched, `autosuggest-suggest` will be called and
$LASTWIDGET will be set to it.
6 years ago
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.
6 years ago
Eric Freese
733abd4af0
Merge pull request #419 from zsh-users/develop
...
v0.5.2
6 years ago
Eric Freese
152d2c6b31
v0.5.2
6 years ago
Eric Freese
528e338e57
Update changelog for v0.5.2 release
6 years ago
Eric Freese
937d6fc241
Merge pull request #418 from zsh-users/features/manual-rebind
...
Allow disabling of automatic widget re-binding
6 years ago
Eric Freese
b9fee8a324
Allow disabling of automatic widget re-binding
...
Addresses github #411
6 years ago
Eric Freese
db290c518b
cleanup: Leave max size config unset by default to match other options
6 years ago
Eric Freese
d8ba53678e
cleanup: Use `+` param expansion flag in arithmetic context
6 years ago
Eric Freese
4cd210b70d
Fix async suggestions when SH_WORD_SPLIT is set
6 years ago
Eric Freese
586b51366b
Merge pull request #417 from zsh-users/features/async-process-substitution
...
Refactor async mode to no longer use zpty
6 years ago
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
6 years ago
Eric Freese
a5dc4a8db4
Fix version in compiled plugin script
6 years ago
Eric Freese
543f2b5477
Support new zsh version
6 years ago
Eric Freese
a36a9aca44
Enable tcsetpgrp to support job control
...
See https://github.com/zsh-users/zsh-docker/pull/15
6 years ago
Eric Freese
cbf0e24b18
Merge pull request #415 from zsh-users/develop
...
v0.5.1
6 years ago
Eric Freese
f94e667f59
v0.5.1
6 years ago
Eric Freese
3ee91c731c
Update changelog for v0.5.1 release
6 years ago
Eric Freese
0b13f663da
Merge pull request #413 from zsh-users/features/faster-prompts
...
Features/faster prompts
6 years ago
romkatv
4a82ff1ead
speed up widget rebinding by removing redundant array subscripts
6 years ago
Eric Freese
f76472272e
cleanup: Remove unnecessary braces
6 years ago
Eric Freese
50579b3371
Move widget definitions inside anonymous function
7 years ago
Eric Freese
66b842579a
Merge pull request #403 from okdana/dana/typeset-g
...
Set global parameters with typeset -g
7 years ago
dana
aee1b10db6
Avoid warn_create_global warnings
7 years ago
Eric Freese
ebc2c07ac8
Merge pull request #402 from zsh-users/fixes/autocd-tab-completion
...
Respect user's set options when running original widget
7 years ago
Eric Freese
e937e89267
Respect user's set options when running original widget
...
Fixes GitHub #379
7 years ago
Eric Freese
11251d97ca
Merge branch 'master' into develop
7 years ago
Eric Freese
41657e3565
Revert async process substitution & completion strategy
...
They're not quite ready. Keep them on a feature branch for now.
7 years ago
Eric Freese
70f36c007d
Finish renaming "default" strategy to "history"
7 years ago
Eric Freese
a7f0106b31
Merge pull request #393 from zsh-users/releases/v0.5.0
...
Releases/v0.5.0
7 years ago
Eric Freese
286656635c
v0.5.0
7 years ago
Eric Freese
0d994d4732
Update changelog for v0.5.0 release
7 years ago
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
7 years ago
Eric Freese
f0f1332e6b
Add `after_sourcing` hook for tests
...
Is executed immediately after sourcing the plugin
7 years ago
Eric Freese
a78ea16c50
Support fallback strategies by setting array in config
7 years ago
Eric Freese
62f5f14f2f
default => history
7 years ago
Eric Freese
4540304fa0
Reset opts in some functions affected by GLOB_SUBST
...
Should fix GitHub #334
7 years ago
Eric Freese
df6f6f9ff4
Add install directions for Antigen
7 years ago
Eric Freese
4097d6e0ae
Support widgets starting with dashes (ex: `-a-widget`)
...
Fixes #337
7 years ago
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.
7 years ago
Eric Freese
0f80f9511d
Fix handling of newline + carriage return in async pty ( #333 )
7 years ago
Eric Freese
4838222dde
Merge branch 'master' into develop
7 years ago
Eric Freese
35c286de9a
Merge pull request #390 from zsh-users/features/no-overwrite-config
...
Features/no overwrite config
7 years ago
Eric Freese
be6b22b864
Add info to the readme about docker testing image
7 years ago
Eric Freese
69d7fa14d3
Build docker image for running tests
...
Published at `ericfreese/zsh-autosuggestions-test`.
Contains:
- Ruby 2.5.3
- Supported zsh versions 4.3.11 through 5.6.2
- Test ruby dependencies
Also updates Circle CI config to use built docker image.
7 years ago
Eric Nielsen
e61442161e
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
7 years ago
Eric Freese
4b28d92e01
Add `after_sourcing` hook for tests
...
Is executed immediately after sourcing the plugin
7 years ago
Eric Freese
b512a1b040
Merge branch 'master' into develop
7 years ago
Eric Freese
affe7c687e
Run circle-ci upgrade script
...
From: https://raw.githubusercontent.com/CircleCI-Public/circleci-config-generator/9979b712033a072c3135aafb3c06e252c4e791f1/cci-config-generator.sh
7 years ago