Tim Stack
8118c5dbe4
[sections] fix some issues with doc sections in logs
1 year ago
Tim Stack
e77ef5c8cd
[cursor] breadcrumb performers should move selection instead of top
1 year ago
Tim Stack
c8764da9d2
[bunyan] add test for this format and add "src" field
...
Related to #1136
1 year ago
Tim Stack
57486af178
Merge pull request #1136 from TobiX/bunyan
...
Add support for the bunyan JSON log format
1 year 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
1 year ago
Tim Stack
a1cfe34a7b
[lss] fix handling of ansi escapes in json log
1 year ago
Tim Stack
5db31300c9
[logfile] avoid reading full log messages that are bigger than the line_buffer max size
1 year ago
Tim Stack
0083eaf675
[humanize] pad out duration to align fields
...
Fixes #933
1 year ago
Tim Stack
026031dcd3
[config] remove GLOB_NOCHECK when looking for git dirs
...
Fixes #1109
1 year ago
Tim Stack
82b10e2b23
[readline] handle width properly
...
Fixes #1100
1 year ago
Tim Stack
8f8874c718
[cursor] update docs and more tweaks
1 year ago
Tim Stack
cfb7ac1fdd
[lss] don't add an empty style attr
1 year ago
Tim Stack
2e409a8251
[vmw_log] fix for capturing sub=
1 year ago
Tim Stack
2ff9f63a79
[hotkeys] use selection instead of top in a few more places
1 year ago
Tim Stack
06385bc019
[cursor] ignore key repeat when searching forward
1 year ago
Tim Stack
e3bebedbad
[cursor] following should only be done when the last line is selected
1 year ago
Tim Stack
fe7e89121f
[listview] set selection to 0 when pressing 'b'/'pgup' and the top is 0
1 year ago
Tim Stack
f44e04d854
[cursor] some more fixes for the new cursor support
...
related to #1088
1 year ago
Tim Stack
6f0f66a418
[json] fix json log handling with multiple lines in a field
1 year ago
tstack
49dcccbaae
Update tailer
1 year ago
tstack
ab12671308
Update tailer
1 year ago
tstack
7b2ec36315
Update tailer
1 year ago
Tim Stack
7ccb467695
[build] fix some more warnings
1 year ago
Tim Stack
91730b7c3c
[cleanup] fix some warnings
1 year ago
Tim Stack
193fd7d8cc
[fmt] bump version to 10.0.0
1 year ago
Tim Stack
51841d40b8
[view] add selection column to lnav_views
...
related to #1149
1 year ago
Tim Stack
5e8800872b
[build] try using prebuilt image
1 year ago
Tim Stack
dd21bdfd82
[text_filter] scrub ansi when testing a filter
...
Related to #1163
1 year 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
2 years ago
Tim Stack
65b0d78143
[log_format/json] appending an empty string can trigger an assert
...
Fixes #1132
2 years ago
Tim Stack
db1fc92fdd
[ansi] missed resizing a buffer when scrubbing ansi
...
Fixes #1135
2 years ago
Tobias Gruetzmacher
d675a8d10e
Add support for the bunyan JSON log format
...
See https://github.com/trentm/node-bunyan
2 years 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>
2 years ago
Tim Stack
3e7a75c00b
[capture] don't save any empty stdin
2 years ago
Tim Stack
5266054af0
[config] fix location of crash logs
...
During some refactoring, I messed up the crash file location
2 years ago
Tim Stack
f34a5cf589
[docs] update docs for half page hotkeys
2 years 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
2 years ago
Tim Stack
2c981dbe25
[filter-panel] only add filter-expr possibilities for the log view
2 years ago
Tim Stack
df80e75586
[overlay] try to fix issues between overlay and selection (related to #1088 )
2 years ago
Tim Stack
fe50ba8f9b
change en_US.utf-8 to en_US.UTF-8
...
related to #1089
2 years 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...
2 years 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.
2 years 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...)
2 years ago
Tim Stack
3990517fcb
Merge pull request #1090 from FlorianMuenchbach/feature/cursor-mode
...
Feature/cursor mode
2 years ago
tstack
6bde93e886
Update tailer
2 years ago
Florian Münchbach
b4e625030f
Use cursor mode for 'LOG' and 'TEXT' view
2 years ago
Florian Münchbach
bd81c4382d
Add configuration option for cursor movement
2 years ago
Florian Münchbach
2b5c291a86
Revert 'cursor mode as default'
2 years 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.
2 years ago
Florian Münchbach
d9dc1e9c7f
Set selection to current view's top when toggling cursor mode
2 years 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
Tim Stack
84d2f56189
[formats] add / to pattern in unifi
2 years ago
Tim Stack
8d6780e089
[ptimec_rt] restore '%a' handling
2 years ago
Tim Stack
eb403f540f
[text_format] recognize .markdown extension
2 years ago
Tim Stack
8e33c599f1
[regexp_vtab] match_index should reset for the next log line
2 years ago
Tim Stack
c69b398944
[tutorial] add more steps to the first tutorial
2 years ago
Tim Stack
1f24ab3074
[leak] fix leak of pcrepp object
2 years ago
Tim Stack
7a1ade581a
[db] fix leaked db connection
2 years ago
Tim Stack
b5cb38d454
[user_notifications] treat message as markdown
2 years ago
Tim Stack
ff91cfc3a0
[tutorial] some more nits
2 years ago
Tim Stack
915f583ab0
[cmake] add missing time format
2 years ago
Tim Stack
311798e1f8
[main] try to fix cleanup of sqlite
2 years ago
Tim Stack
cebc867c6b
[cmds] reduce next/prev mark errors to info to make them less noisy
2 years ago
Timothy Stack
220317eb16
[demo] build/deploy stuff for ssh-based demo
...
fix structure name clash
2 years ago
Tim Stack
4b307b5b4f
[build] missed new file
2 years ago
Tim Stack
87791ec94b
[markdown] add support for going to an anchor
2 years ago
Tim Stack
fd956c66d3
[field_overlay] fix known key size when there's a prefix
2 years ago
Tim Stack
d01db38d51
[init] fix handling of unknown TERM
2 years ago
Tim Stack
5751fe89c4
[markdown] recognize more code fence langs
2 years ago
Tim Stack
0d1304e8ec
[ansi_scrubber] fix handling of invalid utf
2 years ago
Tim Stack
a2c35140ba
[data_scanner] hack to recognize some windows paths
...
Fixes #1018
2 years ago
Tim Stack
23ab1abd73
[data_scanner] tweaks to fix slow build times and a couple warnings
2 years ago
Tim Stack
7310f9dcec
[formats] add description and level properties to tag definitions
2 years ago
Tim Stack
412a3c2a70
[formats] restrict tag name characters
2 years ago
Tim Stack
53c9c5cb51
[logfile] move bookmark_metadata to logfiles
2 years ago
Tim Stack
ad1897ba15
[field-overlay] display the timestamp format
2 years ago
Tim Stack
5abd483029
[ansi_scrubber] handle unicode in overstrike code
2 years ago
Tim Stack
9c8cc04a99
[cmds] :goto was not handling timestamps with spaces
2 years ago
Tim Stack
8e734eaf07
[cover] remove some dead code
2 years ago
Tim Stack
74c2237296
[loader] add some help text to the error for values without a corresponding capture
2 years ago
Tim Stack
001f26d066
[loader] make sure values defined in formats have a corresponding capture in at least one pattern
2 years ago
Tim Stack
072fad4173
[tests] coverage for json SQL funcs
2 years ago
Tim Stack
d020168860
[meta] highlight comments/tags in searches
2 years ago
Tim Stack
a1de8f1fc1
[search-table] fix clearing of message data
2 years ago
Tim Stack
7ef5cf6ba3
[session] some more session docs
2 years ago
Tim Stack
0603b1e756
[session] support for :hide-file and some related fixes
2 years ago
Tim Stack
13f161d21e
[build] fix some warnings
2 years ago
Tim Stack
c824b64840
[filter] fix a case where top time was not maintained when a filter was applied
2 years ago
Tim Stack
270d44c6b4
[remote] fix handling of absolute symlinks
2 years ago
Tim Stack
f73e71cf30
[perf] issues with matching filenames and ansi scrubbing
2 years ago
Tim Stack
1e63cfc5ae
[lss] fix issue with crumbs
2 years ago
Tim Stack
d9e699fd09
[docs] add docs for new SQL tables
2 years ago
Tim Stack
061e3690de
[build] fix 32-bit build
2 years ago
Tim Stack
ca7efa822f
[spectro] show DB overlay and handle values in an empty range
2 years ago
Tim Stack
ebe2e0d8e6
[docs] add config panel screenshots
2 years ago
Tim Stack
1fd274ce24
[docs] some more updates to docs
...
Also, add support for overstruck/backspace-underscore for
doing bold/underline.
2 years ago
Tim Stack
c52615c424
[docs] start updating screenshots
2 years ago
Tim Stack
3df07139b3
[line_buffer] fix long line issue
...
Fixes #980
2 years ago
Tim Stack
4e74491e84
[blog] post about markdown support
2 years ago
Tim Stack
bbedca5940
[export-session] add missing line-feeds
2 years ago
Tim Stack
01405ffbd6
[log-crumbs] turn off semantic highlights for crumbs
2 years ago
Tim Stack
1832303bde
[lo-fi] try to maintain the position of lines on the display
...
Fixes #815
2 years ago
Tim Stack
8941f28c3e
[time_util] cap large year in tm2sec() instead of returning BAD_DATE
2 years ago
Tim Stack
c5d11f36e1
[logfile] need to flush the buffer for single line files as well
2 years ago
Tim Stack
3ade11a449
[remote] clear file error on reconnect
...
Fixes #940
2 years ago
Tim Stack
7077495389
[crash] missed expanding the alt buffer in line_buffer
2 years ago
Tim Stack
4e0dab843a
[session] try avoid using absolute file paths in session exports
2 years ago
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.
2 years ago
Tim Stack
c5b8bd0ba4
[ui] handle resizes during sql execution
...
Also, fix reporting of init command errors
2 years ago
Tim Stack
7c3df44fc4
[pretty] handle ANSI escapes
...
Fixes #1020
2 years ago
Tim Stack
056754a926
[session] some improvements to session export
2 years ago
Tim Stack
c6d7206a1e
actually remove the flag
2 years ago
Tim Stack
ab3f01bbf5
[config] GLOB_BRACE is not supported in musl
2 years ago