malxau / yori

Yori is a CMD replacement shell that supports backquotes, job control, and improves tab completion, file matching, aliases, command history, and more.
http://www.malsmith.net/yori/
MIT License
1.24k stars 31 forks source link

Completion candidate descriptions #42

Open remkop opened 4 years ago

remkop commented 4 years ago

This is a follow-up ticket to #41.

Out of the many ways that shells support TAB completion, perhaps fish makes it easiest for users to provide custom completion scripts (with clink's lua a close second). Fish also has the very nice feature that it can display descriptions of options next to the completion candidates. This makes for a very nice user experience.

Would it be possible to provide a similar feature (displaying descriptions next to the completion candidates) in yori?

malxau commented 4 years ago

Can you point me to an illustration/screenshot of how the description feature works? I tried to look for it in the fish documentation and google for it, but I don't think I understand what to look for.

remkop commented 4 years ago

Sure, here is a (bit darkish) screenshot: it shows the completion candidates in a column on the left, and the description for each candidate in a right-aligned separate column on the right.

And this article has some animated gifs: https://spin.atomicobject.com/2017/05/25/fish-shell-overview/

The wikipedia article's screenshot shows a few completions.

More here.