Commit Graph

46 Commits (4cd210b70d20e24946d68a4957cb4a90ff97cc44)

Author SHA1 Message Date
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 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 a78ea16c50 Support fallback strategies by setting array in config 7 years ago
Eric Freese 62f5f14f2f default => history 7 years ago
Eric Freese be6b22b864 Add info to the readme about docker testing image 7 years ago
Eric Freese 72ccee33b4 Pull out separate doc for installation instructions 7 years ago
Benjamin Denhartog b2b9bf3b8c update arch linux installation instructions (now available via pacman)
closes #328
7 years ago
babaorum afc14f79cc make Oh my zsh install works without ZSH_CUSTOM defined 7 years ago
Eric Freese f462410b3c Add zsh version requirements to readme 8 years ago
Eric Freese 9e3f1bd359 Use https protocol instead of git in README instructions
https should work more broadly for folks
8 years ago
Alon Harel 706499838c Update README.md 8 years ago
Sumner Evans 4e72f7a91e Added installation instructions for AUR, Homebrew 8 years ago
Eric Freese 83129dd796 Make asynchronous suggestions disabled by default
While they are still experimental
8 years ago
Eric Freese 7d4a1d9a4a Add enable/disable/toggle widgets to disable suggestion functionality
[GitHub #219]

Intended to be helpful for folks using bracketed-paste-magic and other
widgets that use `zle -U`.
8 years ago
Eric Freese 39762ecd97 Set up circle ci 8 years ago
Eric Freese 06fca77ffb Readme updates for v0.4.0 8 years ago
Eric Freese b377c39d0e Only fetch a new suggestion if buffer has changed 9 years ago
Eric Freese 25f4afb058 Add ZSH_AUTOSUGGEST_IGNORE_WIDGETS array 9 years ago
Lorenzo Bolla a9c8efa048 Update README 9 years ago
Tassilo Horn ca70612d3c Document caveats of match_prev_cmd strategy
This strategy relies on the history being exactly in the order in which
commands have been entered.  Therefore, options like suppressing
duplicates or expiring duplicates first will lead to unexpected
suggestions.
9 years ago
Eric Freese 7c688ec20c Add note to readme about PRs going to `develop` branch 9 years ago
Eric Freese d7001f2c34 Fix readme test script reference. 9 years ago
Eric Freese 1ed9155f89 Add Suggestion Strategy section to Configuration section of Readme. 9 years ago
Kordan Ou aa597eea6d Add an autosuggest widget: autosuggest-execute. 9 years ago
Eric Freese 8935a39e9b Remove plugin compatibility section from readme 9 years ago
Eric Freese 985de56f6e Update asciinema to reflect new repo 9 years ago
Eric Freese dd54925b06 Update URL references after repo move to zsh-users 9 years ago
Eric Freese aa5ceee256 Make asciinema a bit smaller. 9 years ago
Eric Freese 113ca0ad10 Add asciinema recording to README 9 years ago
Eric Freese 2461a98857 Fix segfaults once and for all? 9 years ago
Eric Freese 5e419da326 Remove list of modify widgets and make 'modify' the default behavior. 9 years ago
Eric Freese b49d002888 [README] Add example of minimal .zshrc. 9 years ago
Eric Freese 1a38fbf6a5 [README] Add note about workaround for bpm bug. 9 years ago
Eric Freese 0ae5907294 [README] Add note about Oh My Zsh paste bug. 9 years ago
Eric Freese 03bd381112 Add `.plugin` file and installation instructions for Oh My Zsh (#104). 9 years ago
Eric Freese 00bd0e9125 Use `add-zsh-hook` to remove need to call `autosuggest_start`. 9 years ago
Eric Freese 48d2dc1091 Remove absolute link in readme. 9 years ago
Eric Freese e91db46ce0 Add Development section to README (#106) 9 years ago
Eric Freese 0dd1b7febb Add Troubleshooting section to README 9 years ago
Eric Freese 6a4b2b3865 Update README 9 years ago
Eric Freese 775dd20706 Rewrite 9 years ago
Thor Erik c044d06f70 Avoid bell on all keysrtokes
Due to using a forked version of zsh-syntax-highlighting, you also get along the bug that causes a [bell on every keystroke][1], using zsh-users/zsh-syntax-highlighting instead I avoided this bug.

[1]: https://github.com/zsh-users/zsh-syntax-highlighting/issues/200
10 years ago
Jakub Jirutka a796ce5bdb Readme: extend section Known issues (closes #14) 10 years ago
Jakub Jirutka 6de948c9c5 Add widget autosuggest-execute-suggestion
It basically means this: go to the end of line (i.e. accept the
suggestion) and then hit enter.
10 years ago
Jakub Jirutka 47283c2619 Update readme 10 years ago
Jakub Jirutka 08f3b3148d Rename README.mkd to README.md
.md is a preferred file extension for Markdown files.
10 years ago