Skip to content

W3M keymap results in font color change #25

@cameronj86

Description

@cameronj86

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions