Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port linenoise to D #10

Open
MartinNowak opened this issue Feb 12, 2014 · 7 comments
Open

port linenoise to D #10

MartinNowak opened this issue Feb 12, 2014 · 7 comments
Milestone

Comments

@MartinNowak
Copy link
Collaborator

It's a very small library, so porting this will make a useful D library and gets rid of an external dependency.

@MartinNowak MartinNowak added this to the 0.2 milestone Feb 12, 2014
@John-Colvin
Copy link

I'm in the process of doing this, I'll let you know as it progresses.

@MartinNowak
Copy link
Collaborator Author

Great news, it's a really neat library that may benefit many projects.

@John-Colvin
Copy link

This has been delayed a little as I've changed my focus. Current plan:

  1. Simple unicode-correct (at very least UTF-*) line-editing library in idiomatic D. No global state, can operate multiple terminals independently. Status: Surprisingly easy and currently 50% complete (the logic is mostly done, the API needs designing).

  2. Provide a C API to the library: a simple, small, unicode-aware line editing library is a useful tool outside of D.

  3. Provide the linenoise API, i.e. the library becomes a dropin replacement for linenoise.

@MartinNowak
Copy link
Collaborator Author

👍

@MartinNowak
Copy link
Collaborator Author

Just saw that MongoDB uses an improved version of linenoise, that apparently supports reverse search and Windows.
https://github.com/mongodb/mongo/blob/master/src/mongo/shell/linenoise.cpp

@wilzbach
Copy link
Member

This has been delayed a little as I've changed my focus. Current plan:

@John-Colvin did you ever finish the pure D console library?

@MartinNowak
Copy link
Collaborator Author

I think porting the MongoDB fork of linenoise would be a good option.
Nowadays I'm using fish-shell (which has a nicer auto-completion and history), maybe they have some nice terminal code to port as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants