2013-07-14 18:25:04 +00:00
|
|
|
|
2013-08-26 14:20:01 +00:00
|
|
|
.. _hotkeys:
|
|
|
|
|
2013-07-26 03:41:42 +00:00
|
|
|
Hotkey Reference
|
|
|
|
================
|
|
|
|
|
|
|
|
.. |ks| raw:: html
|
|
|
|
|
|
|
|
<kbd>
|
|
|
|
|
|
|
|
.. |ke| raw:: html
|
|
|
|
|
|
|
|
</kbd>
|
|
|
|
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<style>
|
|
|
|
kbd {
|
|
|
|
padding: 0.1em 0.6em;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
font-size: 11px;
|
|
|
|
font-family: Arial,Helvetica,sans-serif;
|
|
|
|
background-color: #f7f7f7;
|
|
|
|
color: #333;
|
|
|
|
-moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset;
|
|
|
|
-webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset;
|
|
|
|
box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset;
|
|
|
|
-moz-border-radius: 3px;
|
|
|
|
-webkit-border-radius: 3px;
|
|
|
|
border-radius: 3px;
|
|
|
|
display: inline-block;
|
2013-07-26 15:23:45 +00:00
|
|
|
margin: 0 0.1em 0.1em 0.1em;
|
2013-07-26 03:41:42 +00:00
|
|
|
text-shadow: 0 1px 0 #fff;
|
|
|
|
line-height: 1.4;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2014-03-28 13:55:24 +00:00
|
|
|
This reference covers the keys used to control **lnav**. Consult the `built-in
|
|
|
|
help <https://github.com/tstack/lnav/blob/master/src/help.txt>`_ in **lnav** for
|
|
|
|
a more detailed explanation of each key.
|
2013-08-26 14:20:01 +00:00
|
|
|
|
2013-07-26 15:23:45 +00:00
|
|
|
Spatial Navigation
|
|
|
|
------------------
|
2013-07-26 03:41:42 +00:00
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
:header-rows: 1
|
2020-05-07 14:08:59 +00:00
|
|
|
:widths: 6 6 6 20
|
2013-07-26 03:41:42 +00:00
|
|
|
|
|
|
|
* - Keypress
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- Command
|
|
|
|
* - |ks| Space |ke|
|
|
|
|
- |ks| PgDn |ke|
|
|
|
|
-
|
|
|
|
- Down a page
|
|
|
|
* - |ks| b |ke|
|
|
|
|
- |ks| Backspace |ke|
|
|
|
|
- |ks| PgUp |ke|
|
|
|
|
- Up a page
|
|
|
|
* - |ks| j |ke|
|
|
|
|
- |ks| Return |ke|
|
|
|
|
- |ks| ↓ |ke|
|
|
|
|
- Down a line
|
|
|
|
* - |ks| k |ke|
|
|
|
|
- |ks| ↑ |ke|
|
|
|
|
-
|
|
|
|
- Up a line
|
|
|
|
* - |ks| h |ke|
|
|
|
|
- |ks| ← |ke|
|
|
|
|
-
|
2018-03-28 05:11:57 +00:00
|
|
|
- Left half a page. In the log view, pressing left while at the start of
|
|
|
|
the message text will reveal the source file name for each line.
|
|
|
|
Pressing again will reveal the full path.
|
2015-05-12 13:37:41 +00:00
|
|
|
* - |ks| Shift |ke| + |ks| h |ke|
|
|
|
|
- |ks| Shift |ke| + |ks| ← |ke|
|
|
|
|
-
|
|
|
|
- Left ten columns
|
2013-07-26 03:41:42 +00:00
|
|
|
* - |ks| l |ke|
|
|
|
|
- |ks| → |ke|
|
|
|
|
-
|
|
|
|
- Right half a page
|
2015-05-12 13:37:41 +00:00
|
|
|
* - |ks| Shift |ke| + |ks| l |ke|
|
|
|
|
- |ks| Shift |ke| + |ks| → |ke|
|
|
|
|
-
|
|
|
|
- Right ten columns
|
2013-07-26 03:41:42 +00:00
|
|
|
* - |ks| Home |ke|
|
2014-03-28 13:55:24 +00:00
|
|
|
- |ks| g |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
-
|
|
|
|
- Top of the view
|
|
|
|
* - |ks| End |ke|
|
2014-03-28 13:55:24 +00:00
|
|
|
- |ks| G |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
-
|
|
|
|
- Bottom of the view
|
|
|
|
* - |ks| e |ke|
|
2013-07-26 15:23:45 +00:00
|
|
|
- |ks| Shift |ke| + |ks| e |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
-
|
|
|
|
- Next/previous error
|
|
|
|
* - |ks| w |ke|
|
2013-07-26 15:23:45 +00:00
|
|
|
- |ks| Shift |ke| + |ks| w |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
-
|
|
|
|
- Next/previous warning
|
|
|
|
* - |ks| n |ke|
|
2013-07-26 15:23:45 +00:00
|
|
|
- |ks| Shift |ke| + |ks| n |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
-
|
|
|
|
- Next/previous search hit
|
|
|
|
* - |ks| > |ke|
|
|
|
|
- |ks| < |ke|
|
|
|
|
-
|
|
|
|
- Next/previous search hit (horizontal)
|
|
|
|
* - |ks| f |ke|
|
2013-07-26 15:23:45 +00:00
|
|
|
- |ks| Shift |ke| + |ks| f |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
-
|
|
|
|
- Next/previous file
|
|
|
|
* - |ks| u |ke|
|
2013-07-26 15:23:45 +00:00
|
|
|
- |ks| Shift |ke| + |ks| u |ke|
|
|
|
|
-
|
2013-07-26 03:41:42 +00:00
|
|
|
- Next/previous bookmark
|
2015-11-25 04:59:24 +00:00
|
|
|
* - |ks| o |ke|
|
|
|
|
- |ks| Shift |ke| + |ks| o |ke|
|
2015-12-19 06:39:27 +00:00
|
|
|
-
|
2015-11-25 04:59:24 +00:00
|
|
|
- Forward/backward through log messages with a matching "opid" field
|
2013-07-26 15:23:45 +00:00
|
|
|
* - |ks| y |ke|
|
|
|
|
- |ks| Shift |ke| + |ks| y |ke|
|
|
|
|
-
|
|
|
|
- Next/prevous SQL result
|
2014-03-28 13:55:24 +00:00
|
|
|
* - |ks| s |ke|
|
|
|
|
- |ks| Shift |ke| + |ks| s |ke|
|
|
|
|
-
|
|
|
|
- Next/prevous slow down in the log message rate
|
2018-12-14 14:18:31 +00:00
|
|
|
* - |ks| { |ke|
|
|
|
|
- |ks| } |ke|
|
|
|
|
-
|
|
|
|
- Previous/next location in history
|
2013-07-26 15:23:45 +00:00
|
|
|
|
|
|
|
Chronological Navigation
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
:header-rows: 1
|
|
|
|
:widths: 5 5 20
|
|
|
|
|
|
|
|
* - Keypress
|
|
|
|
-
|
|
|
|
- Command
|
|
|
|
* - |ks| d |ke|
|
|
|
|
- |ks| Shift |ke| + |ks| d |ke|
|
|
|
|
- Forward/backward 24 hours
|
|
|
|
* - |ks| 1 |ke| - |ks| 6 |ke|
|
|
|
|
- |ks| Shift |ke| + |ks| 1 |ke| - |ks| 6 |ke|
|
|
|
|
- Next/previous n'th ten minute of the hour
|
2019-01-25 15:45:17 +00:00
|
|
|
* - |ks| 7 |ke|
|
|
|
|
- |ks| 8 |ke|
|
|
|
|
- Previous/next minute
|
2013-07-26 15:23:45 +00:00
|
|
|
* - |ks| 0 |ke|
|
|
|
|
- |ks| Shift |ke| + |ks| 0 |ke|
|
|
|
|
- Next/previous day
|
2015-09-14 15:56:42 +00:00
|
|
|
* - |ks| r |ke|
|
|
|
|
- |ks| Shift |ke| + |ks| r |ke|
|
|
|
|
- Forward/backward by the relative time that was last used with the goto command.
|
2013-07-26 03:41:42 +00:00
|
|
|
|
|
|
|
Bookmarks
|
|
|
|
---------
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
:header-rows: 1
|
|
|
|
:widths: 5 20
|
|
|
|
|
|
|
|
* - Keypress
|
|
|
|
- Command
|
|
|
|
* - |ks| m |ke|
|
|
|
|
- Mark/unmark the top line
|
2013-07-26 15:23:45 +00:00
|
|
|
* - |ks| Shift |ke| + |ks| m |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
- Mark/unmark the range of lines from the last marked to the top
|
2013-07-26 15:23:45 +00:00
|
|
|
* - |ks| Shift |ke| + |ks| j |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
- Mark/unmark the next line after the previously marked
|
2013-07-26 15:23:45 +00:00
|
|
|
* - |ks| Shift |ke| + |ks| k |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
- Mark/unmark the previous line
|
|
|
|
* - |ks| c |ke|
|
|
|
|
- Copy marked lines to the clipboard
|
2013-07-26 15:23:45 +00:00
|
|
|
* - |ks| Shift |ke| + |ks| c |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
- Clear marked lines
|
|
|
|
|
|
|
|
Display
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
:header-rows: 1
|
|
|
|
:widths: 5 20
|
|
|
|
|
|
|
|
* - Keypress
|
|
|
|
- Command
|
|
|
|
* - |ks| ? |ke|
|
|
|
|
- View/leave builtin help
|
|
|
|
* - |ks| q |ke|
|
|
|
|
- Return to the previous view/quit
|
2016-03-20 22:15:50 +00:00
|
|
|
* - |ks| Shift |ke| + |ks| q |ke|
|
|
|
|
- Return to the previous view/quit while matching the top times of the two views
|
|
|
|
* - |ks| a |ke|
|
|
|
|
- Restore the view that was previously popped with 'q/Q'
|
|
|
|
* - |ks| Shift |ke| + |ks| a |ke|
|
|
|
|
- Restore the view that was previously popped with 'q/Q' and match the top times of the views
|
2015-03-17 06:10:34 +00:00
|
|
|
* - |ks| Shift |ke| + |ks| p |ke|
|
2015-08-19 03:58:20 +00:00
|
|
|
- Switch to/from the pretty-printed view of the displayed log or text files
|
2013-07-26 15:23:45 +00:00
|
|
|
* - |ks| Shift |ke| + |ks| t |ke|
|
2013-07-26 03:41:42 +00:00
|
|
|
- Display elapsed time between lines
|
2013-07-26 15:23:45 +00:00
|
|
|
* - |ks| t |ke|
|
|
|
|
- Switch to/from the text file view
|
|
|
|
* - |ks| i |ke|
|
|
|
|
- Switch to/from the histogram view
|
2014-03-28 13:55:24 +00:00
|
|
|
* - |ks| Shift |ke| + |ks| i |ke|
|
2013-07-26 15:23:45 +00:00
|
|
|
- Switch to/from the histogram view
|
|
|
|
* - |ks| v |ke|
|
|
|
|
- Switch to/from the SQL result view
|
|
|
|
* - |ks| Shift |ke| + |ks| v |ke|
|
|
|
|
- Switch to/from the SQL result view and move to the corresponding in the
|
|
|
|
log_line column
|
|
|
|
* - |ks| p |ke|
|
|
|
|
- Toggle the display of the log parser results
|
|
|
|
* - |ks| Tab |ke|
|
|
|
|
- Cycle through colums to graph in the SQL result view
|
2015-05-09 05:31:56 +00:00
|
|
|
* - |ks| Ctrl |ke| + |ks| l |ke|
|
2014-11-11 16:44:44 +00:00
|
|
|
- Switch to lo-fi mode. The displayed log lines will be dumped to the
|
|
|
|
terminal without any decorations so they can be copied easily.
|
2016-11-07 06:39:02 +00:00
|
|
|
* - |ks| Ctrl |ke| + |ks| w |ke|
|
|
|
|
- Toggle word-wrap.
|
2017-04-09 08:57:19 +00:00
|
|
|
* - |ks| Ctrl |ke| + |ks| p |ke|
|
|
|
|
- Show/hide the data preview panel that may be opened when entering
|
|
|
|
commands or SQL queries.
|
2019-01-27 16:05:44 +00:00
|
|
|
* - |ks| Ctrl |ke| + |ks| f |ke|
|
|
|
|
- Toggle the enabled/disabled state of all filters in the current view.
|
2017-02-23 14:15:44 +00:00
|
|
|
* - |ks| x |ke|
|
|
|
|
- Toggle the hiding of log message fields. The hidden fields will be
|
|
|
|
replaced with three bullets and highlighted in yellow.
|
2019-07-30 13:28:42 +00:00
|
|
|
* - |ks| = |ke|
|
|
|
|
- Pause/unpause loading of new file data.
|
2013-07-26 15:23:45 +00:00
|
|
|
|
2016-02-24 22:54:01 +00:00
|
|
|
Session
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
:header-rows: 1
|
|
|
|
:widths: 5 20
|
|
|
|
|
|
|
|
* - Keypress
|
|
|
|
- Command
|
2016-08-23 06:28:14 +00:00
|
|
|
* - |ks| Ctrl |ke| + |ks| R |ke|
|
2016-02-24 22:54:01 +00:00
|
|
|
- Reset current session.
|
|
|
|
|
2013-07-26 15:23:45 +00:00
|
|
|
Query
|
|
|
|
-----
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
:header-rows: 1
|
|
|
|
:widths: 5 20
|
|
|
|
|
|
|
|
* - Keypress
|
|
|
|
- Command
|
|
|
|
* - |ks| / |ke|
|
2018-03-28 14:25:10 +00:00
|
|
|
- Search for lines matching a regular expression
|
2013-07-26 15:23:45 +00:00
|
|
|
* - |ks| ; |ke|
|
|
|
|
- Execute an SQL query
|
|
|
|
* - |ks| : |ke|
|
2014-03-28 13:55:24 +00:00
|
|
|
- Execute an internal command, see :ref:`commands` for more information
|
2015-12-19 06:39:27 +00:00
|
|
|
* - |ks| \| |ke|
|
|
|
|
- Execute an lnav script located in a format directory.
|
2014-03-28 13:55:24 +00:00
|
|
|
* - |ks| Ctrl |ke| + |ks| ] |ke|
|
2018-11-15 14:43:28 +00:00
|
|
|
- Abort the prompt
|
2020-05-13 16:38:41 +00:00
|
|
|
|
|
|
|
Customizing
|
|
|
|
-----------
|
|
|
|
|