nyxt
nyxt copied to clipboard
Display source count
I believe we need a way to display the number of sources in the prompt buffer, otherwise we might be let to believe there is only one source.
The problem is that sources already display the number of suggestions in square brackets.
So how to we display yet another number that's self-explanatory?
Maybe display the names of neighbor sources above and below the current one?
Indeed, could fix together with #2033.
Maybe display the names of neighbor sources above and below the current one?
I don't think I understood your suggestion.
My suggestion is as depicted below. If the sources would be shown right below the input area, it would be clear there are several of them. I suggest a familiar tab-like UI, where it's visible which source is currently active.
No, not tabs, please (٭°̧̧̧ω°̧̧̧٭) They are a pain to implement in HTML...
What I meant in my previous suggestion is showing the source headers for the next and previous source below and above (respectively) the displayed contents of the current source. This way, we can both show that there's something below, while preserving the simplicity of the current interface.
This is not perfect, though—these ghost headers can confuse one about the contents of the current source being less than in fact.
Actually what doesn't convince me about your suggestions is the fact that you'll burn precious lines of the prompt buffer.
Fair enough about tabs. I guess we could do something very simple in the vein of "tabs". List the sources horizontally and highlight the current source.
How about a little button on the left of every source that the user can click on to jump to the next/previous source?
A up and down arrow that they can press?
Since we have some padding to the left, I guess John's suggestion addresses André's concern.
Indeed, I like John's idea.