Commit Graph

166 Commits

Author SHA1 Message Date
Cristian Chiru
e2fe64e536 Fix for building on msys2; Closes #795 2022-02-20 01:35:40 +02:00
Timothy Stack
0de76b29c8 [files] fix refreshing files with errors and auto-switching to text view
Fixes #909
2021-09-03 12:33:11 -07:00
Timothy Stack
7eb1d17bef [files] highlight issues with opening files
Fixes #904
2021-08-27 22:37:10 -07:00
Timothy Stack
ce8397b5cf [view_curses] only write OSC;send-input in the test env
Fixes #895
2021-08-15 14:47:55 -07:00
Timothy Stack
9575f9c7d7 [view_curses] fix color pair allocation
fixes #839
2021-02-16 22:15:14 -08:00
Timothy Stack
43bb384199 fix color var lookup issue 2021-02-13 15:21:57 -08:00
Timothy Stack
f5e88b7158 [docs] add ARCHITECTURE.md and various other things 2021-02-13 12:41:48 -08:00
Timothy Stack
cac1175973 [services] initial pass at injecting services and a bunch of other stuff 2021-01-23 13:00:51 -08:00
Timothy Stack
8235f9af5d [tests] try to make scripty output readable 2021-01-08 14:08:52 -08:00
Timothy Stack
1d17ac7f29 [build] compress data files embedded in the binary to save some space
Fixes #763
2020-12-30 13:49:29 -08:00
Timothy Stack
7476dd5bb9 [misc] misc bugs 2020-12-24 22:29:38 -08:00
Timothy Stack
9c1f2ca4fa [view_curses] use VC_ROLE instead of VC_STYLE where possible and fix segv in mvwattrline
Fixes #806
2020-12-09 15:35:06 -08:00
Timothy Stack
836fc83203 [pretty-print] pay attention to hidden fields
Fixes #653
2020-12-06 23:52:09 -08:00
Timothy Stack
32f112b8de [formats] add w3c extended log format impl
Fiexes #798
2020-12-05 21:51:46 -08:00
Timothy Stack
51d1204a96 [arc] add content hash to archive temp dir and tech debt 2020-11-17 10:04:23 -08:00
Timothy Stack
9d87cfa2f0 [debt] more tech debt 2020-11-12 21:58:40 -08:00
Timothy Stack
f192cb7c3e [input_dispatcher] fix handling of unicode input
Fixes #791
2020-11-09 22:18:17 -08:00
Timothy Stack
00dcd86f79 [view_curses] always apply utf adjustments in mvwattrline
doh

Fixes #786
2020-11-04 10:50:37 -08:00
Timothy Stack
df3df8369c [session] stages 2020-10-28 21:24:23 -07:00
Timothy Stack
5e42b4cb8a [debt] include cleanup 2020-10-28 21:23:46 -07:00
Timothy Stack
a63cf003a0 [themes] move highlights to theme definitions
Fixes #783
2020-10-28 21:19:57 -07:00
Timothy Stack
48d4b51fd7 [view_curses] fix mvwattrline for utf chars
Fixes #675
2020-09-21 06:53:05 -07:00
Timothy Stack
ce0383dee1 [build] fix some warnings 2020-09-11 23:10:11 -07:00
Timothy Stack
d0f2f9e800 [view_curses] fix attribute range when the line contains UTF-8 chars
Fixes #745
2020-08-27 13:42:05 -07:00
Timothy Stack
bda6fe46b1 [view_curses] minor fix for ansi display 2020-08-15 21:58:19 -07:00
Timothy Stack
eef28d61a6 [view_curses] fix out-of-bounds access in mvwattrline 2020-04-19 14:32:34 -07:00
Timothy Stack
9db2dfa7a4 [theme] default to using default colors and, if default coloring is not enabled, turn -1 into white/black for fg/bg 2019-10-23 06:09:47 -07:00
Timothy Stack
56a341f7f8 [view_curses] colors
Defect Number:
    Reviewed By:
   Testing Done:
2019-08-07 09:46:19 -07:00
Timothy Stack
b81b35c866 [log-view] in time-offset mode, show negative times for messages before the first mark
Prototype for #395
2019-06-26 21:52:40 -07:00
Timothy Stack
02c53976b4 Some refactoring for the line buffer and other cleanups
Fixes #649
2019-06-15 06:32:02 -07:00
Timothy Stack
1fc24ecabf [bin2c] improve building of data files that are incorporated into the binary 2019-05-15 09:13:56 -07:00
Timothy Stack
bb6f31eaa0 [theme] styling for scrollbars 2019-05-12 06:53:40 -07:00
Timothy Stack
fb7d6eafaf [build] some refactoring of files 2019-05-08 05:30:59 -07:00
Timothy Stack
e8f4020c67 fix crash 2019-05-03 14:17:56 -07:00
Timothy Stack
06d1098211 [config] initial support for themes
For #422

Still more to do
2019-05-03 13:50:19 -07:00
Timothy Stack
5fff4d8784 [help] add some initial help text for search/SQL prompts
Also:
  * You can now "scroll out" of the visual editor to
    return to the main view.  This should alleviate the
    frustration of pressing up/down arrows thinking the
    main view should move but, really, you're stuck in
    the editor.
  * The three-dot-ellipsis for hidden fields has been
    replaced with a unicode vertical ellipsis so that
    less space is taken up.
2019-01-24 22:05:15 -08:00
Timothy Stack
2c5bfc830e xterm fix wasn't quite right... 2018-11-17 07:45:18 -08:00
Timothy Stack
f6a84ed081 [display] fix colors on a plain xterm display 2018-11-13 21:57:47 -08:00
Timothy Stack
2345a32423 [filter] add panel that shows the set of filters
Initial version, still needs some cleanup
2018-11-09 09:45:19 -08:00
Timothy Stack
686ce639a0 [build] use cmath instead of math.h
Defect Number:
    Reviewed By:
   Testing Done:
2018-10-02 22:01:18 -07:00
Timothy Stack
6a3b1f2d94 Search results are not reversed for bookmarked lines
Fix #313

Sorry for the delay
2018-10-01 07:08:21 -07:00
Timothy Stack
f241704a93 [readline] do a fuzzy match if the prefix match fails to find anything
Prototype for #541
2018-09-13 14:27:49 -07:00
Timothy Stack
59c31925de [log_format] missing highlight colors
The highlighter copy constructor wasn't copying the colors over
2018-07-24 07:48:16 -07:00
Timothy Stack
5689984702 [yajlpp] use pointer to member over nullobj() 2018-05-25 06:32:01 -07:00
Timothy Stack
4ccae48aea [bookmarks] add support for tags and comments for log lines
Initial work for #446 and #447
  TODO: filtering on tags/comments

Also did a bunch of clang-tidy cleanups and improvements to
the online help.
2018-05-17 07:06:50 -07:00
Timothy Stack
7fb881222d [pretty] highlight log messages in the pretty view as in the normal log view 2018-05-10 06:44:03 -07:00
Timothy Stack
e001d87862 [view_curses] fix for multiple tabs 2018-04-04 07:57:13 -07:00
Timothy Stack
7c5fc44f7d [view_curses] fix highlighting when a line contains unicode
Take into account unicode codepoint lengths when adjusting
attribute ranges
2018-04-04 07:41:09 -07:00
Timothy Stack
db0d2fc231 [view_curses] fix graphics rendering 2018-04-03 07:57:04 -07:00
Timothy Stack
9f91d3b447 [log-view] display the unique parts of the file name instead of just the base
Instead of just displaying the base name of the file, try to include some
additional parts of the path that make a unique string.
2018-04-03 07:36:09 -07:00
Timothy Stack
5268872d1e [build] oops 2018-04-02 08:10:14 -07:00
Timothy Stack
ecb1af304d [view_curses] fix search highlights
Cleanup the styling code, never really redid it after
switching to use mvwin_wchnstr

Fixes #493
2018-04-02 08:02:41 -07:00
Phil Hord
3f7f80e32c Squash various compiler warnings
Unused-result from sensitive APIs, printf/scanf formatting types, set
but never used variables, and uninitialized variables.

Also there's one select(enum) that doesn't cover all cases.
2018-03-29 10:49:45 -07:00
Phil Hord
eee7d0ddfc Squash a bunch of signed/unsigned warnings 2018-03-29 10:49:38 -07:00
Timothy Stack
ef34a6aaaf [search] display lines matching the search in preview instead of jumping to the first
Jumping around can be disruptive, instead show matches in
the preview window.
2018-03-28 07:25:10 -07:00
Timothy Stack
74b58ed9fc [highlights] allow the highlight color to be specified in log formats
Defect Number:
    Reviewed By:
   Testing Done:
2017-12-29 06:51:09 -08:00
Timothy Stack
f25980df03 [ui] rework the default colors change
The default colors change resulted in some parts of the lnav
UI being colored incorrectly.  I've reworked it a bit so that
the ansi color pairs are preserved and the default colors are
only used with the color pairs for roles.  I've also replaced
references to ansi colors with roles in a few places to make
things work consistently.
2017-12-02 22:11:34 -08:00
Kevin Pham
52f78cfb75 add config option to use default fg/bg colors 2017-09-14 18:52:29 -07:00
Timothy Stack
f6e01e9ad0 [build] fix for last checkin 2017-08-01 10:28:27 -07:00
Timothy Stack
753e12d606 [unicode] do not clobber wide chars when applying attributes
Attempt to address #414
2017-08-01 10:17:30 -07:00
Timothy Stack
8ea51a6fd8 [formats] support for CSV/TSV log formats
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-23 07:11:21 -07:00
Timothy Stack
4cedde9a43 [help] add builtin help to the main help text as a reference
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-14 22:49:36 -07:00
Timothy Stack
78119dc9f1 fixing some minor issues
Fixes #255
2017-04-05 07:05:19 -07:00
Timothy Stack
00ebd10d71 [cmds] do a dry-run of a command to check for errors
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-02 07:17:31 -07:00
Timothy Stack
411ea1fbee [help] show help text for SQL functions
Defect Number:
    Reviewed By:
   Testing Done:
2017-03-31 07:01:11 -07:00
Timothy Stack
8776f6a703 [sql] do some minimal parsing/annotation of SQL statements
Defect Number:
    Reviewed By:
   Testing Done:
2017-03-26 06:02:53 -07:00
Timothy Stack
b296e84a65 [format] color extra json fields that are identifiers 2016-10-29 22:16:45 -07:00
Timothy Stack
b392886f0c [highlight] choose highlight color based on the regex
Defect Number:
    Reviewed By:
   Testing Done:
2016-10-25 06:42:05 -07:00
Timothy Stack
834fea5f73 oops, left debugging stuff in 2016-05-01 20:37:45 -07:00
Timothy Stack
82f970c09e [config] add a config option to control A_DIM for text
Fixes #298
2016-05-01 20:35:37 -07:00
Timothy Stack
fdc2748e3e [spectro] add a spectrogram view that works with known message fields 2016-03-20 15:15:50 -07:00
Timothy Stack
80e5e8fcce [logview] add a line with summary information to the log view 2016-03-13 22:22:27 -07:00
Timothy Stack
53e2d92eef [ui] highlight out-of-time-order messages in yellow with an underline 2016-03-03 06:05:26 -08:00
Timothy Stack
ecd3eb05bc [coverity] next set of fixes 2015-09-19 21:13:46 -07:00
Timothy Stack
b8b16bd8e5 [view] differentiate messages from different log files 2015-05-13 22:13:47 -07:00
Suresh Sundriyal
fe6f3ec1ae [-Wsign-compare] view_curses.hh 2015-04-01 21:50:34 -07:00
Timothy Stack
4ea800a8f8 [build] messed up sigset init 2015-03-23 21:25:19 -07:00
Timothy Stack
219a4baad1 [ui] lower the index rebuild frequency when the command line is active 2015-03-23 21:20:55 -07:00
Timothy Stack
d557002724 [format] add OpenAM log formats 2014-06-17 21:29:42 -07:00
Timothy Stack
112986da79 [view_curses] fix for attr ranges that cover tabs 2014-03-07 23:42:43 -08:00
Timothy Stack
affff589a4 [view_curses] fix mvwattrline to work with overlapping styles better 2014-03-07 23:31:12 -08:00
Timothy Stack
b6baae7730 [debug] more debugging stuff
Defect Number:
    Reviewed By:
   Testing Done:
2014-03-06 06:58:49 -08:00
Timothy Stack
f94015e5b5 [readline] highlight pcre syntax in the search prompt 2014-03-04 07:38:33 -08:00
Timothy Stack
aac5fada48 [nits] small changes to fix clang analyzer errors 2014-02-23 12:34:57 -08:00
Timothy Stack
8a61902622 [valgrind] fix an issue in mvwattrline turned up by valgrind 2014-02-20 07:15:03 -08:00
Timothy Stack
e200f60a96 [format] avoid making a copy of the string in logline_value and reduce UI updates 2014-01-25 12:13:41 -08:00
Timothy Stack
f4aeb11ad5 [view_curses] use a vector for string attributes
Using a map/multimap is too expensive/complex for how many
attributes we have on a line due to how many tree nodes
need to be malloced/freed.  Just using a vector should be
good enough and a lot faster.
2014-01-25 09:29:35 -08:00
Timothy Stack
2fa081c00a [cygwin] more windows nits and cleanup 2014-01-13 22:29:14 -08:00
Timothy Stack
968fcb50a5 [cppcheck] some cppcheck nits and other bugs 2013-09-10 20:13:08 -07:00
Timothy Stack
37283d0afb [nits] do not complain about no formats 2013-07-30 21:21:28 -07:00
Timothy Stack
644c2754b3 [curses] suppressed flash 2013-07-27 12:07:05 -07:00
Timothy Stack
c28b9f1316 [highlight] add some more highlighting and fix some other nits 2013-07-13 07:36:48 -07:00
Timothy Stack
9ac75c6b81 [view curses] missed reversing colors 2013-07-01 06:34:52 -07:00
Timothy Stack
79c4038128 [log time] add a command to adjust log message times 2013-06-30 16:43:08 -07:00
Timothy Stack
2d33cb7f7e [log format] some more log format work 2013-06-29 11:00:34 -07:00
Timothy Stack
2cd356b4c5 [log format] some more work to externalize log formats; color identifiers in logs 2013-06-29 06:22:24 -07:00
Timothy Stack
c60f432863 [view_curses] use mvchgat in mvwattrline since it seems to work fine now and is much faster 2013-06-26 06:22:33 -07:00
Timothy Stack
65c00483cd [color] fix a bug introduced into the highlight color sequence 2013-06-18 08:07:08 -07:00
Timothy Stack
5a7d6dab2c [cleanup] uncrustify 2013-06-15 18:07:50 -07:00
Timothy Stack
3e54f1d8cc [status] add stitching to the status line 2013-06-14 18:12:52 -07:00