Integration with zprezto #37

Closed
samupl opened this Issue Dec 12, 2014 · 17 comments

6 participants

@samupl

It would be nice to be able to use zsh-autosuggestions with prezto (https://github.com/sorin-ionescu/prezto). There are a few issues with it, especially with the 'history-substring-search' module.

A simple, bare install of prezto and zsh-autosuggestions doesn't seem to be working properly.

@faceleg faceleg added the enhancement label Dec 14, 2014
@darfink

Would love this enhancement as well.

@faceleg

Now accepting pull requests!

@faceleg faceleg closed this Feb 17, 2015
@faceleg faceleg reopened this Feb 17, 2015
@N4M3Z

This plugin is of course compatible with prezto, it is simply the matter of a correct load order:

zstyle ':prezto:load' pmodule \
    "history" \
    "completion" \
    "history-substring-search" \
    "syntax-highlighting" \
    "autosuggestions" \

where autosuggestions is simply a git submodule of zsh-autosuggestions within prezto.

@faceleg faceleg closed this May 9, 2015
@samupl

This however seems to break the sorin theme of zpreztorc. The command prompt seems to dissapear at the first shell load (it appears again after the first command has failed/succeeded).

@faceleg faceleg reopened this May 10, 2015
@faceleg

Open for a PR that includes updates to the readme regarding how to make this work well with prezto

@N4M3Z

@samupl I am using powerline, which seems to be working fine. Concerning the load order, you just need to make sure autosuggestions are loaded after completion module, otherwise it modifies the behaviour required by autosuggestions.

@faceleg faceleg closed this May 21, 2015
@breerly

@N4M3Z how did you actually install autosuggestions? I'm trying to get it working w prezto on the minimal theme and having no luck :(

@N4M3Z

Follow my commits here: https://github.com/N4M3Z/zsh-core/commits/module/autosuggestions, or just use my fork of Prezto entirely. The module is initialized like this: N4M3Z/zsh-core@29756c7

@breerly

@N4M3Z any chance you could submit a PR upstream?

@sorin-ionescu
zsh-users member

@breerly There should be a modules/autosuggestions branch in Prezto. Feel free to modify that.

@breerly

@sorin-ionescu any reason we cant get autosuggestions in master?

@sorin-ionescu
zsh-users member

That's the work branch, which was created when I first tested zsh-autosuggestions.

@N4M3Z

@breerly My fork of Prezto is slightly modified and relies mainly on this commit: N4M3Z/zsh-core@21ecc2c, it autoloads modules using functions.zsh, aliases.zsh and bindings.zsh files instead of just init.zsh. As this is not going to make it to Prezto master, you would have to adapt it to suit your needs. But feel free to check out my development branch, there are more modules to choose from.

@sorin-ionescu
zsh-users member

@N4M3Z I don't recall having a discussion with you about splitting files.

@N4M3Z

@sorin-ionescu It was some time ago: sorin-ionescu/prezto#860, I did not actually submit a pull request, but I can sure do that if you are interested.

@breerly

Would love to get this in!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment