Giter Site home page Giter Site logo

Comments (3)

abinoam avatar abinoam commented on July 18, 2024 1

Hi @doriantaylor , thank you for your comments/suggestions.

I'll probably have time to look at it further by the weekend.

But I can antecipate to you that if it solves an actual problem that you're having, it doesn't break the api and it doesn't raise the code's complexity too much I'll probably welcome your changes 👍

from highline.

doriantaylor avatar doriantaylor commented on July 18, 2024

Great, I'll cook it up.

from highline.

doriantaylor avatar doriantaylor commented on July 18, 2024

Looking over this and I have a couple questions:

  1. Testing strategy: Do I (can I?) use HighLine::Simulate or do I add another manual acceptance test?
  2. The method HighLine#shell_style_lambda does something similar to what I am ultimately trying to do, but only for menus. Perhaps it would make sense to take a step back and look at this more holistically?

I found my way here because I was writing a command-line tool using commander and wanted to implement an umbrella shell command that recycled the other available commands into a readline loop. (To achieve this I had to patch some undesirable behaviour, which the maintainer graciously applied.) Commander, of course, uses HighLine for its readline component, and I want to be able to add tab completion—not just for the commands, but for the options as well.

Given that my desired functionality is at least partially present in HighLine::Menu, I should probably take it into consideration. Nevertheless, I believe it to be still overall useful to be able to access Readline.completion_proc directly, it just looks like a slightly more delicate surgery.

from highline.

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.