Commit Graph

2226 Commits (master)

Author SHA1 Message Date
Tim Stack f3bdc50e70 [pretty] use an attribute to draw the guidelines to keep copy & paste clean 9 months ago
Tim Stack be377dea27 [pretty-print] fix an issue with shifting attributes when rewriting
Related to #705
9 months ago
Tim Stack 921bc0a3d3 [gantt] pad sub-op ID width 9 months ago
Tim Stack 880d31ea0a [ansi_scrubber] missed handling some bad inputs 9 months ago
Tim Stack 92162b2ad5 [misc] fix a data_parser issue and don't always push db view after running init commands 9 months ago
Tim Stack 530021604e [docs] add some more stuff for the gantt chart 9 months ago
Tim Stack acfc5bfcfd [formats] add some opid descriptions 10 months ago
Tim Stack 40a1d25474 [generic_log] tweak the pattern to allow for truncated subsecond values 10 months ago
Tim Stack 33c929ac5d [time_util] fix typo 10 months ago
Tim Stack 912171a43f [vmw_vc_svc_log] fixup for this format
Also, some optimizations for gantt index building
10 months ago
Tim Stack 8835f1ebea [formats] add 'title' to vpostgres_log 10 months ago
Tim Stack 92b7145971 [formats] add vpostgres_log definition 10 months ago
Tim Stack 12c2718a16 [data_scanner] recognize XML comments 10 months ago
Tim Stack 5c0333fd64 [themes] add dracula theme
Various improvements to styling.

Empty opids are not valid.
10 months ago
Tim Stack 02e801cf6a [gantt] add op description for vpxd and add toggle for subop details 10 months ago
Tim Stack 7572a68eaa [date_time] do not change time format if there is a loss of precision 10 months ago
Tim Stack c464827737 [views_vtab] programmatic control of the overlay toggle 10 months ago
Tim Stack 3e49915ef2 [tests] fix :export-session-to test
Also, fix some regex101 import bitrot
10 months ago
Tim Stack d13a6e8b2d [overlay] fix some overlay issues 10 months ago
Tim Stack 4cd1234cea [date_time] try to show zone offset where appropriate
Related to #703
10 months ago
Tim Stack cc445cc78f [listview] use ctrl-] to focus on overlays 10 months ago
Tim Stack cdb5760b5d [build] missing include 10 months ago
Tim Stack 1c857feed7 [gantt] support for sub-ids 10 months ago
Tim Stack 917270e293 [date_time] try to handle truncated sub-second values
Certain software will leave zeroes off the end of
timestamps...
10 months ago
Tim Stack d6137c7b10 [vtab] allow UPDATEs to log_annotations 10 months ago
Tim Stack 73b2b28ec5 [session] restore bookmarks for non-time-ordered formats
The optimization to load bookmarks by a timestamp search
does not work for formats that are not time-ordered.
10 months ago
Tim Stack 3cc827d613 [date_time] missed some TZ stuff 10 months ago
Tim Stack 155dad6ee1 [date_time_scanner] convert timestamps with zones to local time
Related to #703
10 months ago
tstack d1386a8432 Update tailer 10 months ago
Tim Stack e952dc6340 [date_time_scanner] do not try to read millis if it is already set
Also, pay attention to the gmtoff when converting exttm to a timeval.

Fixes #1034
10 months ago
Tim Stack bd5b3908c3 [formats] some tweaks 10 months ago
Suresh Sundriyal b244543719 [cleanup] More include cleanup. 10 months ago
Tim Stack 1be7e8f407 [cmds] fix pipe-line-to for interactive use 10 months ago
Tim Stack 9306ddbf13 [gantt] tweak the style of dates in the chart headers 10 months ago
Tim Stack 52017079ff [gantt] add breadcrumb with timestamp 10 months ago
Tim Stack 98699b318c [tests] more gantt tests 10 months ago
Tim Stack b791c573e1 [tests] add some more gantt tests 10 months ago
Suresh Sundriyal 348884f578 [cleanup] Remove redundant includes from logfile_sub_source 10 months ago
Suresh Sundriyal 53514c4dea [cleanup] Some more include cleanup. 10 months ago
Tim Stack 6e1a664286 [iwyu] more include cleanup 10 months ago
Tim Stack 78c643fea7 [iwyu] include cleanup 10 months ago
Tim Stack 7de246cad5
Merge pull request #1180 from sureshsundriyal/master
[cleanup] Remove redundant include of `algorithm`.
10 months ago
Tim Stack 333d21f29f [:open] plug another leak 10 months ago
Tim Stack 775647e8ff [:open] plug leak 10 months ago
Tim Stack cb43a562a2 [bro] update opid metadata 10 months ago
Suresh Sundriyal e96a8a1498 [cleanup] Remove redundant include of `algorithm`. 10 months ago
Suresh Sundriyal ec100cdc99 Remove redundant headers - 2
Remove redundant headers from:
  - listview_curses.{cc,hh}
  - top_status_source.{cc,hh}
  - vtab_module.{cc,hh}
  - sql_util.{cc,hh}

Also add the appropriate headers in:
  - log.watch.cc
  - log_format.cc
  - regexp_vtab.cc
10 months ago
Suresh Sundriyal 4489277672 Remove redundant includes in lnav.{hh,cc}
Remove the redundant includes in lnav.hh and lnav.cc and add the
includes in the actual cc files that break due to the removal.
10 months ago
Tim Stack 2da7361097 [gantt] render opid descriptions correctly 10 months ago
Tim Stack f7da1df59b [lss] fix missing bookmarks for metadata 10 months ago
Tim Stack 14e61acda7 [gantt] support filtering 10 months ago
Tim Stack 6334ad299c [log_format] check that patterns have a timestamp capture 10 months ago
Tim Stack 3f4c572368 [vmw_log] pickup vsan logs 10 months ago
Tim Stack 2afd233212 [vmw_log] handle exceptions in btresolver.py 10 months ago
Tim Stack f71300ba1d [gantt] add a gantt chart view 10 months ago
Tim Stack 7c8d32308a [listview] scroll within overlay 10 months ago
Tim Stack f2ec975b1c [string_fragment] oopserator< 10 months ago
Tim Stack 7dfecc556f [config] fix static init ordering issue 10 months ago
Tim Stack 3ae3515f44 [build] missed mentioning some new files in the Makefiles 10 months ago
Tim Stack a16a8cf3fa [log-annotations] add :annotate command 10 months ago
Tim Stack 1b31d7401a [log_format] fix rollover when there is no date in the timestamp
Fixes #1178
10 months ago
Tim Stack 45be4d3829 [pcre2pp] replace() was not appending the remaining string correctly
Used `str` instead of `remaining` in the `append()` call.

Fixes #1177
10 months ago
Tim Stack 80bf31b338 [markdown] add border-left/border-right support 10 months ago
Tim Stack 4b9f81a65a [markdown] some minor improvements 10 months ago
Tim Stack b650d96f5b [log_source] add log message when expanding index array 10 months ago
Tim Stack 84893fd517 [log_source] do a full sort when the index array is reallocated
Fixes #1175
10 months ago
Tim Stack b0589d14d9 [tidy] use factory_container for theme highlights
And... a bunch of other stuff
10 months ago
Tim Stack 2107aa538f [piper] pass SIGINT to child 11 months ago
Tim Stack 1a4d9d1fde [build] missing time.h include 11 months ago
Tim Stack fa024a7256 [build] missing include 11 months ago
Tim Stack 401ec5181f [piper] add metadata to piper file header and cleanup workdir 11 months ago
tstack d73a0e7c6a Update tailer 11 months ago
Tim Stack a5c7378557 [config] order the keymaps 11 months ago
tstack 0e484519d4 Update tailer 11 months ago
Tim Stack 9b2a6f323a [misc] add URL handler test
Fix loading of configs from include dirs

Add "config get" and "config blame" management CLI
commands
11 months ago
Tim Stack 4f4fd4091f [misc] more include shuffling
Improve xpath() error messages

Update alt-text in other themes
11 months ago
tstack 6c8a0d1bb7 Update tailer 11 months ago
tstack df747326c5 Update tailer 11 months ago
Tim Stack 2a2e8738fa [tests] leave JSON shorthand (-> / ->>) out of the examples for now 11 months ago
Tim Stack b5e19ef3b0 [tests] add some tests for recent additions
Add missing SQLite JSON functions to the help
Fix some DB UI issues
11 months ago
Tim Stack 55dd4a0096 [build] handle some missing deps 11 months ago
Tim Stack 2f9a41dfaf [files] custom url handlers
Related to #1029
11 months ago
Tim Stack 770eb8c0a0 [piper] format_to_n does not terminate... 11 months ago
Suresh Sundriyal 15137c7c78 [build] Add fPIE to ptimec as well. 11 months ago
Suresh Sundriyal 7a68f4d833 [build] Fix some build oddness related to cross-compilation.
The Autoconf macro doesn't properly set the required variables properly
when the binaries aren't being cross-compiled. This results in the local
binaries like bin2c and ptime disregarding the compiler flags passed in
to configure scripts.
11 months ago
Tim Stack 0361ed5700 [build] some tidying up of the headers 11 months ago
Tim Stack 8df83d562a [config] simplify file format detection by moving it into the log format definition 11 months ago
Tim Stack 2e09202ff5 [config] externalize file format detection 11 months ago
Tim Stack 898f6e0ad1 [tidy] close FDs and add FMT_STRING() 11 months ago
Tim Stack 5b89b69e25 [piper] ignore stdin when it's a closed fifo 11 months ago
Tim Stack 42c9269d8d [piper] check for POLLHUP too 11 months ago
Tim Stack 0c9cf22acc [build] remove unused piper close() method 11 months ago
Tim Stack 5787f47767 [piper] replace piper_proc with a thread
Related to #1029
11 months ago
Tim Stack 2532d3dbf0 [formats] add cloudvm_ram_log 11 months ago
Tim Stack 60b9494427 [listview] fix pgdn behavior near the end of the content 11 months ago
Tim Stack 54cc2d006f [view_helpers] add some defense to the search preview 11 months ago
Tim Stack 29e2db5cc3 [textview] fix backwards search for cursor mode and mention it in FAQ
Related to #385
11 months ago
Tim Stack 841b3ee567 [help] a little extra info on config paths 11 months ago
Tim Stack e0ff4434a9 [logfile] report utf error location
Related to #1156
11 months ago
Tim Stack 5d915796fa [debug] include archive_version_details() 11 months ago
Tim Stack d4832c976d [vmw_py_log] handle broken ms field in timestamp 11 months ago
Tim Stack 5244753758 [pcap_log] use auto-width for fields 11 months ago
Tim Stack 4a24d8797f [sql] logline table was not checking if format matched the template line format
Some more cursor mode tweaks...
11 months ago
Tim Stack 7f18aa9cd9 [blog] add post for cursor mode 11 months ago
Tim Stack 8da3dcc01c [listview] when making big moves, put the focused row in the middle
Related to #1088 and #1149
11 months ago
Tim Stack 7bf42e7d2f [json-logs] automatically remove trailing line feeds
Fixes #969
12 months ago
Tim Stack e0811eb629 [session] fix restoring log top/selection
Related to #1088
12 months ago
Tim Stack 3da4b85365 [cursor] use selection when switching between views and keeping time synced
Related to #1088
12 months ago
Tim Stack 1a1272bbfb [cursor] when the parser overlay is displayed, sync the selection and top
Related to #1088
12 months ago
Tim Stack 29837caf52 [log_format] fix hiding/showing JSON fields not in the line-format
Related to #1081
12 months ago
Tim Stack c49d83395b [formats] add cloudflare format
Related to #1081
12 months ago
Tim Stack 0e4a6635e1 [textfile] log reason for not discovering metadata and cache it 12 months ago
Tim Stack 8118c5dbe4 [sections] fix some issues with doc sections in logs 12 months ago
Tim Stack e77ef5c8cd [cursor] breadcrumb performers should move selection instead of top 12 months ago
Tim Stack c8764da9d2 [bunyan] add test for this format and add "src" field
Related to #1136
12 months ago
Tim Stack 57486af178
Merge pull request #1136 from TobiX/bunyan
Add support for the bunyan JSON log format
12 months ago
Tim Stack 1c8c7089cb [log_format] try to do a better job matching JSON formats to logs
Try all formats and find the one with the highest quality
match.  For JSON logs, this means the format that matched
the most fields in the line-format.

Related to #1136
12 months ago
Tim Stack a1cfe34a7b [lss] fix handling of ansi escapes in json log 12 months ago
Tim Stack 5db31300c9 [logfile] avoid reading full log messages that are bigger than the line_buffer max size 12 months ago
Tim Stack 0083eaf675 [humanize] pad out duration to align fields
Fixes #933
12 months ago
Tim Stack 026031dcd3 [config] remove GLOB_NOCHECK when looking for git dirs
Fixes #1109
12 months ago
Tim Stack 82b10e2b23 [readline] handle width properly
Fixes #1100
12 months ago
Tim Stack 8f8874c718 [cursor] update docs and more tweaks 12 months ago
Tim Stack cfb7ac1fdd [lss] don't add an empty style attr 12 months ago
Tim Stack 2e409a8251 [vmw_log] fix for capturing sub= 12 months ago
Tim Stack 2ff9f63a79 [hotkeys] use selection instead of top in a few more places 12 months ago
Tim Stack 06385bc019 [cursor] ignore key repeat when searching forward 12 months ago
Tim Stack e3bebedbad [cursor] following should only be done when the last line is selected 12 months ago
Tim Stack fe7e89121f [listview] set selection to 0 when pressing 'b'/'pgup' and the top is 0 12 months ago
Tim Stack f44e04d854 [cursor] some more fixes for the new cursor support
related to #1088
12 months ago
Tim Stack 6f0f66a418 [json] fix json log handling with multiple lines in a field 12 months ago
tstack 49dcccbaae Update tailer 12 months ago
tstack ab12671308 Update tailer 12 months ago
tstack 7b2ec36315 Update tailer 12 months ago
Tim Stack 7ccb467695 [build] fix some more warnings 12 months ago
Tim Stack 91730b7c3c [cleanup] fix some warnings 12 months ago
Tim Stack 193fd7d8cc [fmt] bump version to 10.0.0 12 months ago
Tim Stack 51841d40b8 [view] add selection column to lnav_views
related to #1149
12 months ago
Tim Stack 5e8800872b [build] try using prebuilt image 12 months ago
Tim Stack dd21bdfd82 [text_filter] scrub ansi when testing a filter
Related to #1163
12 months ago
Tim Stack f98f1e52c9
Merge pull request #1160 from he32/shift-overflow-fix
ArenaAlloc/arenaallocimpl.h: avoid shift overflow on 32-bit hosts.
1 year ago
Havard Eidnes 0b51752974 ArenaAlloc/arenaallocimpl.h: avoid shift overflow on 32-bit hosts.
Use the constants defined by <stdint.h> to avoid right-shift by 32
on a 32-bit host by comparing SIZE_MAX to UINT32_MAX, since `value`
is a size_t.

Found by building on NetBSD/macppc with -Wshift-count-overflow
(which is default on in the pkgsrc setup, which this is from).

./third-party/ArenaAlloc/arenaallocimpl.h:111:22: warning: right shift count >=
width of type [-Wshift-count-overflow]
  111 |       value |= value >> 32;
      |                ~~~~~~^~~~~
1 year ago
Havard Eidnes f5daea2273 strnatcmp.c: ensure correct value range for isdigit() argument.
The valid values to pass to `isdigit()` is the values represented
by `unsigned char` and the value of EOF (usually -1).  Other values
such as the other negative `signed char` values may invoke undefined
behaviour.

Fix this by casting the argument to `isdigit()` to `unsigned char`.

Found by building on NetBSD/macppc with -Wchar-subscripts turned on.
1 year ago
Tim Stack 9323958296 [args] fix handling of non-numeric text after colon in a path
Fixes #1155
1 year ago
Tim Stack a324bc8c1c [docs] add a note that level regexes are not anchored
Related to #1153
1 year ago
Tim Stack c3abaee445 [log/text-views] reload selectable config
Related to #1088
1 year ago
Tim Stack 822eaf5a1a [json_log] auto detect the required width for a column
Related to #1146
1 year ago
Tim Stack f2a0c8f21c [logfile] include microseconds when converting timestamps
Mentioned in #1145

Also, fix the field hiding issue mentioned in #1146
1 year ago
Tim Stack 44b564681b [format_loader] catch invalid format names
Fixes #1122
1 year ago
Tim Stack 65b0d78143 [log_format/json] appending an empty string can trigger an assert
Fixes #1132
1 year ago
Tim Stack db1fc92fdd [ansi] missed resizing a buffer when scrubbing ansi
Fixes #1135
1 year ago
Tobias Gruetzmacher d675a8d10e
Add support for the bunyan JSON log format
See https://github.com/trentm/node-bunyan
1 year ago
Sam James e25d3e3c69
Fix build with GCC 13 (add missing <cstdint> include)
GCC 13 (as usual for new compiler releases) shuffles around some
internal includes and so <cstdint> is no longer transitively included.

Explicitly include <cstdint> for uint32_t.

Signed-off-by: Sam James <sam@gentoo.org>
1 year ago
Tim Stack 3e7a75c00b [capture] don't save any empty stdin 1 year ago
Tim Stack 5266054af0 [config] fix location of crash logs
During some refactoring, I messed up the crash file location
1 year ago
Tim Stack f34a5cf589 [docs] update docs for half page hotkeys 1 year ago
Tim Stack b92663b38a [hotkeys] add ctrl-d/ctrl-u hotkeys for moving by half a page
Also fixed a bug that caused the bottom status line to
be updated with the wrong line number.

Related to #945
1 year ago
Tim Stack 2c981dbe25 [filter-panel] only add filter-expr possibilities for the log view 1 year ago
Tim Stack df80e75586 [overlay] try to fix issues between overlay and selection (related to #1088) 1 year ago
Tim Stack fe50ba8f9b change en_US.utf-8 to en_US.UTF-8
related to #1089
1 year ago
Tim Stack a56cee67e6 [view-cursor] support for theming of the cursor line (#1088)
Add a role for the cursor line so that it can be themed.
The role is now optionally applied in textviews, which
fixes issues with other textviews having the wrong
selection highlight (e.g. filters, breadcrumb menus)

Still need to fix some issues with overlays...
1 year ago
Tim Stack 2062c7003b [views_vtab] add a movement column to lnav_views and other stuff (related to #1088)
I've plumbed the "movement" control through the lnav_views table
so that it can be controlled through the keymap definition instead
of hard-coded in hotkeys.cc.  (Trying to move most stuff out of
there...)

Removed listview_curses::lv_displayed_rows since it seemed to
cause some glitchy behavior when moving to the last line.

Call invoke_scroll() when changing the selection and change the
bottom status to reflect the selected line instead of just the
top.  Also, changing the selectability should set "needs update".

Change more commands to use the selection instead of the top.
1 year ago
Tim Stack 12d70f9996 [config] add missing enum terminator
the terminator is needed in the enum_value_t array

(I should really make it a real container...)
1 year ago
Tim Stack 3990517fcb
Merge pull request #1090 from FlorianMuenchbach/feature/cursor-mode
Feature/cursor mode
1 year ago
tstack 6bde93e886 Update tailer 1 year ago
Florian Münchbach b4e625030f Use cursor mode for 'LOG' and 'TEXT' view 1 year ago
Florian Münchbach bd81c4382d Add configuration option for cursor movement 1 year ago
Florian Münchbach 2b5c291a86 Revert 'cursor mode as default' 1 year ago
Florian Münchbach 56bb730bb4 Only reposition selection if not in view
This sets the selection to top if 'above' current top and to bottom if
'below' current bottom.
Feels a lot more natural that way.
1 year ago
Florian Münchbach d9dc1e9c7f Set selection to current view's top when toggling cursor mode 1 year ago
Florian Münchbach 572ed130aa Disable highlighting of selected line if not in cursor mode 2 years ago
Florian Münchbach d996335abd Use setter instead of directly modifying selection variable 2 years ago
Florian Münchbach 2c3b76c936 Move the displayed 'fields' details view with the cursor line 2 years ago
Tim Stack 9034bc2c76
Merge pull request #1079 from f9z/f9z-add-hhmmss.f-format
Add %H:%M:%S.%f format
2 years ago
Tim Stack 9e780e667b
Merge pull request #1072 from micttyl/patch-2
Make build work on FreeBSD
2 years ago
Tim Stack 554918b96c [goto] fix error reporting issue
Fixes #1078
2 years ago
f9z 2abcb358bc
Update time_formats.am 2 years ago
f9z 573fee227a
Update CMakeLists.txt 2 years ago
Florian Münchbach e426a63731 Allow only visible log rows being selected
This solves the issue of the cursor going out of the visible screen
area. Wrapped rows were previously counted as single row but displayed
as multiple which led to the problem.
2 years ago
Florian Münchbach a75d5c7cf3 Add hotkey binding for toggling the cursor mode 2 years ago
Florian Münchbach a8a668b40a Make the highlighting of the selected line more visible 2 years ago
Florian Münchbach 7f8b031b83 Use selected line instead of top 2 years ago
Florian Münchbach e5f7e5c8c5 Make lines selectable by default. 2 years ago
Florian Münchbach 1f9c08856f Highlight the selected line in text view. 2 years ago
Tim Stack cb55f588ec [themes] add missing scrollbar style
Fixes #1074
2 years ago
micttyl 1dfce25c56
Make build work on FreeBSD
Otherwise the build fails at the type checking
2 years ago
Tim Stack 8391de3ad6 [data_scanner] fix DT_H1 detection
Fix a broken refactor
2 years ago
Tim Stack 057be8c66d [lint] fix some coverity/clang-tidy issues 2 years ago
Tim Stack faeaf477ab [yajlpp] flesh things out a bit more 2 years ago
Tim Stack 468358a358 [port] one more endianness change 2 years ago
Tim Stack 3b1233be8f [port] hopefully the last endian issue 2 years ago
Tim Stack 9ff1daf032 [port] more endianness stuff 2 years ago
Tim Stack 5a70e62003
Merge pull request #1068 from sureshsundriyal/endianness
[Endianness] Make SpookyHash endianness-agnostic.
2 years ago
Tim Stack 9eb734ef7e [log_format] support for a separate sub-second field 2 years ago
Suresh Sundriyal 071ec72586 [Endianness] More code to make Spookyhash endianness-agnostic. 2 years ago
Suresh Sundriyal e2cddf28b2 [Endianness] Make SpookyHash endianness-agnostic.
Try and make SpookyHash endianness-agnostic using macros copied from:
https://github.com/k0dai/spookyhash
2 years ago
Tim Stack e135cf3334 [result] try to fix type conversion on s390x 2 years ago
Tim Stack e1e6ca30eb
Merge pull request #1067 from FaffeF/swedish-keyboard
Swedish keymap
2 years ago
Fredrik Forsell 59f3af535d Delete missing keymap from keymaps.am 2 years ago
Fredrik Forsell e310a18d7c Move mac specific binding to main sv keymap 2 years ago
Tim Stack f7b067db42 [ryml] remove unnecessary include that is triggering a compile error on some archs 2 years ago
Fredrik Forsell 8f8be6fd20 Clean up defaults, add mac layout
Remove items that are the same as the default keymap

Adds a Swedish Mac layout because shift-4 is not the same as on a
Windows keyboard
2 years ago
Fredrik Forséll 91a03b7b86
Update keymaps.am to include Swedish layout 2 years ago
Fredrik Forséll 6aba246bf3
Create keymap for Swedish keyboard layout
Avoids problems with shift-numbers etc
2 years ago
Tim Stack b86d272c29 [view_curses] remove fallback arg in to_attrs() 2 years ago
Tim Stack bddc6011ff [ansi] fix perf bug in eraser
Related to #1057
2 years ago
Tim Stack 07c57dae08 [json-log] change how lines that do not start with a curly are reported 2 years ago
Tim Stack 094b45f7ca [nits] minor fixes 2 years ago
Tim Stack d11b90bc6f [build] try to fix win build 2 years ago
Tim Stack 871ad1ad12 [dist] missed cleaning some files 2 years ago
Tim Stack 0fd9845580 [tests] test_tailer tweaks 2 years ago
Tim Stack df0d3aed0c [tidy] use auto_sqlite3 type alias 2 years ago
Tim Stack 7f513b2d1f [tidy] fixing some uninit issues 2 years ago
Tim Stack 93a53c4224 [fini] fix a destruction ordering issue 2 years ago
Tim Stack d940d9d5eb [logfile] plumb gzip header through file meta 2 years ago
Tim Stack 3f3e6dcbdc [highlight] turn off nesting for var highlight 2 years ago
Tim Stack a437d9fcc9 [pcre2pp] allocate match_data on the stack 2 years ago
Tobias Gruetzmacher 0958a9b189
Handle empty referer in access log (fixes #1059)
It seems most web servers log an empty referer as `"-"`, but GitLab's
nginx actually logs an empty field instead (`""`). Allow this in the
standard CLF format parser.
2 years ago
Tim Stack b7de0766c8 [highlighters] add some keywords 2 years ago
Tim Stack f1deeb5b74 [highlight] turn off nesting for some builtin highlighters 2 years ago
Tim Stack e0ecbdff10 [logfile] improve handling of ansi escapes
I think this covers the rest of the functionality
that needs to deal with ansi escapes.

Related to #1057
2 years ago
Tim Stack 9185518bda [top_status_source] try to fix prepared_stmt destruct order 2 years ago
Tim Stack 5060b38f99 [db] avoid reusing the same chart colors
This just covers the basic case and doesn't address reuse
with JSON values.

Related to #1047
2 years ago
Tim Stack 81fc0dc47e [tidy] remove duplicate struct names
Fixes #1004
2 years ago
Tim Stack b2abf94c2e [data_scanner] fix performance regression
Related to #1057
2 years ago
Tim Stack d79c1f9235 [regex101] accept pcre2 imports 2 years ago
Tim Stack 502c3b5f20 [sql] tweaks to parse_url() 2 years ago
Tim Stack 1effd99e5c [sql] add parse_url()/unparse_url() functions
Fixes #44
2 years ago
Tim Stack b536043050 [sql/json] json_group_array() returns {} instead of [] 2 years ago
Tim Stack 116b40f28c [bottom_status] fix out-of-bounds when with word-wrap
Related to #1058
2 years ago
Tim Stack bfa8ae2c42 [test] try to fix anon test 2 years ago
Tim Stack 01fe042a84 [build] try to fix link issue 2 years ago
Tim Stack 506d569b2f [build] missing include 2 years ago
Tim Stack bf3fe7fc2c [text] add some missing bound check on the filtered line index for the TEXT view
Fixes #1056
2 years ago
Tim Stack eb0bd4ac9a [anon] add an anonymizer to help with support requests
Fixes #1055
2 years ago
Tim Stack fadcea4403 [final] fix sqlite cleanup bug 2 years ago
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
2 years ago
Tim Stack eaa6e50a52 [log_format] perform more validations on log formats 2 years ago
Tim Stack af5213a98a [log_formats] change "no patterns have a capture" error to a warning 2 years ago
Tim Stack 132bd0adba [log_format] check for null 2 years ago
Tim Stack 664f45f641 [build] check for sqlite3_drop_modules
Fixes #1053
2 years ago
Tim Stack 5a63ece31d [pcre2] migrate from pcre to pcre2
Fixes #974
2 years ago
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.
2 years ago
Tim Stack 66ec8e553e [build] fix static var issue 2 years ago
Tim Stack 6ca01cd934 [line_buffer] fix some long-line handling 2 years ago
Tim Stack 7309352c97 [view_curses] add a unit type to line_range
Fixes #1033
2 years ago
Tim Stack a813482a54 [log_formats] JSON number time to local time zone
Fixes #1038
2 years ago
Tim Stack 679e9f0771 [build] try to fix brew build error 2 years ago
Tim Stack e047386441 [sql] extract() assumed too much about elements 2 years ago
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.
2 years ago