Giter Club home page Giter Club logo

Comments (4)

guidovansteen avatar guidovansteen commented on August 28, 2024

Thanks for your suggestion. I modelled fizsh after fish version 1.23.1. If I remember correctly, this version of fish did not have autosuggestions.

This being said, autosuggestion for zsh is currently provided by https://github.com/tarruda/zsh-autosuggestions. It seems that Tarruda's package works fine with fizsh after loading it at the end of ~/.fizsh/.fizshrc.

I have never thought of packaging zsh-autosuggestions as a part of fizsh, but it could be worth considering. Or at least I could provide some instructions on how to add zsh-autosuggestions in such a way that it works with fizsh.

from fizsh.

guidovansteen avatar guidovansteen commented on August 28, 2024

The main file of https://github.com/tarruda/zsh-autosuggestions is called "autosuggestions.zsh". In this file the fragment

ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=( complete-word expand-or-complete expand-or-complete-prefix list-choices menu-complete reverse-menu-complete menu-expand-or-complete menu-select accept-and-menu-complete )

yields an error when autocompletion is invoked within fizsh. In fizsh tab is bound to the widget _fizsh-expand-or-complete-and-highlight (and not to expand-or-complete). This is to address zsh-users/zsh-syntax-highlighting#102.

Autocompletion seems to work when the above fragment is changed into:

ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=( complete-word _fizsh-expand-or-complete-and-highlight expand-or-complete-prefix list-choices menu-complete reverse-menu-complete menu-expand-or-complete menu-select accept-and-menu-complete )

from fizsh.

dontdieych avatar dontdieych commented on August 28, 2024

Thanks for explanation. I'll give a shot.

Thanks.

from fizsh.

nift4 avatar nift4 commented on August 28, 2024

The main file of https://github.com/tarruda/zsh-autosuggestions is called "autosuggestions.zsh". In this file the fragment

ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=( complete-word expand-or-complete expand-or-complete-prefix list-choices menu-complete reverse-menu-complete menu-expand-or-complete menu-select accept-and-menu-complete )

yields an error when autocompletion is invoked within fizsh. In fizsh tab is bound to the widget _fizsh-expand-or-complete-and-highlight (and not to expand-or-complete). This is to address zsh-users/zsh-syntax-highlighting#102.

Autocompletion seems to work when the above fragment is changed into:

ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=( complete-word _fizsh-expand-or-complete-and-highlight expand-or-complete-prefix list-choices menu-complete reverse-menu-complete menu-expand-or-complete menu-select accept-and-menu-complete )

That is now broken. Could you maybe post an new solution?

from fizsh.

Related Issues (18)

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.