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

`?` keymap help

Open jackMort opened this issue 3 years ago • 2 comments

Discussed in https://github.com/jackMort/ChatGPT.nvim/discussions/43

Originally posted by RhydianJenkins December 29, 2022 Hi.

Thanks so much for this plugin. I use it daily :)

I've noticed that we've recently been blessed with several new features (such as sessions and api request params), and have since also been given several new keybinds to remember.

Could we get something like nerdtree (example below) where the user could press ? to see a quick summary/cheat sheet of all the possible buttons? It's getting hard to track!

image

image

Thanks

jackMort avatar Dec 29 '22 18:12 jackMort

Excellent suggestion from Rhydia!

Urthor avatar Feb 05 '23 00:02 Urthor

Friendly bump!

tricktux avatar May 22 '23 13:05 tricktux

I've been looking for this as well. Another bump from me.

drskoolie avatar Jul 31 '23 00:07 drskoolie

I played a bit with the Nui layout and the way settings can be toggled on and off. Making something similar to toggle help does work. I have something rudimentary working now but it is buggy and I'm struggling with Lua in general. Haven't coded with it that much. I will push to a fork when I have some more time. Maybe in some days.

Moerliy avatar Dec 03 '23 15:12 Moerliy

image image image

It currently only works in edit_with_instructions mode.

I defined an extra_panels table that contains settings and help so it is easier to add more in the future and render them accordingly. I might run into problems with this approach in the chat command because of the sessions tab but I haven't looked into it yet.

There are also some strange bugs with switching between the panels with the TAB key bind. No clue why tbh. Will have a look into it before I make a PR.

Check it out yourself in the main branch of my fork

Edit: The bugs are fixed as far as I'm concerned. Edit 2: Help in chat mode works now too and sessions pane is now toggleable independently from options. PR coming soon.

Moerliy avatar Dec 03 '23 23:12 Moerliy