sniprun icon indicating copy to clipboard operation
sniprun copied to clipboard

Enter LongTempFloatingWindow to scroll vertically and horizontally

Open curiousponge opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. When working with pandas DataFrames, I cannot see the lines and columns beyond my monitor size.

Describe the solution you'd like The solution could be that we would be able to enter the floating windows to scroll both vertically and horizontally in long outputs. That is already implemented in magma.nvim, so it is definitely possible.

Describe alternatives you've considered An alternative could be entering the command line output in "Classic" mode, however that also does not work as expected, e.g. the lines are always wrapped and I also cannot enter the cmdline output window.

curiousponge avatar Oct 16 '22 06:10 curiousponge

It's a nice idea. currently no display mode in sniprun can display conveniently huge outputs. (I've been thinking of adding a display mode that would just pipe to a file, though).

I'm not sure I can find the time to work on this very soon,so depending on how time presses, and your knowledge of neovim scripting, I can suggest in the meantime:

  1. (more difficult) Use the display mode 'Api' (doc) to display results into a scrollable floating window
  2. (very easy) Use the display mode 'Api' to print the results into a file that you would have opened/self-refreshing in another split/editor

michaelb avatar Oct 16 '22 09:10 michaelb