Giter Site home page Giter Site logo

Comments (18)

nicoulaj avatar nicoulaj commented on May 20, 2024

Do you know about auto-fu.zsh ? It seems to be close to this, but uses completion system instead of history.

from zsh-history-substring-search.

guidovansteen avatar guidovansteen commented on May 20, 2024

@sunaku: I do not think this would be of much interest to me. I am not a fan of suggestions I have not asked for. When I suspect the long command is somewhere in my history file I just press repeatedly until the relevant command appears.

Good luck with the project though!

@nicoulaj: I am afraid the completion system works quite different from our history search.

from zsh-history-substring-search.

sunaku avatar sunaku commented on May 20, 2024

Thanks for the feedback guys.

from zsh-history-substring-search.

sorin-ionescu avatar sorin-ionescu commented on May 20, 2024

I like the new Fish auto suggestions.

from zsh-history-substring-search.

joe9 avatar joe9 commented on May 20, 2024

Check out predict-on zsh plugin.

from zsh-history-substring-search.

guidovansteen avatar guidovansteen commented on May 20, 2024

Thanks for this notification!

Guido van Steen

On Wed, Apr 3, 2013 at 4:33 PM, joe9 [email protected] wrote:

Check out predict-on zsh plugin.


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-15840110
.

from zsh-history-substring-search.

sunaku avatar sunaku commented on May 20, 2024

@joe9 thanks, that's pretty cool. ✨ Now, if only I could configure predict-on to: 🐣

  • perform a substring search (match anywhere, not just at beginning of command line)
  • be toggleable by pressing Ctrl-Z (maybe it could set a $ZSH_PREDICT_ON flag) found an answer
  • show a list of all matching commands (like a normal ZSH completion menu)

from zsh-history-substring-search.

sorin-ionescu avatar sorin-ionescu commented on May 20, 2024

@nicoulaj, auto-fu conflicts with zsh-syntax-highlighting and zsh-history-substring-search.

from zsh-history-substring-search.

sorin-ionescu avatar sorin-ionescu commented on May 20, 2024

Neither zsh-syntax-highlighting nor zsh-history-substring-search play well with predict-on. The former does not highlight and the latter searches for the entire line — both the typed portion and the prediction. Fish only searches for the typed portion of the line.

Use the following to enable predict-on.

autoload -U predict-on
zle -N predict-on
zle -N predict-off
bindkey '^X^Z' predict-on
bindkey '^X^A' predict-off
zstyle ':predict' verbose 'yes'

The key bindings are arbitrary. Better ones ought to be found.

from zsh-history-substring-search.

sunaku avatar sunaku commented on May 20, 2024

@tarruda has ported Fish's autosuggestions to ZSH ✨ in https://github.com/tarruda/zsh-autosuggestions

from zsh-history-substring-search.

tarruda avatar tarruda commented on May 20, 2024

While the basic autosuggestion infrastructure is in place, the widget is very alpha. It would be great if a zle expert could send some patches

from zsh-history-substring-search.

tarruda avatar tarruda commented on May 20, 2024

zsh-autosuggestions should be more stable now. I also added some tweaks to make it play nicely with zsh-syntax-highlighting

from zsh-history-substring-search.

nicoulaj avatar nicoulaj commented on May 20, 2024

@tarruda your project is pretty cool, please get in touch if you want to host it in the zsh-users organization

from zsh-history-substring-search.

tarruda avatar tarruda commented on May 20, 2024

@nicoulaj sounds good, what do I have to do?

from zsh-history-substring-search.

nicoulaj avatar nicoulaj commented on May 20, 2024

@tarruda sorry for the delay, I forgot about this. I gave you the rights on the organization, so you can now transfer or create repositories in the organization. The only rules are:

  • All projects must be related to zsh ;)
  • All projects must be general purpose (no dotfiles or personal stuff like that)
  • If you go the organization settings page, then "teams" you can see we use teams for dealing with access rights

Welcome!

from zsh-history-substring-search.

sorin-ionescu avatar sorin-ionescu commented on May 20, 2024

@nicoulaj, should Prezto be part of @zsh-users or should I keep it under my name? Do you consider it general enough?

from zsh-history-substring-search.

nicoulaj avatar nicoulaj commented on May 20, 2024

Yes, of course it fits in this organization. I gave you the rights too.

Also, please note I'm not forcing anyone, I created this organization so that pet projects like this can be grouped together and have more visibility, People are free to come and go. So far it seems to work quite fine.

from zsh-history-substring-search.

sorin-ionescu avatar sorin-ionescu commented on May 20, 2024

Thank you. I'll keep it under my name for now, at least until I can tag it
v1.0.

On Mon, Dec 2, 2013 at 1:58 PM, Julien Nicoulaud
[email protected]:

Yes, of course it fits in this organization. I gave you the rights too.

Also, please note I'm not forcing anyone, I created this organization so
that pet projects like this can be grouped together and have more
visibility, People are free to come and go. So far it seems to work quite
fine.


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-29646420
.

from zsh-history-substring-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.