Code Monkey home page Code Monkey logo

Comments (2)

ericbn avatar ericbn commented on August 27, 2024

Hey @kaznovac. 👋

I totally agree with you on the insert-tab false. Having the TAB inserted is annoying and has little to no purpose.

I don't think I like the export LISTMAX=-1 (or the list-prompt '') for a minimal configuration. See zimfw/zimfw#248. Maybe for users annoyed by this, setting up fzf to do a fuzzy find of the completion options seems like a better choice, using Aloxaf/fzf-tab for example. There's also the super carefully done marlonrichert/zsh-autocomplete.

I'm not sure about the completion of filenames on the empty buffer (I'm curious to see if there's a simpler implementation that uses the _files bindable command directly though, as my main hobby with Zim is figuring our simpler implementations with Zsh code... 😄). On the other hand, leaving the insert-tab false alone and allowing a completion on everying when the buffer is empty might be too much, yeah.

from completion.

kaznovac avatar kaznovac commented on August 27, 2024

Hi @ericbn
Thanks for looking into this :)

As a user I find TAB behavior surprising (inconsistent), one would expect that the TAB should traverse menu in similar manner on the empty BUFFER as the Shift+TAB but in reverse order. I've tried the approach above, but I'm not experienced with the ZLE widgets.

Thanks for alternatives, I've tried the fzf (and it's alternative skim - off-topic: rust is amazing language) before but it didn't stick; as I prefer my shell enhancement utilities written in the shell. The zsh-autocomplete is new to me, nicely written for sure, but I find the zimfw/completion && zsh-users/zsh-history-substring-search do a better job (less visual clutter as I type)

List prompt/pager is just minor annoyance unrelated to this, and probably should be left to the user to configure.

I'm not sure about the completion of filenames on the empty buffer (I'm curious to see if there's a simpler implementation that uses the _files bindable command directly though, as my main hobby with Zim is figuring our simpler implementations with Zsh code... 😄).

Looking forward to this, even better if I can help :D

On the other hand, leaving the insert-tab false alone and allowing a completion on everying when the buffer is empty might be too much, yeah.

Maybe something like zimfw/magic-enter

from completion.

Related Issues (8)

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.