Giter Site home page Giter Site logo

Comments (4)

piotrmurach avatar piotrmurach commented on May 18, 2024

Hi Giorgio,

Thanks for using the library! The #ask prompt editing capabilities are in the pipeline but not ready yet. Currently #ask works pretty much like gets call. I have only managed to roll out this feature to #multiline prompt in master. This hasn't been released yet and you can play with it using examples/multiline.rb file.

The Reader#read_line already provides the history navigation and text editing capabilities. However, I need to work more on it to account for line prompts etc... Also to bring many goodies over from Readline Editor it will require more work. I really want the Reader to be capable replacement for Readline and I intend to extract it as a standalone dependency. However, I cannot promise when this is going to be done.

I would encourage you to use tty-prompt with the view that the #ask will have history and editing features added in the near future. There is long outstanding issue about adding #autocomplete prompt which will be possible once I've done the editing bit.

from tty-prompt.

solyarisoftware avatar solyarisoftware commented on May 18, 2024

Thanks Piotr for detailed answer!
So I wait a possible Reader replacement of Readline :-)
regards
giorgio

from tty-prompt.

piotrmurach avatar piotrmurach commented on May 18, 2024

Hey Giorgio, I've just released v0.12.0 that replaces ask prompt with a new editing and history buffer features. You don't have to specify :track_history option if you want history buffer. Enjoy!

from tty-prompt.

solyarisoftware avatar solyarisoftware commented on May 18, 2024

Great Piotr!
sorry for delay (I'm so busy at work)
Asap I try new ask features and I'll for sure mention your beautiful work as dependency of a shell to interface ChatScript, I'll publish next weeks at www.github.com/solyaris/rChatScript

thanks again
respect
giorgio

from tty-prompt.

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.