reader icon indicating copy to clipboard operation
reader copied to clipboard

W3M keymap results in font color change

Open cameronj86 opened this issue 4 months ago • 0 comments

Initially, I tried replacing gotbleu's keymapping from: keymap R COMMAND "READ_SHELL 'readable $W3M_URL -p html-title,html-content > /tmp/readable.html' ; LOAD /tmp/readable.html" to: keymap \\\r COMMAND "READ_SHELL 'reader $W3M_URL -p html-title,html-content > /tmp/readable.html' ; LOAD /tmp/readable.html" but it ends up w/ a blank page.

The default command from the README works as a keymap but when I include less as a pager, the formatting gets thrown off (black font turned into gray font that was illegible on certain backgrounds).

I believe this was due to output being ran through less 2x... w3m uses less, and then my keymapping used less as well

Here is what I've settled on for now: keymap R EXEC_SHELL 'reader -o $W3M_URL|less'

-o to strip the formatting so that less doesn't try anything funky.

If anyone has any suggestions/workarounds to keep the pretty formatting and the default font colors, please share.

cameronj86 avatar Oct 17 '24 19:10 cameronj86