Giter Club home page Giter Club logo

Comments (5)

dgutov avatar dgutov commented on June 21, 2024

Pretty much. I think Bond prefers it that way: https://github.com/cldwalker/bond/blob/master/lib/bond/readline.rb#L4, and it's the most feature-rich completion method. (EDIT: ) Irb also returns better completions this way.

Of course, we could use two prefixes (one for company-mode, and another internal to inf-ruby completion logic), and convert the completions between the two, but I wonder if that's worth the trouble.

from company-inf-ruby.

wasamasa avatar wasamasa commented on June 21, 2024

Are you sure this is not merely something that can be fixed on the visual level like by just displaying everything after the dot if the dot triggered the completion and leaving the prefix alone?

from company-inf-ruby.

dgutov avatar dgutov commented on June 21, 2024

if the dot triggered the completion

In your example above, as likely as not, m triggered completion.

Doing what I mentioned above wouldn't be particularly hard, and it would be "on the visual level". There is a certain simplicity to just displaying what Bond or Irb return, though.

from company-inf-ruby.

wasamasa avatar wasamasa commented on June 21, 2024

Actually, it is triggered after the dot, I merely narrowed the examples down by typing m.

from company-inf-ruby.

dgutov avatar dgutov commented on June 21, 2024

That's one possible scenario, but not the only one, that would allow you to reach the state depicted on the screenshot. If you press C-g and then type m, completion should be triggered again.

from company-inf-ruby.

Related Issues (4)

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.