Robitx / gp.nvim

Gp.nvim (GPT prompt) Neovim AI plugin: ChatGPT sessions & Instructable text/code operations & Speech to text [OpenAI]
MIT License
537 stars 50 forks source link

feat: configure initial search term for finder #48

Closed divramod closed 8 months ago

divramod commented 8 months ago

i am currently using the finder a lot and am in the process of systematically naming my chats. it is kind of like a diary for me and i can go back to the chats, if i have the same questions again. really awesome stuff.

the first lines of my chats usually look like this:

# topic: ... (original)
# [nvim] create autocmd for script
# [ts] how to ...
# [some] ...

the finder opens with the search term topic, what isn't convinient anymore for me, since i changed all the topics h1 / first lines to match my title style.

it would be nice, to be able to configure the initial search term in the setup function - which is currently topic - to something the user wants. for me it would be # \[.

Robitx commented 8 months ago

@divramod hey, try adding chat_finder_pattern = "# \\[", to your conf.

divramod commented 8 months ago

thx thx thx :-)