fidget.nvim icon indicating copy to clipboard operation
fidget.nvim copied to clipboard

Add Telescope integration

Open j-hui opened this issue 1 year ago • 2 comments

j-hui avatar Dec 25 '23 07:12 j-hui

I filed this issue to remind myself to look into it, but as I'm thinking about it more, I don't actually know what this integration should look like or what it should do.

The general idea is to use Fidget as an interface for browsing notifications (history). But I'm not sure about the following:

  • Fidget is really designed for short, one-liner notifications. Does it even make sense to have this feature, if we're only going to use very little of the preview window? Is there other information we can show to take advantage of the space that Telescope's UI gives us?
  • What should happen when the user "selects" a notification? nvim-notify shows a floating buffer with the notification, but maybe there are other things we can do (especially since, as I already said, Fidget is really meant for notifications with less content)

j-hui avatar Dec 27 '23 03:12 j-hui

Does it even make sense to have this feature

Yes. I often want to see what was said, and/or more details.

Is there other information we can show to take advantage of the space that Telescope's UI gives us?

If there's code or a traceback, it would be nice to show that only in the preview window. This might be difficult: I understand.

What should happen when the user "selects" a notification?

Copy and paste to the system clipboard would be useful. Copy the message header (often an error message), and the contents (e.g. a stacktrace/code) from the preview window, if there's any. This allows me to search for a solution. Often I find myself typing these things out (in other apps/contexts) -- so why not? This could be configurable and enabled by default.

Fidget is really meant for notifications with less content)

I agree. I chose this plugin because it's more subtle than others (less annoying noise), so keeping that way is preferable. Although, it's limiting to not have access to the full, verbose message when I need it -- which makes the perfect argument to support a Telescope preview window: "verbosity upon request", and a handy auto-copy-paste.

I don't actually know what this integration should look like

rcarriga/nvim-notify has a perfect look and the colours are great: it makes the meaning of the message very clear:

Telescope.

xbc5 avatar Jan 21 '24 17:01 xbc5