Giter Club home page Giter Club logo

Comments (6)

Aloxaf avatar Aloxaf commented on June 5, 2024 1

I have added a note to README to tell users load fzf-tab after compinit.

Close if have no question.

from fzf-tab.

romkatv avatar romkatv commented on June 5, 2024

It seems like fast-syntax-highlighting either cannot deal with copied widgets or with widgets whose names start with a period. I suggest filing a bug against fast-syntax-highlighting.

from fzf-tab.

romkatv avatar romkatv commented on June 5, 2024

I do not completely understand why it was changed in the first place or how to fix it.

The previous version of the highlighted code was a hack. It was using undocumented implementation details of zsh-autosuggestions. The new code doesn't rely on implementation details of any project.

from fzf-tab.

Aloxaf avatar Aloxaf commented on June 5, 2024

Umm...It's really difficult to deal with widgets...

I have a new idea: hook _main_complete to call _fzf_tab_complete directly so that I won't suffering from widgets bind hell.
It can't solve this issue.

from fzf-tab.

Aloxaf avatar Aloxaf commented on June 5, 2024

zsh-syntax-highlighting.zsh wraps ZLE widgets. It must be sourced after all custom widgets have been created (i.e., after all zle -N calls and after running compinit). Widgets created later will work, but will not update the syntax highlighting.

I guess you load f-sy-h before call compinit, results in f-sy-h wrap the wrong widget.

I think I can also add such a hint to README so that fzf-tab doesn't need to deal with the situation where compsys hasn't initialized.

from fzf-tab.

b0o avatar b0o commented on June 5, 2024

I guess you load f-sy-h before call compinit, results in f-sy-h wrap the wrong widget.

Ah, this seems to fix the issue for me. Thank you for looking into this, @Aloxaf!

from fzf-tab.

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.