Code Monkey home page Code Monkey logo

Comments (11)

marlonrichert avatar marlonrichert commented on May 24, 2024

@ztNFny I cannot reproduce this. kill -9 followed by fzf-completion looks identical to me with and without zsh-autocomplete. Can you please update and try again? This might have been fixed already in 3980bb7.

from zsh-autocomplete.

ztNFny avatar ztNFny commented on May 24, 2024

@marlonrichert I'm on the latest version already.
With zsh-autocomplete:
image
Without:
image

I can repoduce that with a minimal .zshrc:

source "$HOME/.zinit/bin/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
zinit ice pick"shell/key-bindings.zsh" src"shell/completion.zsh"
zinit light junegunn/fzf
zinit light marlonrichert/zsh-autocomplete

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 24, 2024

Ah, now I see. It's not broken. It's working as intended. When you press Tab with zsh-autocomplete, it never uses fzf. 🙂

If you want to use fzf's completion with zsh-autocomplete, you need to press CtrlSpace. Please see the Readme: https://github.com/marlonrichert/zsh-autocomplete/blob/master/README.md#with-fzf

Try it: Type kill -9 and press CtrlSpace. You'll get the same result as in your second image.

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 24, 2024

You can disable this behavior and keep the default fzf tab behavior by putting the following into your .zshrc file:

zstyle ':autocomplete:tab:*' completion fzf

from zsh-autocomplete.

ztNFny avatar ztNFny commented on May 24, 2024

is "zstyle ':autocomplete:" something that's defined by this plugin? I can only find information on "zstyle ':completion:" but not autocomplete

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 24, 2024

zstyle is Zsh's mechanism for storing preferences. You can read more about it here: http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fzutil-Module

from zsh-autocomplete.

ztNFny avatar ztNFny commented on May 24, 2024

that one i found, i was wondering about :autocomplete: specifically

from zsh-autocomplete.

ztNFny avatar ztNFny commented on May 24, 2024

what I'm trying to achieve is when I'm in the middle of a word to use zsh-autocomplete (e.g. "ls tes") but with a space prefix to use fzf (e.g. "ls ") but I fail to see where in zsh-autocomplete.zsh that zstyle ':autocomplete:tab:*' completion fzf is handled to derive from it

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 24, 2024

that one i found, i was wondering about :autocomplete: specifically

That's the prefix/namespace I use for zsh-autocomplete.

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 24, 2024

what I'm trying to achieve is when I'm in the middle of a word to use zsh-autocomplete (e.g. "ls tes") but with a space prefix to use fzf (e.g. "ls ") but I fail to see where in zsh-autocomplete.zsh that zstyle ':autocomplete:tab:*' completion fzf is handled to derive from it

That's not currently doable out of the box. If that's a feature you want, please open a new issue for it. 🙂

from zsh-autocomplete.

marlonrichert avatar marlonrichert commented on May 24, 2024

@ztNFny There's an issue for this now: #51. Let's discuss there.

from zsh-autocomplete.

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.