yori icon indicating copy to clipboard operation
yori copied to clipboard

Completion candidate descriptions

Open remkop opened this issue 4 years ago • 2 comments

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?

remkop avatar May 20 '20 21:05 remkop

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.

malxau avatar May 21 '20 01:05 malxau

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.

remkop avatar May 21 '20 01:05 remkop