Commit Graph

1841 Commits

Author SHA1 Message Date
Tim Stack fadcea4403 [final] fix sqlite cleanup bug 2022-09-15 06:27:28 -07:00
Tim Stack 740b827901 [logfile] handle logs with ANSI escapes
This is a partial fix for handling ANSI escapes in
parts of log messages that would prevent regexes
from matching.  Still more work to do.

Related to #1057
2022-09-14 21:43:36 -07:00
Tim Stack eaa6e50a52 [log_format] perform more validations on log formats 2022-09-12 07:18:26 -07:00
Tim Stack af5213a98a [log_formats] change "no patterns have a capture" error to a warning 2022-09-10 15:43:47 -07:00
Tim Stack 132bd0adba [log_format] check for null 2022-09-10 10:48:52 -07:00
Tim Stack 664f45f641 [build] check for sqlite3_drop_modules
Fixes #1053
2022-09-10 10:37:04 -07:00
Tim Stack 5a63ece31d [pcre2] migrate from pcre to pcre2
Fixes #974
2022-09-10 09:28:07 -07:00
Fulvio Scapin 4b7c9ef54c [view_curses] Fix for fg colour and reverse attribute for separator bars
Elements of type VC_GRAPHIC used as column separators, when used
along with background coloured bars to express numeric column values,
maintain alternate-line reversing of colours when inside the bar range
and take the foreground color of the last coloured bar on the line even
though are not placed in the coloured range of characters.
This commit fixes this.
2022-09-04 23:36:17 +02:00
Tim Stack 66ec8e553e [build] fix static var issue 2022-09-04 07:13:32 -07:00
Tim Stack 6ca01cd934 [line_buffer] fix some long-line handling 2022-09-04 06:38:39 -07:00
Tim Stack 7309352c97 [view_curses] add a unit type to line_range
Fixes #1033
2022-09-03 08:49:47 -07:00
Tim Stack a813482a54 [log_formats] JSON number time to local time zone
Fixes #1038
2022-09-02 23:06:03 -07:00
Tim Stack 679e9f0771 [build] try to fix brew build error 2022-09-01 21:46:59 -07:00
Tim Stack e047386441 [sql] extract() assumed too much about elements 2022-09-01 14:33:51 -07:00
Tim Stack c9ec288853 [regexp_vtab] hex floats were being passed through to json, which does not support hex floats
It looks like sscanf("%f") was accepting hex-floats. So, lnav
was passing that through to the JSON, which does not like hex
floats.

FYI, @trantor, this should fix the regexp_capture_into_json()
issue of hex numbers being passed through.
2022-09-01 07:32:51 -07:00
Tim Stack 84d2f56189 [formats] add / to pattern in unifi 2022-08-31 21:31:44 -07:00
Tim Stack 8d6780e089 [ptimec_rt] restore '%a' handling 2022-08-31 09:27:59 -07:00
Tim Stack eb403f540f [text_format] recognize .markdown extension 2022-08-31 09:27:46 -07:00
Tim Stack 8e33c599f1 [regexp_vtab] match_index should reset for the next log line 2022-08-30 21:39:35 -07:00
Tim Stack c69b398944 [tutorial] add more steps to the first tutorial 2022-08-30 13:23:15 -07:00
Tim Stack 1f24ab3074 [leak] fix leak of pcrepp object 2022-08-29 22:07:05 -07:00
Tim Stack 7a1ade581a [db] fix leaked db connection 2022-08-29 21:53:20 -07:00
Tim Stack b5cb38d454 [user_notifications] treat message as markdown 2022-08-29 16:00:33 -07:00
Tim Stack ff91cfc3a0 [tutorial] some more nits 2022-08-29 10:22:23 -07:00
Tim Stack 915f583ab0 [cmake] add missing time format 2022-08-29 09:37:58 -07:00
Tim Stack 311798e1f8 [main] try to fix cleanup of sqlite 2022-08-29 09:21:19 -07:00
Tim Stack cebc867c6b [cmds] reduce next/prev mark errors to info to make them less noisy 2022-08-29 02:54:31 -07:00
Timothy Stack 220317eb16 [demo] build/deploy stuff for ssh-based demo
fix structure name clash
2022-08-28 23:07:55 -07:00
Tim Stack 4b307b5b4f [build] missed new file 2022-08-28 19:41:56 -07:00
Tim Stack 87791ec94b [markdown] add support for going to an anchor 2022-08-28 18:55:32 -07:00
Tim Stack fd956c66d3 [field_overlay] fix known key size when there's a prefix 2022-08-26 07:39:04 -07:00
Tim Stack d01db38d51 [init] fix handling of unknown TERM 2022-08-22 13:15:31 -07:00
Tim Stack 5751fe89c4 [markdown] recognize more code fence langs 2022-08-21 22:02:46 -07:00
Tim Stack 0d1304e8ec [ansi_scrubber] fix handling of invalid utf 2022-08-21 21:15:37 -07:00
Tim Stack a2c35140ba [data_scanner] hack to recognize some windows paths
Fixes #1018
2022-08-20 21:23:42 -07:00
Tim Stack 23ab1abd73 [data_scanner] tweaks to fix slow build times and a couple warnings 2022-08-20 21:01:15 -07:00
Tim Stack 7310f9dcec [formats] add description and level properties to tag definitions 2022-08-20 06:41:44 -07:00
Tim Stack 412a3c2a70 [formats] restrict tag name characters 2022-08-19 21:15:59 -07:00
Tim Stack 53c9c5cb51 [logfile] move bookmark_metadata to logfiles 2022-08-19 20:01:25 -07:00
Tim Stack ad1897ba15 [field-overlay] display the timestamp format 2022-08-18 21:32:51 -07:00
Tim Stack 5abd483029 [ansi_scrubber] handle unicode in overstrike code 2022-08-18 16:09:45 -07:00
Tim Stack 9c8cc04a99 [cmds] :goto was not handling timestamps with spaces 2022-08-18 13:27:49 -07:00
Tim Stack 8e734eaf07 [cover] remove some dead code 2022-08-17 16:15:02 -07:00
Tim Stack 74c2237296 [loader] add some help text to the error for values without a corresponding capture 2022-08-16 22:39:24 -07:00
Tim Stack 001f26d066 [loader] make sure values defined in formats have a corresponding capture in at least one pattern 2022-08-16 21:38:17 -07:00
Tim Stack 072fad4173 [tests] coverage for json SQL funcs 2022-08-16 20:46:23 -07:00
Tim Stack d020168860 [meta] highlight comments/tags in searches 2022-08-15 22:32:28 -07:00
Tim Stack a1de8f1fc1 [search-table] fix clearing of message data 2022-08-15 21:45:31 -07:00
Tim Stack 7ef5cf6ba3 [session] some more session docs 2022-08-13 21:42:41 -07:00
Tim Stack 0603b1e756 [session] support for :hide-file and some related fixes 2022-08-13 07:31:46 -07:00
Tim Stack 13f161d21e [build] fix some warnings 2022-08-12 22:07:33 -07:00
Tim Stack c824b64840 [filter] fix a case where top time was not maintained when a filter was applied 2022-08-11 21:03:45 -07:00
Tim Stack 270d44c6b4 [remote] fix handling of absolute symlinks 2022-08-11 12:40:36 -07:00
Tim Stack f73e71cf30 [perf] issues with matching filenames and ansi scrubbing 2022-08-11 11:16:49 -07:00
Tim Stack 1e63cfc5ae [lss] fix issue with crumbs 2022-08-11 08:55:59 -07:00
Tim Stack d9e699fd09 [docs] add docs for new SQL tables 2022-08-11 00:15:18 -07:00
Tim Stack 061e3690de [build] fix 32-bit build 2022-08-10 15:08:12 -07:00
Tim Stack ca7efa822f [spectro] show DB overlay and handle values in an empty range 2022-08-10 14:37:49 -07:00
Tim Stack ebe2e0d8e6 [docs] add config panel screenshots 2022-08-10 10:39:25 -07:00
Tim Stack 1fd274ce24 [docs] some more updates to docs
Also, add support for overstruck/backspace-underscore for
doing bold/underline.
2022-08-08 23:14:02 -07:00
Tim Stack c52615c424 [docs] start updating screenshots 2022-08-07 10:00:34 -07:00
Tim Stack 3df07139b3 [line_buffer] fix long line issue
Fixes #980
2022-08-06 13:46:50 -07:00
Tim Stack 4e74491e84 [blog] post about markdown support 2022-08-06 02:11:37 -07:00
Tim Stack bbedca5940 [export-session] add missing line-feeds 2022-08-05 22:17:55 -07:00
Tim Stack 01405ffbd6 [log-crumbs] turn off semantic highlights for crumbs 2022-08-05 16:15:59 -07:00
Tim Stack 1832303bde [lo-fi] try to maintain the position of lines on the display
Fixes #815
2022-08-05 16:09:54 -07:00
Tim Stack 8941f28c3e [time_util] cap large year in tm2sec() instead of returning BAD_DATE 2022-08-04 21:55:03 -07:00
Tim Stack c5d11f36e1 [logfile] need to flush the buffer for single line files as well 2022-08-04 14:57:01 -07:00
Tim Stack 3ade11a449 [remote] clear file error on reconnect
Fixes #940
2022-08-04 14:41:41 -07:00
Tim Stack 7077495389 [crash] missed expanding the alt buffer in line_buffer 2022-08-04 09:23:40 -07:00
Tim Stack 4e0dab843a [session] try avoid using absolute file paths in session exports 2022-08-04 09:22:09 -07:00
Tim Stack 1c793f6f28 [remote] notify main when desired paths are initially synced
Need to wait for remote paths referenced by sessions to be
synced before progressing.
2022-08-03 23:01:38 -07:00
Tim Stack c5b8bd0ba4 [ui] handle resizes during sql execution
Also, fix reporting of init command errors
2022-08-03 16:05:37 -07:00
Tim Stack 7c3df44fc4 [pretty] handle ANSI escapes
Fixes #1020
2022-08-03 13:46:36 -07:00
Tim Stack 056754a926 [session] some improvements to session export 2022-08-03 10:55:18 -07:00
Tim Stack c6d7206a1e actually remove the flag 2022-08-03 07:18:59 -07:00
Tim Stack ab3f01bbf5 [config] GLOB_BRACE is not supported in musl 2022-08-03 07:12:09 -07:00
Tim Stack 5259da4f4f [highlights] reprioritize highlighters to prefer formats over themes
Fixes #992
2022-08-03 06:48:59 -07:00
Tim Stack bdacaa6f86 [stdin] fix handling of stdin piper
Fixes #1011
2022-08-02 22:21:44 -07:00
Tim Stack 010198531b [tests] some coverage for blobs 2022-08-02 21:18:05 -07:00
Tim Stack 7b32ea9d39 [logfile] fix handling of partial lines 2022-08-02 16:03:39 -07:00
Tim Stack df082eaf16 [highlighter] fix string range for pcrepp input 2022-08-02 15:00:41 -07:00
Tim Stack 363eb35da3 [pcrepp] handle defined capture groups
Fixes #1013
2022-08-02 13:38:43 -07:00
Tim Stack 3cafcf3c77 [attr_line] tweak shifting of attributes
Fixes #1017
2022-08-02 11:25:19 -07:00
Tim Stack 40037b0fd1 [highlight] for format highlights, only set semantic color if nothing else is specified
Fixes #1016
2022-08-01 19:30:03 -07:00
Tim Stack d22727242a [formats] pickup old macos syslog format 2022-08-01 15:16:00 -07:00
Tim Stack 9675eb5902 [build] fix cmake build 2022-08-01 15:15:48 -07:00
Tim Stack 1ae1600f7b [line_buffer] cache compressed files 2022-08-01 14:56:48 -07:00
Tim Stack c17046b2fa [formats] fix error message if pattern does not fully match sample 2022-07-31 22:00:25 -07:00
Tim Stack e2e491ec41 [search-table] improve preview highlighting 2022-07-31 07:44:22 -07:00
Tim Stack 3b9bc57ab0 [sql] consolidate the encoders to a single function 2022-07-30 13:18:55 -07:00
Tim Stack c9c573d2ad [sql] handle null in base64_encode() 2022-07-30 00:18:26 -07:00
Tim Stack 94aab91d38 [sql] add base64_encode()/base64_decode() functions 2022-07-30 00:12:44 -07:00
Tim Stack 1f8e2bd46c [sql] add uri_encode()/uri_decode() functions
Fixes #1014
2022-07-29 23:05:16 -07:00
Tim Stack be862e0eab [scn] more scnlib conversions 2022-07-29 21:58:08 -07:00
Tim Stack f234b37fe0 [build] some more scnlib stuff 2022-07-29 00:07:11 -07:00
Tim Stack 9c03938ff3 use scnlib instead of sscanf/strtod 2022-07-28 23:31:58 -07:00
Tim Stack 390bc132e2 [build] updates for arm64 2022-07-28 20:24:32 -07:00
Timothy Stack 8ef581177c [line_buffer] add some performance counters for tracking SQL perf
Also, check for keyboard input during SQL execution
so we can cancel.

Fixes #894
2022-07-27 21:49:14 -07:00
Timothy Stack 0f2d38df50 [ui/sql] the y/Y hotkey pair is no longer a thing 2022-07-25 09:23:19 -07:00