Mark search results #957
-
|
Is there a way to mark search hits? I can't find it in the guide. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
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 ;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 To bind this statement to a hotkey (ex: underscore), you can run the following: (Note that the Of course, you can also customize the SQL statement to add more conditionals or directly write in the search terms. |
Beta Was this translation helpful? Give feedback.
-
|
What view are we talking about here? |
Beta Was this translation helpful? Give feedback.
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_markcolumn to1, 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: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: