Error: "Could not derive terminal width"
Closed this issue ยท 3 comments
Really nice lil preview tool. Thank you for making it ๐
I sometimes use tool called ranger which offers paned file browsing and previews. Using mdv
was a no brainer and is much nicer than the single colored node js one I was using before. However, now when previewing markdown files within Ranger, I see the following error at the top of each file
!!! Could not derive your terminal width !!!
Which I am assuming is coming from mdv
but am not 100% sure. I filed an issue on Ranger's repo and am cross posting here. Any insights would be appreciated!
Hi, thanks, commented there regarding how to workaround it and what I'll do to fix it. Let me know if the export COLUMNS and LINES would work for you...
huh, does ranger unset the COLUMNS export?
could you give it a shot and try this:
within markdownviewer.py search the line term_columns, term_rows = envget('COLUMNS'), envget('LINES')
(around 193 currently) and change the word "COLUMNS" to "FUBAR"
then export FUBAR=50
before calling ranger.
still error or resolved? If so I'll add an alternative to $COLUMNS...