Dyalog / ride

Cross-platform IDE for Dyalog APL
https://dyalog.github.io/ride
MIT License
204 stars 31 forks source link

Suggestion for tab-completion alternative #347

Closed JohnScholes closed 6 years ago

JohnScholes commented 6 years ago

I like the unobtrusive way the bash shell does tab-completion. In particular:

e9gille commented 6 years ago

I think we could get this to work even in combination with the current completion wizard.

JohnScholes commented 6 years ago

If we implement this, a question arises: should we append a '.' when tab-completing a space name? The bash shell appends a gratuitous terminator (/) to tab-completed directory names. However, many shell commands, such as cd(1) are happy to ignore such terminators when they're not required, so they don't in general cause a problem. The same is not true with superfluous dots after namespaces in Dyalog and so, on balance, I suggest not appending the dot would be less confusing/irritating, even though removing an unwanted one with a single Backspace keystroke would be easy.

e9gille commented 6 years ago

@JohnScholes try the latest master. I changed the option for Autocomplete to allow selecting "shell" style.

Let me know what you think.

JohnScholes commented 6 years ago

This now feels very good Gil. Thanks.

e9gille commented 6 years ago

My pleasure.