mirror of
https://github.com/tstack/lnav.git
synced 2024-09-11 13:05:51 +03:00
Add hotkey binding for toggling the cursor mode
This commit is contained in:
parent
a8a668b40a
commit
a75d5c7cf3
@ -246,6 +246,9 @@ Display
|
|||||||
* - :kbd:`x`
|
* - :kbd:`x`
|
||||||
- Toggle the hiding of log message fields. The hidden fields will be
|
- Toggle the hiding of log message fields. The hidden fields will be
|
||||||
replaced with three bullets and highlighted in yellow.
|
replaced with three bullets and highlighted in yellow.
|
||||||
|
* - :kbd:`Ctrl` + :kbd:`x`
|
||||||
|
- Toggle the cursor mode. Allows moving the selected line instead of
|
||||||
|
keeping it fixed at the top of the current screen.
|
||||||
* - :kbd:`=`
|
* - :kbd:`=`
|
||||||
- Pause/unpause loading of new file data.
|
- Pause/unpause loading of new file data.
|
||||||
|
|
||||||
|
@ -266,6 +266,7 @@ that you can always use `q` to pop the top view off of the stack.
|
|||||||
| CTRL-P | Show/hide the data preview panel that may be opened when entering commands or SQL queries. |
|
| CTRL-P | Show/hide the data preview panel that may be opened when entering commands or SQL queries. |
|
||||||
| CTRL-F | Toggle the enabled/disabled state of all filters in the current view. |
|
| CTRL-F | Toggle the enabled/disabled state of all filters in the current view. |
|
||||||
| x | Toggle the hiding of log message fields. The hidden fields will be replaced with three bullets and highlighted in yellow. |
|
| x | Toggle the hiding of log message fields. The hidden fields will be replaced with three bullets and highlighted in yellow. |
|
||||||
|
| CTRL-X | Toggle the cursor mode. Allows moving the selected line instead of keeping it fixed at the top of the current screen. |
|
||||||
| F2 | Toggle mouse support. |
|
| F2 | Toggle mouse support. |
|
||||||
|
|
||||||
### Query
|
### Query
|
||||||
|
@ -383,6 +383,10 @@ Display options
|
|||||||
will be replaced with three bullets and highlighted in
|
will be replaced with three bullets and highlighted in
|
||||||
yellow.
|
yellow.
|
||||||
|
|
||||||
|
CTRL-X Toggle the cursor mode. Allows moving the selected line
|
||||||
|
instead of keeping it fixed at the top of the current
|
||||||
|
screen.
|
||||||
|
|
||||||
F2 Toggle mouse support.
|
F2 Toggle mouse support.
|
||||||
|
|
||||||
Query
|
Query
|
||||||
|
@ -963,7 +963,15 @@ handle_paging_key(int ch)
|
|||||||
lnav_data.ld_preview_hidden = !lnav_data.ld_preview_hidden;
|
lnav_data.ld_preview_hidden = !lnav_data.ld_preview_hidden;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case KEY_CTRL_X:
|
||||||
|
for (int i = 0; i < LNV__MAX; ++i) {
|
||||||
|
lnav_data.ld_views[i].set_selectable(!lnav_data.ld_views[i].is_selectable());
|
||||||
|
}
|
||||||
|
tc->reload_data();
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
log_debug("key sequence %x", ch);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -76,6 +76,7 @@
|
|||||||
#define KEY_CTRL_P 16
|
#define KEY_CTRL_P 16
|
||||||
#define KEY_CTRL_R 18
|
#define KEY_CTRL_R 18
|
||||||
#define KEY_CTRL_W 23
|
#define KEY_CTRL_W 23
|
||||||
|
#define KEY_CTRL_X 24
|
||||||
|
|
||||||
class view_curses;
|
class view_curses;
|
||||||
|
|
||||||
|
@ -349,6 +349,9 @@ Display options
|
|||||||
x Toggle the hiding of log message fields. The
|
x Toggle the hiding of log message fields. The
|
||||||
hidden fields will be replaced with three bullets
|
hidden fields will be replaced with three bullets
|
||||||
and highlighted in yellow.
|
and highlighted in yellow.
|
||||||
|
CTRL-X Toggle the cursor mode. Allows moving the selected
|
||||||
|
line instead of keeping it fixed at the top of the
|
||||||
|
current screen.
|
||||||
F2 Toggle mouse support.
|
F2 Toggle mouse support.
|
||||||
|
|
||||||
Query
|
Query
|
||||||
|
Loading…
Reference in New Issue
Block a user