Skip to content

How to I always default to the raw text view mode? #1480

Answered by piotr-dobrogost
tanin47 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm afraid you can't simply set it as a part of configuration i.e. as the default.

I thought of creating an alias with alias mylnav='lnav -c ":set-text-view-mode raw"' and then using mylnav instead of lnav but I'm not sure if the command is run after or before opening files and whether or not it makes difference here. In fact I don't know how to check the current view mode (raw or rendered) to check if it works.

You could create a script and install it in formats directory with short name so it would be easier to type. For instance when saved with the name r.lnav you can execute it simply by typing |r in lnav.

If we knew how :set-text-view-mode raw changes SQL tables you could install .sql

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tanin47
Comment options

Answer selected by tanin47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants