Git Product home page Git Product logo

Comments (8)

oantolin avatar oantolin commented on June 14, 2024 1

Sure I'll look into it. I think probably just after every change to the minibuffer contents, we should test-completion, and if it is a full candidate, update the preview. I'll test that and make a pull request if it seems good enough.

from consult.

oantolin avatar oantolin commented on June 14, 2024 1

Thanks! You beat me to it. I just tested it and works great, including the tricky case of tab cycling which the previous approach wouldn't work for.

from consult.

minad avatar minad commented on June 14, 2024

Yeah. If you have time to clean that up please do. This is a mess. I advise three functions but I have no idea what I am actually doing.

from consult.

oantolin avatar oantolin commented on June 14, 2024

How would you feel about lumping in embark-completing-read with the default completion? You can just change (eq completing-read-function #'completing-read-default) to (memq completing-read-function '(completing-read-default embark-completing-read)).

from consult.

minad avatar minad commented on June 14, 2024

@oantolin I guess that would be okay. Btw do you know if there is a better way to distinguish icomplete from default? Icomplete does not overwrite the function.

from consult.

oantolin avatar oantolin commented on June 14, 2024

@oantolin I guess that would be okay. Btw do you know if there is a better way to distinguish icomplete from default? Icomplete does not overwrite the function.

No, I don't know of a better way. I would have done it the same way you did.

from consult.

minad avatar minad commented on June 14, 2024

See here 00c820d. I would like if we could find a better way to do this detection, but for now it is okay.

from consult.

oantolin avatar oantolin commented on June 14, 2024

Perfect, thanks! It would be nice to have a cleaner way of detecting the various completion systems, but this isn't too bad.

from consult.

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.