nixpulvis / oursh

Your comrade through the perilous world of UNIX.
http://nixpulvis.com/oursh/oursh
MIT License
67 stars 6 forks source link

Modern Completion Framework #48

Open nixpulvis opened 5 years ago

nixpulvis commented 5 years ago

Implement a framework for both built in and user added completions. This will be part of the a revised completion module, that retains the POSIX shell mode, but allows for much more in addition to the standard path, executable, ...

For example:

This may be used in the modern language as well as a more bash/zsh like extension of the POSIX base.

nixpulvis commented 1 year ago

Example use cases for generic solution:

  1. Basic shell, obviously
  2. Little calculator application
  3. Some fun AI chatbot

I think it's worth keeping other use cases in mind here (even if we never make them) to help guide the interface design. Like, what does completion for a chatbot (RE)PL (or is it P((RE)+P) lol, escape analysis really is* a bitch) look like anyway? Why am I grouping the R and the E in REPL... a story for another day I hope.