chrissimpkins/glue

Zsh autocompletion

mbektimirov opened this issue · 2 comments

Is it possible to bring the zsh autocompletion to glue?

Thanks for submitting the issue @mbektimirov. This is a popular request and a feature that I would definitely like to implement. The problem is that I haven't come across a straightforward way to intercept keystrokes and execute external (i.e. non-Glue, non-Sublime Text) code that will perform the completions.

Here are the ways that Sublime Text permits tab completions (that I've come across to date):

  1. Completions - would require re-building the entire autocomplete capability in Glue. Would require testing to confirm that this works within the text input panel. Possibly context sensitive so would not interfere with user's other files that are open in the editor.
  2. Snippets - the same issues as above.

I will continue to look into it to see what I can come up with.

In the meanwhile, Copy-Paste from glue.terminal after an 'ls' seem to work for local directory files. Auto completing path commands sounds like a nightmare :(

I don't have any dev experience with ST packages, but is a regex solution based on user input in the glue CLI possible?