Compare commits
23 commits
11d17e7fea
...
85919cd1ff
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85919cd1ff | ||
|
|
dc8dcf7425 | ||
|
|
da75fc226d | ||
|
|
a00927c673 | ||
|
|
0e810e5afa | ||
|
|
f9526195c5 | ||
|
|
e52ee8ca55 | ||
|
|
f8907cf32b | ||
|
|
a50468ef4b | ||
|
|
9aceef9646 | ||
|
|
c3d4e576c9 | ||
|
|
95602e2dea | ||
|
|
39aa7bed3a | ||
|
|
27c298cf1a | ||
|
|
a84d78f8b5 | ||
|
|
309d32ac9e | ||
|
|
9908eb49a3 | ||
|
|
2b97cf3b30 | ||
|
|
f29bb7f032 | ||
|
|
c14ad9fc46 | ||
|
|
fc391d6bf6 | ||
|
|
7795a357e6 | ||
|
|
a411ef3e09 |
7 changed files with 33 additions and 7 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# zsh word code files
|
||||||
|
*.zwc
|
||||||
|
|
@ -1,5 +1,12 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v0.7.1
|
||||||
|
- Clear POSTDISPLAY instead of unsetting (#634)
|
||||||
|
- Always reset async file descriptor after consuming it (#630)
|
||||||
|
- Always use builtin `exec` (#628)
|
||||||
|
- Add `history-beginning-search-*-end` widgets to clear widget list (#619)
|
||||||
|
- Switch CI from Circle CI to GitHub Actions
|
||||||
|
|
||||||
## v0.7.0
|
## v0.7.0
|
||||||
- Enable asynchronous mode by default (#498)
|
- Enable asynchronous mode by default (#498)
|
||||||
- No longer wrap user widgets starting with `autosuggest-` prefix (#496)
|
- No longer wrap user widgets starting with `autosuggest-` prefix (#496)
|
||||||
|
|
|
||||||
22
INSTALL.md
22
INSTALL.md
|
|
@ -3,20 +3,23 @@
|
||||||
* [Packages](#packages)
|
* [Packages](#packages)
|
||||||
* [Antigen](#antigen)
|
* [Antigen](#antigen)
|
||||||
* [Oh My Zsh](#oh-my-zsh)
|
* [Oh My Zsh](#oh-my-zsh)
|
||||||
|
* [HomeBrew](#homebrew)
|
||||||
* [Manual](#manual-git-clone)
|
* [Manual](#manual-git-clone)
|
||||||
|
|
||||||
## Packages
|
## Packages
|
||||||
|
|
||||||
| System | Package |
|
| System | Package |
|
||||||
| ------------- | ------------- |
|
| ------------- | ------------- |
|
||||||
|
| Alpine Linux | [zsh-autosuggestions](https://pkgs.alpinelinux.org/packages?name=zsh-autosuggestions) |
|
||||||
| Debian / Ubuntu | [zsh-autosuggestions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-autosuggestions&package=zsh-autosuggestions) |
|
| Debian / Ubuntu | [zsh-autosuggestions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-autosuggestions&package=zsh-autosuggestions) |
|
||||||
| Fedora / CentOS / RHEL / Scientific Linux | [zsh-autosuggestions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-autosuggestions&package=zsh-autosuggestions) |
|
| Fedora / CentOS / RHEL / Scientific Linux | [zsh-autosuggestions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-autosuggestions&package=zsh-autosuggestions) |
|
||||||
| OpenSUSE / SLE | [zsh-autosuggestions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-autosuggestions&package=zsh-autosuggestions) |
|
| OpenSUSE / SLE | [zsh-autosuggestions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-autosuggestions&package=zsh-autosuggestions) |
|
||||||
| Arch Linux / Manjaro / Antergos / Hyperbola | [zsh-autosuggestions](https://www.archlinux.org/packages/zsh-autosuggestions), [zsh-autosuggestions-git](https://aur.archlinux.org/packages/zsh-autosuggestions-git) |
|
| Arch Linux / Manjaro / Antergos / Hyperbola | [zsh-autosuggestions](https://www.archlinux.org/packages/zsh-autosuggestions), [zsh-autosuggestions-git](https://aur.archlinux.org/packages/zsh-autosuggestions-git) |
|
||||||
| NixOS | [zsh-autosuggestions](https://github.com/NixOS/nixpkgs/blob/master/pkgs/shells/zsh/zsh-autosuggestions/default.nix) |
|
| NixOS | [zsh-autosuggestions](https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/zs/zsh-autosuggestions/package.nix) |
|
||||||
| Void Linux | [zsh-autosuggestions](https://github.com/void-linux/void-packages/blob/master/srcpkgs/zsh-autosuggestions/template) |
|
| Void Linux | [zsh-autosuggestions](https://github.com/void-linux/void-packages/blob/master/srcpkgs/zsh-autosuggestions/template) |
|
||||||
| Mac OS | [homebrew](https://github.com/Homebrew/homebrew-core/blob/master/Formula/zsh-autosuggestions.rb) |
|
| Mac OS | [homebrew](https://formulae.brew.sh/formula/zsh-autosuggestions) |
|
||||||
| NetBSD | [pkgsrc](http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/shells/zsh-autosuggestions/README.html) |
|
| NetBSD | [pkgsrc](http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/shells/zsh-autosuggestions/README.html) |
|
||||||
|
| FreeBSD | [pkg](https://cgit.freebsd.org/ports/tree/shells/zsh-autosuggestions) |
|
||||||
|
|
||||||
## Antigen
|
## Antigen
|
||||||
|
|
||||||
|
|
@ -47,6 +50,21 @@
|
||||||
|
|
||||||
3. Start a new terminal session.
|
3. Start a new terminal session.
|
||||||
|
|
||||||
|
## Homebrew
|
||||||
|
|
||||||
|
1. Install command:
|
||||||
|
```sh
|
||||||
|
brew install zsh-autosuggestions
|
||||||
|
```
|
||||||
|
|
||||||
|
2. To activate the autosuggestions, add the following at the end of your .zshrc:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Start a new terminal session.
|
||||||
|
|
||||||
## Manual (Git Clone)
|
## Manual (Git Clone)
|
||||||
|
|
||||||
1. Clone this repository somewhere on your machine. This guide will assume `~/.zsh/zsh-autosuggestions`.
|
1. Clone this repository somewhere on your machine. This guide will assume `~/.zsh/zsh-autosuggestions`.
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ It suggests commands as you type based on history and completions.
|
||||||
|
|
||||||
Requirements: Zsh v4.3.11 or later
|
Requirements: Zsh v4.3.11 or later
|
||||||
|
|
||||||
[](https://circleci.com/gh/zsh-users/zsh-autosuggestions)
|
|
||||||
[](https://gitter.im/zsh-users/zsh-autosuggestions)
|
[](https://gitter.im/zsh-users/zsh-autosuggestions)
|
||||||
|
|
||||||
<a href="https://asciinema.org/a/37390" target="_blank"><img src="https://asciinema.org/a/37390.png" width="400" /></a>
|
<a href="https://asciinema.org/a/37390" target="_blank"><img src="https://asciinema.org/a/37390.png" width="400" /></a>
|
||||||
|
|
@ -53,7 +52,7 @@ For more info, read the Character Highlighting section of the zsh manual: `man z
|
||||||
`ZSH_AUTOSUGGEST_STRATEGY` is an array that specifies how suggestions should be generated. The strategies in the array are tried successively until a suggestion is found. There are currently three built-in strategies to choose from:
|
`ZSH_AUTOSUGGEST_STRATEGY` is an array that specifies how suggestions should be generated. The strategies in the array are tried successively until a suggestion is found. There are currently three built-in strategies to choose from:
|
||||||
|
|
||||||
- `history`: Chooses the most recent match from history.
|
- `history`: Chooses the most recent match from history.
|
||||||
- `completion`: Chooses a suggestion based on what tab-completion would suggest. (requires `zpty` module)
|
- `completion`: Chooses a suggestion based on what tab-completion would suggest. (requires `zpty` module, which is included with zsh since 4.0.1)
|
||||||
- `match_prev_cmd`: Like `history`, but chooses the most recent match whose preceding history item matches the most recently executed command ([more info](src/strategies/match_prev_cmd.zsh)). Note that this strategy won't work as expected with ZSH options that don't preserve the history order such as `HIST_IGNORE_ALL_DUPS` or `HIST_EXPIRE_DUPS_FIRST`.
|
- `match_prev_cmd`: Like `history`, but chooses the most recent match whose preceding history item matches the most recently executed command ([more info](src/strategies/match_prev_cmd.zsh)). Note that this strategy won't work as expected with ZSH options that don't preserve the history order such as `HIST_IGNORE_ALL_DUPS` or `HIST_EXPIRE_DUPS_FIRST`.
|
||||||
|
|
||||||
For example, setting `ZSH_AUTOSUGGEST_STRATEGY=(history completion)` will first try to find a suggestion from your history, but, if it can't find a match, will find a suggestion from the completion engine.
|
For example, setting `ZSH_AUTOSUGGEST_STRATEGY=(history completion)` will first try to find a suggestion from your history, but, if it can't find a match, will find a suggestion from the completion engine.
|
||||||
|
|
|
||||||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
v0.7.0
|
v0.7.1
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Fish-like fast/unobtrusive autosuggestions for zsh.
|
# Fish-like fast/unobtrusive autosuggestions for zsh.
|
||||||
# https://github.com/zsh-users/zsh-autosuggestions
|
# https://github.com/zsh-users/zsh-autosuggestions
|
||||||
# v0.7.0
|
# v0.7.1
|
||||||
# Copyright (c) 2013 Thiago de Arruda
|
# Copyright (c) 2013 Thiago de Arruda
|
||||||
# Copyright (c) 2016-2021 Eric Freese
|
# Copyright (c) 2016-2021 Eric Freese
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue