Commit Graph

1400 Commits (0b822739ea8e83150dcb072e6b7bb93cb2ace3d0)
 

Author SHA1 Message Date
Timothy Stack 36d5ff8b86 [lo-fi] display fixes
Fixes #513
Fixes #516
6 years ago
Timothy Stack ab2980f5dd [build] remove meta-sessions test dir 6 years ago
Timothy Stack f3d37cd4d6 [build] json_contains issue 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 b8fc956677 [search-table] match against the whole line and not just the body 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 697d22705d [generic_log] include more of the line in the body for a generic log message 6 years ago
Timothy Stack c83c31fb65 [sql-view] use A_REVERSE with graphable column names since it's hard to see the color otherwise 6 years ago
Tim Stack a8d675344f
Merge pull request #512 from MonokelPinguin/fix-musl-build-issues
Fix some build issues with musl as libc
6 years ago
Nicolas Werner 5594120f1a Use CTRL macro from readline instead of CEOF from ttydefaults.h
The ttydefaults.h header is not available on musl. Readline provides the
same functionality with its CTRL macro and it makes the intent of the
code a bit clearer (that we check for CTRL-D).
6 years ago
Nicolas Werner f15add0abb Don't dereference FILE*
This is undefined behavour and doesn't work on musl
6 years ago
Timothy Stack 3293388165 [generic_log] allow optional stars at the front of the log messages 6 years ago
Timothy Stack 873fc4dc2e [logfile_sub_source] handle closed file 6 years ago
Tim Stack c5824acb55
Merge pull request #509 from emilianobonassi/master
[fmt] add AWS Application Load Balancer (ELB v2) format
6 years ago
Emiliano Bonassi 37f46af7a6 [fmt] add AWS Application Load Balancer (ELB v2) format 6 years ago
Timothy Stack 809159140c [unique_path] fix an infinite loop when files rolled 6 years ago
Timothy Stack af36896f50 [sanitize] some fixes for issues found in the address sanitizer 6 years ago
Timothy Stack a4faac4628 [tests] update drive_mvwattrline 6 years ago
Timothy Stack e001d87862 [view_curses] fix for multiple tabs 6 years ago
Timothy Stack 7c5fc44f7d [view_curses] fix highlighting when a line contains unicode
Take into account unicode codepoint lengths when adjusting
attribute ranges
6 years ago
Timothy Stack db0d2fc231 [view_curses] fix graphics rendering 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
Timothy Stack 2ed99695a2 [data_parser] fix for empty list 6 years ago
Timothy Stack 1ed0ff7e0f [pretty-print] check if lines are XML before indenting them as such
Also, update the scanner for changes to re2c
6 years ago
Timothy Stack 5268872d1e [build] oops 6 years ago
Timothy Stack ecb1af304d [view_curses] fix search highlights
Cleanup the styling code, never really redid it after
switching to use mvwin_wchnstr

Fixes #493
6 years ago
Timothy Stack 6b9ca15f21 [tests] update expected output 6 years ago
Timothy Stack 0a8b740807 Return early if json parsing fails
Fixes #505
6 years ago
Timothy Stack e4432cfdeb [tests] fix an issue with the last commit 6 years ago
Tim Stack 6e0bb175e9
Merge pull request #508 from phord/cleanup-warnings
Cleanup warnings
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
Phil Hord eee7d0ddfc Squash a bunch of signed/unsigned warnings 6 years ago
Phil Hord 5a20829ed4 dynamic exception specifications are deprecated in C++11
Remove exception specifications to appease modern compilers and reduce
warning counts.

I sort of hate to remove all these exception-decls, but they are in fact
deprecated, and my compiler loves to complain.
6 years ago
Phil Hord 121be1a558 Add updated definition to squash warning
_BSD_SOURCE is deprecated and using it emits warnings unless you also
define _DEFAULT_SOURCE. Let's define _DEFAULT_SOURCE.
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 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.
6 years ago
Timothy Stack 36932b148d [hotkeys] cleanup the last commit 6 years ago
Timothy Stack 8257f188cb [hotkeys] change the filename hotkey to left/right arrow 6 years ago
Tim Stack 4760765c1d
Merge pull request #507 from phord/toggle-filenames
Toggle filenames attribute fixes
6 years ago
Phil Hord 95e294decb fix failing unit test
The help output changed with the toggle-filenames option, but
the test for help wasn't updated.

Maybe the help needs to be updated a bit to include the two
filename column modes, now that I think about it.  But we should
discuss the merits of that first, I suppose.
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
Adam Spiers 47a7b5ce02 fix std::remove call in path.h
It's trying to use std::remove from cstdio.  Apparently path.h isn't
currently used for anything, since it didn't even compile ...
6 years ago
Tim Stack 09e7e14167
Merge pull request #506 from phord/master
string2level uses wrong string length
6 years ago
Phil Hord 4d1d782007 string2level uses wrong string length
It should pass only the matched length, not the original string length.
Caught by -fsanitize=address while trying to parse "some string (DEBUG)"
Probaby deserves a unit test.
6 years ago
Timothy Stack 9e8efae48e [vt52] add mapping for KEY_HOME if it's not found
Fixes #501
6 years ago
Timothy Stack ebf20a746b [commands] fix completion for delete-filter 6 years ago
Timothy Stack 88a192aeeb [line_buffer] if the size of the file is known, reduce the requested buffer size and ignore attempts to shrink the buffer 6 years ago
Timothy Stack fe6781d3e8 [reltime] support milliseconds when specifying a partial absolute time
Fixes #499
6 years ago