Commit Graph

65 Commits

Author SHA1 Message Date
Timothy Stack
e6590e94e2 [highlight] fix highlights
Fix #667
2019-07-24 13:37:05 -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
fb7d6eafaf [build] some refactoring of files 2019-05-08 05:30:59 -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
d1a556638b [filters] save disabled filters in the session 2019-02-03 22:03:52 -08: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
6853034cce [cleanup] some minor cleanup and perf fixes
Files:
  * filter_sub_source.cc: Fix some performance issues
  * filter_sub_source.hh: The readline context should
    be case-INsensitive for completions
  * readline_curses.cc, session_data.cc: modernize
2019-01-21 14:15:00 -08:00
Timothy Stack
1a08eb0d12 [cmds] allow commands to set the prompt
Fixes #574 and #573
2018-11-21 17:00:28 -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
b1ff6b3a3b [json-log] fix some inconsistencies with json logs
Fill some gaps brought up in #535
2018-08-21 11:10:03 -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
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
5e8d6aa3a8 [session] add hidden fields to the session
Fixes #433
2017-04-15 21:11:11 -07:00
Timothy Stack
c180c44e49 [vtab] add an lnav_view_stack table to get programmatic access to the view stack
More progress towards #377
2017-03-04 15:22:19 -08:00
Timothy Stack
44d93dddc3 [pretty-print] allow formats to do transforms before pretty-printing
Also started upgrading to C++11.

Fixes #353
2016-12-05 16:34:30 -08:00
Timothy Stack
a7a03470d7 [search] fix a typo in the timeval compare operator
Defect Number:
    Reviewed By:
   Testing Done:
2016-11-22 23:03:40 -08:00
Timothy Stack
4de576fba7 [search] after a search has been entered, move to the first hit if one is found quickly
Defect Number:
    Reviewed By:
   Testing Done:
2016-11-22 21:02:01 -08:00
Timothy Stack
8de5d3b749 [logfile] add more options when opening files 2016-03-12 14:12:23 -08:00
Timothy Stack
a2b381ca19 [config] initial impl with clock-format as the only option at the moment 2016-01-05 06:18:58 -08:00
Timothy Stack
87b07a0087 [sql] allow log_part to be updated 2015-12-22 05:27:36 -08:00
Timothy Stack
69e927e91b [coverity] some more fixes 2015-09-19 20:30:39 -07:00
Timothy Stack
ec473edc85 [cmd] add support for times in goto 2015-09-14 08:56:42 -07:00
Timothy Stack
a6ffff5126 don't restore time-offset mode since people might not know how to turn it off 2015-08-19 21:13:21 -07:00
Timothy Stack
6b971ccd66 move stuff out of lnav.cc
Defect Number:
    Reviewed By:
   Testing Done:
2015-07-08 06:35:36 -07:00
Timothy Stack
504b5747fe [sql] add an all_logs table that exposes the message format with values, like numbers, replaced with hashes 2015-06-03 06:36:58 -07:00
Timothy Stack
44d2e12403 [text] add filtering support to the plain text view
Fixes #149 #148
2015-03-28 06:30:30 -07:00
Suresh Sundriyal
f8ad3479db Reduce session_data filesize and some minor cleanup.
After a year of not cleaning up the '~/.lnav' folder, the folder was
consuming ~8Mb of disk space. This change tries to reduce the disk
consumption by the session_data files.

- The json data in the session_data is beautified. The extra characters
  contribute to some of the file size. After removing the beautification
  option, the file size reduces by 60-20%, depending on how many files
  are open.

  Without knowing much about the functionality of these files, my
  cursory tests seem to show that lnav can still restore the sessions
  after this change. I don't know if these files are meant for human
  consumption or not but they can easily be run through a linter to
  beautify them again.

- While I was in the file, I noticed that there was a scope declared
  with no code inside it. Seems like a remnant of a cleanup.
2014-11-05 19:11:14 -08:00
Timothy Stack
f9098e6bc4 [build] automate building the linux static binary 2014-11-04 06:36:49 -08:00
Timothy Stack
0d6f067aab [coverity] a couple of fixes 2014-11-03 20:24:46 -08:00
Timothy Stack
a71ca1f1ca [filter] some improvements to the core filtering code 2014-10-19 22:16:40 -07:00
Timothy Stack
d557002724 [format] add OpenAM log formats 2014-06-17 21:29:42 -07:00
Timothy Stack
a76803fd44 [session] fix a bug in save-session when the log file was closed 2014-03-18 22:47:36 -07:00
Timothy Stack
bd0ff97415 [help] always turn on word-wrap
Turn on word-wrap in the help view to disable
horizontal scrolling.
2014-03-15 10:08:50 -07:00
Timothy Stack
dbc96dc67c [session] preserve time-offset log-view setting 2014-03-07 21:53:24 -08:00
Timothy Stack
d993d0e8c6 [partition] make partitions a separate bookmark type 2014-03-07 05:20:49 -08:00
Timothy Stack
64fe8175a6 [log] add an internal logger instead of using redirected stderr 2014-03-01 16:35:30 -08:00
Timothy Stack
7958c54fd0 [sql] use the default sqlite datetime format so collating works 2014-02-23 10:23:17 -08:00
Timothy Stack
3251554cf9 [byte_array] tweak the template so it is easier to use with SpookyHash 2014-02-04 09:26:25 -08:00
Suresh Sundriyal
13f5ad0dce Change the code to use Spookyhash.
* This change removes the external dependency on OpenSSL, which should
  allow the code to compile on Mac OS X without specifying the
  MAC_OS_X_VERSION_MIN_REQUIRED non-sense.
* Spookyhash should be faster than SHA-1's Merkle-Damgård construction.
* Spookyhash is only 128-bits as opposed to SHA-1's 160-bits so memory
  consumption should be less. I doubt it will lead to too many
  collisions.
* The docs are updated to reflect the fact that OpenSSL is not a
  dependency.
2014-02-03 22:36:33 -08:00
Timothy Stack
f867b9cc63 [wrap] add a hotkey for word wrap and fix some glitches 2013-11-08 07:32:39 -08:00
Timothy Stack
c3d51190c8 [wrap] start support for word wrapping and fix a variety of glitches 2013-11-06 07:29:20 -08:00
Timothy Stack
c59acba758 [format] initial support for json formats and some bug fixes 2013-09-10 06:20:37 -07:00
Timothy Stack
94ce0ffd83 [docs] more docs and some simple bug fixes 2013-08-25 07:12:41 -07:00
Timothy Stack
af6e289cda [log format] add scaling factors 2013-07-23 05:55:08 -07:00
Timothy Stack
729c842ca5 [session] saving bookmarks 2013-07-13 21:31:59 -07:00
Timothy Stack
3e480b5bad [bookmark] add support for metadata attached to bookmarks 2013-07-05 09:14:39 -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
6535b03b6e [log] try to cache the results of filtering so we do not always recompute 2013-06-22 13:44:50 -07:00
Timothy Stack
f26dc13529 [cppcheck] fix some nits turned up by cppcheck 2013-06-20 06:08:53 -07:00