zbirenbaum / nvterm

NvChad's Official Terminal Plugin ( Unmaintained but still usable and stable), wait for v3.0
GNU General Public License v3.0
181 stars 20 forks source link

Send command without executing `<CR>` #26

Open thenbe opened 1 year ago

thenbe commented 1 year ago

Is there a way to paste the command into the terminal without executing it? For cases where you want the command pasted into the terminal but you'd like to edit it before executing.

AllanChain commented 1 year ago

nvterm hard-coded the "\n":

https://github.com/NvChad/nvterm/blob/29a70ef608a8cc5db3a5fc300d39a39d1a44a863/lua/nvterm/terminal.lua#L62

You can use a similar workaround as https://github.com/NvChad/nvterm/issues/29#issuecomment-1404439662 before the feature is added.