michaelb/sniprun

Option to open Terminal in horizontal split

cptchuckles opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
I want to be able to configure SnipRun to open a horizontal split for Terminal instead of a vertical split

Describe the solution you'd like
a config option to make the terminal split horizontally

Describe alternatives you've considered
I usually have to move the terminal window down with <ctrl>wJ and then navigate back up to my text buffer but that's getting old

Additional context
pls

Last commit on dev branch should contain a fix with the following additional options

display_options = {
    terminal_position = "vertical", --# or "horizontal", to open as horizontal split instead of vertical split
    terminal_width = 45,          --# change the terminal display option width (if vertical)
    terminal_height = 20,         --# change the terminal display option height (if horizontal)
    }

You're welcome to try it out, or wait for the next sniprun release (probably a reasonable amount of time)

merged and released in v1.3.8