Robitx/gp.nvim

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

Opened this issue · 3 comments

teto commented

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 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.

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

@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.