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

use vim.ui.select / vim.ui.input

Open teto opened this issue 1 year ago • 5 comments

would be nice to use neovim primitives for UI, aka:

  • vim.ui.select for chat finder, I can't find how to select an old chat with current one, almost all of my chats have ? as title. It also makes the whole experience more consistant across plugins. The risk is to lose preview though. Probably the selector (telescope or fzf-lua) could be configured to restore the preview image
  • vim.ui.input is already used in GpImage so that's cool

teto avatar Mar 24 '24 21:03 teto

@teto have you looked into why is the topic generation failing? If you drop the topic word from the search bar at the bottom, you should be able to grep chats based on their content.

image

A bare vim.ui.select seems to me kind of unusable in this context (people can have hundreds of chats), so it would have to use telescope (particularly the live_grep which would force another dependency on people - ripgrep). I love telescope, but also don't want to force it on people who don't use it.

Robitx avatar Mar 24 '24 22:03 Robitx

@teto Hey, slowly cleaning up the backlog - what's the current state of this issue? Are topics/ChatFinder working for you?

Robitx avatar Aug 06 '24 19:08 Robitx

@Robitx Have you considered integrating telescope.nvim as a picker? For example, gp.nvim can use it by default if a telescope is installed.

I understand why the custom picker exists, but using the de facto standard picker plugin will significantly increase user experience.

fpohtmeh avatar Oct 25 '24 09:10 fpohtmeh