summaryrefslogtreecommitdiffstats
path: root/docs/_posts/2014-11-11-lofi-mode.md
blob: b6ca628980aab41d0f688976549b18720b831a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: post
title: Added "lo-fi" mode
excerpt: An alternative way to copy displayed text.
---

*(This change is in v0.7.2+)*

Copying text to the clipboard can be done by marking lines with the
[bookmark hotkeys](https://docs.lnav.org/en/latest/hotkeys.html#bookmarks),
like `m`, and then pressing `c`.  Commands that write to a file,
like [`:write-csv-to`](https://docs.lnav.org/en/latest/commands.html#write-csv-to-path)
accept `/dev/clipboard` as a way to write to the clipboard.  However, if the
native clipboard isn't supported, or you're on an SSH connection, you can
now switch to "lo-fi" mode.  In "lo-fi" mode, lnav drops out of the curses
display and prints the raw text to the terminal.  You can switch to "lo-fi"
mode in a view by pressing `CTRL-L`.  For commands, you can use a dash `-`
to switch to "lo-fi" and print to standard out.

<script id="asciicast-fH4cdgugIJVcPQnSwCmTdaA7f"
        src="https://asciinema.org/a/fH4cdgugIJVcPQnSwCmTdaA7f.js"
        async>
</script>