mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-06 23:30:39 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f154d25fb3 | ||
|
|
e91db46ce0 | ||
|
|
28836f15c5 | ||
|
|
0dd1b7febb |
2
INFO
2
INFO
@@ -1,3 +1,3 @@
|
|||||||
Fish-like fast/unobtrusive autosuggestions for zsh.
|
Fish-like fast/unobtrusive autosuggestions for zsh.
|
||||||
https://github.com/tarruda/zsh-autosuggestions
|
https://github.com/tarruda/zsh-autosuggestions
|
||||||
v0.1.0
|
v0.1.1
|
||||||
|
|||||||
40
README.md
40
README.md
@@ -72,7 +72,6 @@ bindkey '^ ' autosuggest-accept
|
|||||||
|
|
||||||
## Compatibility With Other ZLE Plugins
|
## Compatibility With Other ZLE Plugins
|
||||||
|
|
||||||
|
|
||||||
### [`zsh-syntax-highlighting`](https://github.com/zsh-users/zsh-syntax-highlighting)
|
### [`zsh-syntax-highlighting`](https://github.com/zsh-users/zsh-syntax-highlighting)
|
||||||
|
|
||||||
Source `zsh-autosuggestions.zsh` *before* `zsh-syntax-highlighting`.
|
Source `zsh-autosuggestions.zsh` *before* `zsh-syntax-highlighting`.
|
||||||
@@ -122,6 +121,22 @@ autosuggest_start
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
If you have a problem, please search through [the list of issues on GitHub](https://github.com/tarruda/zsh-autosuggestions/issues) to see if someone else has already reported it.
|
||||||
|
|
||||||
|
|
||||||
|
### Reporting an Issue
|
||||||
|
|
||||||
|
Before reporting an issue, please try temporarily disabling sections of your configuration and other plugins that may be conflicting with this plugin to isolate the problem.
|
||||||
|
|
||||||
|
When reporting an issue, please include:
|
||||||
|
|
||||||
|
- The smallest, simplest `.zshrc` configuration that will reproduce the problem
|
||||||
|
- The version of zsh you're using (`zsh --version`)
|
||||||
|
- Which operating system you're running
|
||||||
|
|
||||||
|
|
||||||
## Uninstallation
|
## Uninstallation
|
||||||
|
|
||||||
1. Remove the code referencing this plugin from `~/.zshrc`.
|
1. Remove the code referencing this plugin from `~/.zshrc`.
|
||||||
@@ -133,6 +148,29 @@ autosuggest_start
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
### Build Process
|
||||||
|
|
||||||
|
Edit the source files in `src/`. Run `make` to build `dist/autosuggestions.zsh` from those source files.
|
||||||
|
|
||||||
|
|
||||||
|
### Pull Requests
|
||||||
|
|
||||||
|
Pull requests are welcome! If you send a pull request, please:
|
||||||
|
|
||||||
|
- Match the existing coding conventions.
|
||||||
|
- Include helpful comments to keep the barrier-to-entry low for people new to the project.
|
||||||
|
- Write tests that cover your code as much as possible.
|
||||||
|
|
||||||
|
|
||||||
|
### Testing
|
||||||
|
|
||||||
|
Testing is performed with [`shunit2`](https://github.com/kward/shunit2) (v2.1.6). Documentation can be found [here](http://shunit2.googlecode.com/svn/trunk/source/2.1/doc/shunit2.html).
|
||||||
|
|
||||||
|
The test script lives at `script/test.zsh`. To run the tests, run `make test`.
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under [MIT license](http://opensource.org/licenses/MIT).
|
This project is licensed under [MIT license](http://opensource.org/licenses/MIT).
|
||||||
|
|||||||
4
dist/autosuggestions.zsh
vendored
4
dist/autosuggestions.zsh
vendored
@@ -1,6 +1,6 @@
|
|||||||
# Fish-like fast/unobtrusive autosuggestions for zsh.
|
# Fish-like fast/unobtrusive autosuggestions for zsh.
|
||||||
# https://github.com/tarruda/zsh-autosuggestions
|
# https://github.com/tarruda/zsh-autosuggestions
|
||||||
# v0.1.0
|
# v0.1.1
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 Thiago de Arruda
|
# Copyright (c) 2013 Thiago de Arruda
|
||||||
# Copyright (c) 2016 Eric Freese
|
# Copyright (c) 2016 Eric Freese
|
||||||
@@ -313,7 +313,7 @@ _zsh_autosuggest_widget_clear() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
zle -N autosuggest-accept _zsh_autosuggest_widget_accept
|
zle -N autosuggest-accept _zsh_autosuggest_widget_accept
|
||||||
zle -N autosuggest-clear _zsh_autosuggest_clear
|
zle -N autosuggest-clear _zsh_autosuggest_widget_clear
|
||||||
|
|
||||||
#------------#
|
#------------#
|
||||||
# Suggestion #
|
# Suggestion #
|
||||||
|
|||||||
@@ -84,4 +84,4 @@ _zsh_autosuggest_widget_clear() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
zle -N autosuggest-accept _zsh_autosuggest_widget_accept
|
zle -N autosuggest-accept _zsh_autosuggest_widget_accept
|
||||||
zle -N autosuggest-clear _zsh_autosuggest_clear
|
zle -N autosuggest-clear _zsh_autosuggest_widget_clear
|
||||||
|
|||||||
Reference in New Issue
Block a user