Closed ardabro closed 5 months ago
Fair point, if its possible, I will change it to Ctrl + Enter
Ctrl+ Enter is not an available option :( https://github.com/charmbracelet/bubbletea/issues/927#issuecomment-1944539893
Hm... what about a command? like: go!<enter>
or even only !<enter
but only at the beginning of new line?
So the sequence would be: <enter>!<enter>
Doesn't sound very reasonable to me
From a semantic standpoint, Ctrl+D (while cursor is placed at the very end in a new line) would be the most reasonable shortcut. It would be perfectly reasonable in the context of the Emacs bindings that bubbletea seems to support out of the box (e.g. Ctrl+A to go to the beginning of the line, etc.). When I first tried tgpt
that was the shortcut that I tried first after realizing that in multiline mode "ctrl+enter" doesn't work.
This also would allow to manually paste texts (while in input mode) that contains a Tab character.
From a semantic standpoint, Ctrl+D (while cursor is placed at the very end in a new line) would be the most reasonable shortcut. It would be perfectly reasonable in the context of the Emacs bindings that bubbletea seems to support out of the box (e.g. Ctrl+A to go to the beginning of the line, etc.). When I first tried
tgpt
that was the shortcut that I tried first after realizing that in multiline mode "ctrl+enter" doesn't work.This also would allow to manually paste texts (while in input mode) that contains a Tab character.
I will change it to Ctrl + D
I think that a configuration file with keyboard shortcut definitions would be the best option, but anyway, TAB for submitting a query isn't the best choice. A programmer hits TAB compulsively and frequently to format code and it inevitably leads to incomplete, useless queries. What about ctrl+Enter?