oh-my-zsh plugin #47

Open
SimenB opened this Issue Mar 31, 2015 · 3 comments

5 participants

@SimenB

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

@dd1994

+1 for this

@faceleg

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.

@faceleg faceleg added the question label Apr 7, 2015
@Treri

I wrote a simple wrap for zsh-autosuggestion, and just put few lines in plugin.

zsh-autosuggestion-conf

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
@ericfreese ericfreese added this to the v0.1.1 milestone Feb 7, 2016
@ericfreese ericfreese removed this from the v0.3.0 milestone Mar 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment