akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.06k stars 170 forks source link

[Feature] Add :ToggleTermSendCurrentLineOrSelection #551

Closed isentropic closed 4 months ago

isentropic commented 4 months ago

It would be good to :ToggleTermSendCurrentLineOrSelection for a more seamless repl develpment. It should send the current line, or if in a visual selection, send the selction instead

akinsho commented 4 months ago

I think there is already some sort of functionality like this contributed by some other users might not be exactly what you want but as I mention in the README REPL functionality is out of scope as far as I'm concerned but if you are willing to raise a PR I'm happy to have a look