[hotkeys] add ctrl+f to toggle filters

Fixes #604
pull/627/head
Timothy Stack 5 years ago
parent 69508e6467
commit 31c440777f

@ -7,6 +7,8 @@ lnav v0.8.5:
with hotkeys.
* Added an 'lnav_view_filters' SQL table that can be used to
programmatically manipulate filters.
* Added CTRL+F to toggle the enabled/disabled state of all filters for the
current view.
* A history of locations in a view is now kept so that you can jump back
to where you were previously using the '{' and '}' keys. The location
history can also be accessed through the ":prev-location" and

@ -228,6 +228,8 @@ Display
* - |ks| Ctrl |ke| + |ks| p |ke|
- Show/hide the data preview panel that may be opened when entering
commands or SQL queries.
* - |ks| Ctrl |ke| + |ks| f |ke|
- Toggle the enabled/disabled state of all filters in the current view.
* - |ks| x |ke|
- Toggle the hiding of log message fields. The hidden fields will be
replaced with three bullets and highlighted in yellow.

@ -65,7 +65,7 @@ public:
bss_load_percent(0)
{
this->bss_fields[BSF_LINE_NUMBER].set_width(14);
this->bss_fields[BSF_PERCENT].set_width(4);
this->bss_fields[BSF_PERCENT].set_width(5);
this->bss_fields[BSF_PERCENT].set_left_pad(1);
this->bss_fields[BSF_HITS].set_width(36);
this->bss_fields[BSF_LOADING].set_width(13);

@ -278,6 +278,7 @@ string execute_sql(exec_context &ec, const string &sql, string &alt_msg)
gettimeofday(&end_tv, NULL);
if (retcode == SQLITE_DONE) {
lnav_data.ld_filter_view.reload_data();
lnav_data.ld_views[LNV_DB].reload_data();
lnav_data.ld_views[LNV_DB].set_left(0);

@ -373,6 +373,9 @@ Display options
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.
x Toggle the hiding of log message fields. The hidden fields
will be replaced with three bullets and highlighted in
yellow.

@ -15,6 +15,10 @@
},
"keymap_def": {
"default": {
"x06": [
";UPDATE lnav_view_filters SET enabled = 1 - enabled WHERE view_name = (SELECT name FROM lnav_view_stack LIMIT 1)"
],
"x0c": [
":write-raw-to -"
],

@ -373,6 +373,9 @@ Display options
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.
x Toggle the hiding of log message fields. The hidden fields
will be replaced with three bullets and highlighted in
yellow.

Loading…
Cancel
Save