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

Tab completion #11

Open
jcward opened this issue Aug 12, 2015 · 3 comments
Open

Tab completion #11

jcward opened this issue Aug 12, 2015 · 3 comments

Comments

@jcward
Copy link

jcward commented Aug 12, 2015

Fantastic lib, I just discovered it!

The one thing I miss compared to irb (and bash) is tab completion. If you don't know the fields of a class, this can be enormously helpful. e.g. I type:

String.

And press tab. In irb this shows the possible completions:

String.__id__
String.__send__
String.allocate
String.ancestors
> String.

etc, etc

It uses multiple columns and other fanciness that isn't necessary. But listing the possible completions would make this tool even better. And completions in all cases could be tricky, but class-level and instance-level completions (maybe just parse the symbol before the .) would be a huge help (so I don't have to go reference the docs, which is what interactive mode is all about.)

Any idea how much effort would be involved?

@gene-pavlovsky
Copy link

I second that, tab completion is a must feature for any interpreter.
UNIX tools traditionally use the GNU Readline library for this functionality, perhaps it could be used via externs, or parts of it could be ported to Haxe?

@ianxm
Copy link
Owner

ianxm commented Apr 10, 2016

I agree that tab completion is good but I wouldn't say it's a "must." the python shell doesn't have it. I don't want to have a dependency on readline. ihx isn't a unix tool and should work on OSs that might not have readline.

@gene-pavlovsky
Copy link

Yeah, I knew offering Readline is a big stretch. And I understand it can be a major task to implement from scratch (unless there already are some nice cross-platform libraries for that?).

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

No branches or pull requests

3 participants