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

event expansion vs. tab expansion #37

Open
Ingo60 opened this issue Aug 25, 2015 · 1 comment
Open

event expansion vs. tab expansion #37

Ingo60 opened this issue Aug 25, 2015 · 1 comment
Assignees

Comments

@Ingo60
Copy link
Member

Ingo60 commented Aug 25, 2015

It looks like the jline repl does "event expansion":

frege> !true
[ERROR] Could not expand event
java.lang.IllegalArgumentException: !true: event not found
at jline.console.ConsoleReader.expandEvents(ConsoleReader.java:849)
at jline.console.ConsoleReader.finishBuffer(ConsoleReader.java:700)
at jline.console.ConsoleReader.accept(ConsoleReader.java:2010)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2691)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2372)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2360)
    ....

This is unfortunate, as we have to escape every occurence of ! with a backslash.
Is it possible to turn this off?

On a related note, what would be great to have would be tab expansion.
I am sure there are some predefined tab-handlers that take a list of items or some such, and that list could easily be constructed from the base names of all known symbols, plus the known module names.

@mmhelloworld mmhelloworld self-assigned this Aug 26, 2015
@mmhelloworld
Copy link
Member

I have disabled event expansion so ! should work now. I have updated the snapshot release with this fix.

Regarding tab expansion, jline does support the concept of completers so it should be possible to define one for Frege symbols. I will dig into this.

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

2 participants