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

Repl completion should show options rather than cycling. #36

Open
rosejn opened this issue Jul 18, 2012 · 1 comment
Open

Repl completion should show options rather than cycling. #36

rosejn opened this issue Jul 18, 2012 · 1 comment

Comments

@rosejn
Copy link
Collaborator

rosejn commented Jul 18, 2012

Currently completion in the repl seems to just choose the first available completion option and put that, and then each time you hit it cycles to the next option. This isn't especially helpful. It would be far more useful if it worked like tab completion in bash, especially for exploring new APIs. When you complete and there are multiple possibilities, they should get printed to the repl window so you can see the options.

@ghostandthemachine
Copy link
Owner

this would be nice but a bigger hassle than it might be worth for now. You can see here https://github.com/ghostandthemachine/rsyntaxtextarea/blob/master/RSyntaxTextArea/trunk/src/org/fife/ui/rtextarea/RTextAreaEditorKit.java#L1039 how the DumbCompletion is implemented. In the near future it would be worth ironing out a clojure api for creating new swing Actions like this. To do what you are talking about would require a new DumbCompletion implementation.

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

2 participants