oh-my-zsh plugin #47
faceleg
commented
Apr 7, 2015
This is possible.
The plugin itself has issues however, which should be fixed before we take steps that would cause further users to be bitten by the current brokenness.
Treri
commented
Nov 26, 2015
I wrote a simple wrap for zsh-autosuggestion, and just put few lines in plugin.
Now zsh-autosuggestion.plugin.zsh is just a link to autosuggestion.zsh.
Can me make zsh-autosuggestion.plugin.zsh a real file, and add below lines or something like in it?
source ./autosuggestions.zsh
# if you use zsh-autosuggestions plugin, don't delete below lines
# don't highlight word after cursor
export AUTOSUGGESTION_HIGHLIGHT_CURSOR=0
# complete entire suggestion with right arrow
export AUTOSUGGESTION_ACCEPT_RIGHT_ARROW=1
# Enable autosuggestions automatically.
zle-line-init() {
zle autosuggest-start
}
zle -N zle-line-init
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey!
I was wondering if it was possible to add this to the oh-my-zsh plugins?
I know absolutely nothing about how zsh works, but if someone can point me in the right direction, I'm sure I could throw together a PR for oh-my-zsh if you don't mind.
Can history-substring-search be used as inspiration?
https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/history-substring-search