Closed JohnScholes closed 6 years ago
I think we could get this to work even in combination with the current completion wizard.
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.
@JohnScholes try the latest master. I changed the option for Autocomplete to allow selecting "shell" style.
Let me know what you think.
This now feels very good Gil. Thanks.
My pleasure.
I like the unobtrusive way the bash shell does tab-completion. In particular:
Tab navigates among common prefixes with few keystrokes:
Modulo bugs in my above code, this is effectively a 2-state machine with the outer Case Tab: hosting a "Tab received" state.