MilesMcBain / paint

paint the data
Other
139 stars 6 forks source link

Option for limiting number of colums printed #13

Closed matthew-phelps closed 2 years ago

matthew-phelps commented 2 years ago

It would be nice to have an option to limit the number of columns that are printed, with perhaps a message naming variables omitted (like the default tibble print, or the truc.cols = TRUE option for print.data.table). I often work with very wide data.tables and don't want to have to scroll up a lot every time I print out.

I love this package by the way, so thank you for making it!

MilesMcBain commented 2 years ago

One of the main inspirations for this package was my frustration with the truncation behaviour of tibbles. So I can't see myself getting motivated to implement something like that.

I too often work with data that exceed my terminal height when painted, one thing that helps is to bind keyboard shortcuts to scroll the terminal up and down, so you can view the output you want without switching to another pane, or taking your hands off the keyboard.

This is easy to do in VSCode, but not possible in RStudio AFAIK.

matthew-phelps commented 2 years ago

Fair enough, and thanks for the reply. I might try if I can mimic the VSCode behaviour via qmk and my keyboard, but that will probably require the terminal to be in focus in RStudio