sniprun icon indicating copy to clipboard operation
sniprun copied to clipboard

Feature request: More display options for live mode

Open yingzhu146 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Live mode is especially useful when parsing large data structures (e.g. tables, many newline delimited outputs etc) interactively. This is my primary usecase (load file/stdin into var via SnipRun, then enable live mode to parse it down really quickly - I do this via https://github.com/gpanders/ijq or https://github.com/akavel/up (via --unsafe-full-throttle) (and https://github.com/HiPhish/awk-ward.nvim/for awk in neovim) right now, but ideally would love to do all of this in neovim with sniprun.

My understanding is that Live mode is always using virtual text - I'd much rather have a vertical split here since I very rarely use live mode with single line output lines

Describe the solution you'd like I'd love SnipLive to open a vertical split which automatically updates with the output - i don't need to see the code that has been run

yingzhu146 avatar Jun 19 '22 16:06 yingzhu146

Sounds like a good idea

michaelb avatar Jun 20 '22 20:06 michaelb

fixed by #182 , this should not even require for you to wait for the next release, if you're only using the live_display key. (composable display modes in the same PR will need a release though)

there's documentation in the live_mode special doc, but in your use case I can already provide a configuration key:

live_display = {"Terminal"}

michaelb avatar Oct 08 '22 16:10 michaelb