Commit Graph

102 Commits (0dff822adedc12ea11b529fca0fb13c745021759)

Author SHA1 Message Date
Timothy Stack 3b0168025d [cmds] add support for hiding files 4 years ago
Timothy Stack d8a083f0fe [filters] add :toggle-filtering command 4 years ago
Timothy Stack ce0383dee1 [build] fix some warnings 4 years ago
Timothy Stack a3264fb104 [log_format] fix issues with year rollover
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 4fa4a7057b [log_format] gracefully handle a misconfigured log format
Fixes #742
4 years ago
Timothy Stack 2a37a9ce7f [build] fix the previous checkin 4 years ago
Timothy Stack 45630545ed [lss] fix identifier highlighting 4 years ago
Timothy Stack e442f84e80 [textview] pause loading of files by pressing =
Fixes #670
5 years ago
Timothy Stack b81b35c866 [log-view] in time-offset mode, show negative times for messages before the first mark
Prototype for #395
5 years ago
Timothy Stack 02c53976b4 Some refactoring for the line buffer and other cleanups
Fixes #649
5 years ago
Timothy Stack 06d1098211 [config] initial support for themes
For #422

Still more to do
5 years ago
Timothy Stack 21c5c52843 [format] allow multiple log format patterns per log file
This tries to address #624
5 years ago
Timothy Stack 43243c7ba3 [build] revive freebsd release build
Some misc fixes for filtering as well
5 years ago
Timothy Stack 7dfa0e9dd4 [textview] highlights that start from the beginning of the line are not working in the log view
The log view prefixes lines with some extra characters and they
were mistakenly being included when performing the highlight
regex.

Fixes #590
6 years ago
Timothy Stack a63b6a199c [filter] in the filter editor, use "t" to toggle the type of filter
Related to #423
6 years ago
Timothy Stack 814ad03ec9 [view] keep a history of view positions
Fixes #577
6 years ago
Timothy Stack 1a08eb0d12 [cmds] allow commands to set the prompt
Fixes #574 and #573
6 years ago
Timothy Stack ec82ecda62 [filter] display the number of filters 6 years ago
Timothy Stack 2345a32423 [filter] add panel that shows the set of filters
Initial version, still needs some cleanup
6 years ago
Timothy Stack b1a6d06490 [lss] refactor the force flag during indexing and some other stuff 6 years ago
Timothy Stack a9a05af736 [logfile_sub_source] revert sorting change for now 6 years ago
Timothy Stack 14599839ed [logfile_sub_source] fix sorting 6 years ago
Timothy Stack 2589345e5c [perf] improve initial indexing times 6 years ago
Timothy Stack 9664b015c6 [textview] preserve location in view when changing filters
Defect Number:
    Reviewed By:
   Testing Done:
6 years ago
Timothy Stack 5689984702 [yajlpp] use pointer to member over nullobj() 6 years ago
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.
6 years ago
Timothy Stack 7fb881222d [pretty] highlight log messages in the pretty view as in the normal log view 6 years ago
Timothy Stack 873fc4dc2e [logfile_sub_source] handle closed file 6 years ago
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.
6 years ago
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.
6 years ago
Timothy Stack 87cbab1ac3 [index] do a full sort if new lines have a timestamp before the last indexed 6 years ago
Timothy Stack 36932b148d [hotkeys] cleanup the last commit 6 years ago
Phil Hord 4d4ac9b8b0 Add another filename mode to show file path
Add a separate BASENAME bit to distinguish from the FILENAME bit.
When BASENAME is active show the base filename in the filename column.
When FILENAME is active show the whole path for each filename.  Cycle
through the three modes with toggle_filename() still. Note that we are
never in both FILENAME and BASENAME mode.

The user can cycle through the three modes by pressing the hotkey an
extra time.  First press shows the basename, second press shows the full
path (filename), and the third press hides the filename column again.
6 years ago
Phil Hord 81974c6bdc Fix filename column width and attributes
Display the basename instead of the whole path for each file when
the filename column is displayed. Make the column the same width all
the time, taking the maximum basename width of all loaded files and
padding with spaces.

Also fix the attributes when the filename column is displayed.  Insert
the correct filename-matching color for as many characters as we add for
the filename column.  Use the full filename when looking up the color
because we don't want files in different paths to have the same color,
and we don't want the color to change based on whether we are displaying
the base or the whole filename.
6 years ago
Adam Spiers 9ffbc1ac46 make '.' toggle prefixing each log line with filename
Mostly addresses #277.  I won't claim it fully closes it, because there
are at least two ways it could be improved:

1. It doesn't draw a nice coloured divider in the column after the
   filename, and that would provide maximum visual clarity and
   consistency with the existing presentation.

2. It would be nice if the filenames weren't shown on every single line,
   but only on the first line of a contiguous chunk of log lines from a
   single file (or on the top line of the screen if the first line of
   the chunk was already scrolled off the top).

3. It doesn't yet include the filename in the text copied to the
   clipboard when the 'c' hotkey is pressed.
6 years ago
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.
7 years ago
Timothy Stack d18b344489 [perf] avoid an initial forced index rebuild
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 8ea51a6fd8 [formats] support for CSV/TSV log formats
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 78119dc9f1 fixing some minor issues
Fixes #255
7 years ago
Timothy Stack 1a87184c82 [log] allow parts of log messages to be hidden
Fixes #412
7 years ago
Timothy Stack bc91a8e281 [log-view] show search hits in the left file line with a reverse-video marker
If the search-hit is past the right side of the screen (as mentioned in #394)
we should try to make that more obvious by adding a highlight on the left.
8 years ago
Timothy Stack 26cd9f5930 [ptime] make sure the full time stamp is matched
Fixes #389
Fixes #390
8 years ago
Timothy Stack 592ee60693 [log] fix rewriting machine-oriented timestamps
Fixes #371
8 years ago
Timothy Stack b296e84a65 [format] color extra json fields that are identifiers 8 years ago
Timothy Stack 41854cf637 [json-log] custom date formats
Fixes #341
8 years ago
Timothy Stack efc74a5a0e [docs] some minor doc updates 8 years ago
Timothy Stack 4f05af6408 [time] add support for TAI64N timestamps
Fixes #300
8 years ago
Timothy Stack 7a6429519f [summary-line] change error count to error rate and do some cleanup on message levels 8 years ago
Timothy Stack 13c90726a2 [tests] some more testing and stats for logfiles 8 years ago
Timothy Stack fdc2748e3e [spectro] add a spectrogram view that works with known message fields 8 years ago