Commit Graph

51 Commits (2589345e5cce522eb9491a09227b315104a650e2)

Author SHA1 Message Date
Timothy Stack 2589345e5c [perf] improve initial indexing times 6 years ago
Timothy Stack 2e10ca09d0 [line_buffer] fix crlf handling in log files 6 years ago
Timothy Stack 3e457e30ca [json-format] fix json file recognition for crlf line-endings
Fixes #528
6 years ago
Timothy Stack d805dee15f [line_buffer] avoid a crash with binary files, but still not handled well 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
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 352d16f4cf [line-buffer] fix resize to use the requested size
When reading in a full message, we need to make sure the buffer
is large enough to accommodate the full thing.
6 years ago
Timothy Stack 34d1422b76 [highlight] only highlight keywords in text files
Fixes #408
7 years ago
Timothy Stack 7f6b352143 set file size for gzip files 8 years ago
Timothy Stack e8f400abfa [logfile] truncation detection was not taking into account compressed files 8 years ago
Timothy Stack b6e10f4ee4 bump the max line size to try and solve some json log issues 9 years ago
Timothy Stack ecd3eb05bc [coverity] next set of fixes 9 years ago
Timothy Stack 69e927e91b [coverity] some more fixes 9 years ago
Timothy Stack 82574e2e27 [line_buffer] missed invalidating a sb ref 9 years ago
Timothy Stack 0452bc0438 [build] some more sign-compare stuff 9 years ago
Timothy Stack 6a90dd9bc2 copy search terms to OS-Xs find clipboard
Fixes #108
10 years ago
Timothy Stack cfa628f6c4 various fixes
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 7664b75a87 missed invalidating shared buffer refs when loading new data 10 years ago
Timothy Stack a71ca1f1ca [filter] some improvements to the core filtering code 10 years ago
Timothy Stack ccf29b3bac [coverity] some cleanup and add the chunky_index 10 years ago
Timothy Stack 72e3a4d8df [format] add TCF file format and some fixes to make it work
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 1795c6c77e [line_buffer] endian.h is not available everywhere
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Salvatore Bonaccorso d452a52514 Convert byte encoding to host byte order
Correctly convert byte encoding for 32bit value from little-endian order
to host byte order.
10 years ago
Timothy Stack 5a1385bf5e [build] check for ENODATA 10 years ago
Timothy Stack b2fb77e0c3 [line_buffer] small fix to the buffering code 10 years ago
Timothy Stack 9ff2d3774d [line_buffer] split long lines
Fixes #81
10 years ago
Timothy Stack 9dd471c5de [shared_buffer] invalid refs in the line buffer destructor 10 years ago
Timothy Stack b6baae7730 [debug] more debugging stuff
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 6a38619ac7 [piper] fix for partial lines when reading stdin 11 years ago
Timothy Stack 5ef8a168a7 [perf] reduce copies of log messages 11 years ago
Timothy Stack 5e011a9203 [cygwin] misc fixes to get things building/running on windows
This change is just a first step, it should get the basics going.  But,
the tests don't all build and there are probably other issues when
running.
11 years ago
Timothy Stack 59c1d4313b [mouse] more mouse support and other fixes 11 years ago
Timothy Stack 3e480b5bad [bookmark] add support for metadata attached to bookmarks 11 years ago
Timothy Stack 2d33cb7f7e [log format] some more log format work 11 years ago
Timothy Stack d72cab0c1e [log_format] the access_log format wasn't picking up the timestamp range correctly 11 years ago
Timothy Stack 865849f017 [spam] uncrustify pass 11 years ago
Timothy Stack f62b5c271c [release] bump to 0.5.1 11 years ago
Timothy Stack d4f170e747 cppcheck fixes 11 years ago
Timothy Stack a476e27701 Some more miscellaneous fixes:
* lnav.cc: Move the view when J/K are pressed.
   Handle 'too many files' situations better.
 * line_buffer.cc: Increase some of the file
   size constants.
12 years ago
Timothy Stack c4e9f58bf0 [bugs] fix some long-standing bugs
* grep_proc.cc: When a request is queued with the start line
   == -1, we need to start searching from the highest line
   ever seen and not the last line processed.
 * line_buffer.cc: If a partial line was read, we need to
   avoid returning another line if more data is appended
   to the file.
 * lnav.cc: Accept file name patterns on the command-line that
   don't match any files yet.  Initialize the screen before
   redirecting stderr to the log file or /dev/null.
 * log_format.hh: Add some comments.  Start to add back support
   for scrubbing.
 * logfile_sub_source.cc: Move scrubbing to the format impl.
 * textview_curses.hh: Add comments.
12 years ago
Timothy Stack b68a1bba9b [test] some cleanup for tests and other things
Just a cleanup pass
12 years ago
Timothy Stack ee1e2afd53 [win build] Fix some problems with building on cygwin
The cygwin build is pretty straightforward, but there's
still some glitches that need to be fixed.

 * line_buffer.hh, line_buffer.cc: If the bzip library is not available, don't
   try to open bzip files.  Also, ignore ENODATA errors since they seem to
   show up when pread reaches the end of the file.
 * lnav.cc: The abs() function is ambiguous on windows, use std::abs instead.
12 years ago
Tim Stack 7a6d9c83f2 cleanup and bug fixes 13 years ago
Timothy Stack 456e015fb0 Add support for bzip2; fix some performance bugs; and
display the log file type in the top status bar.
13 years ago
Tim Stack 6909203c6d support scrolling for text files 14 years ago
Timothy Stack aab3704397 grindy 14 years ago
Timothy Stack c268760e2e Hopefully fix a bug when progressively reading from a file and
add some comments.
14 years ago
Timothy Stack 3f6212766a Fix for line buffers growing too large 15 years ago
Timothy Stack 1d40a8edcf build work 15 years ago