Skip to content
Discussion options

You must be logged in to vote

There's no builtin command or hotkey to perform this, but you can get there using the SQL interface. By doing an UPDATE on a log table and setting the log_mark column to 1, it will mark the log message. So, to mark all the log messages that match the current view's search term, you can execute the following SQL statement:

;UPDATE all_logs SET log_mark=1 WHERE log_text REGEXP (SELECT '(?i)' || search FROM lnav_top_view)

You can put this statement in a script and then execute it by using the | hotkey to enter the script prompt and then type in the script name.

To bind this statement to a hotkey (ex: underscore), you can run the following:

:config /ui/keymap-defs/default/x5f/command ;UPDATE …

Replies: 2 comments 2 replies

Comment options

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

Answer selected by deepskyblue86
Comment options

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

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