Commit Graph

74 Commits (579e4274f994695a849a02de5d4e81e6d3479017)

Author SHA1 Message Date
Timothy Stack 9f524136bd [fs] remove old filesystem impl 4 years ago
Timothy Stack d8a083f0fe [filters] add :toggle-filtering command 4 years ago
Timothy Stack 276f71423e [readline] add alternate enter command 4 years ago
Timothy Stack bbf06e78ba [init] delay initial command execution until some files are loaded
Fixes #764
4 years ago
Timothy Stack ce0383dee1 [build] fix some warnings 4 years ago
Timothy Stack 8413dd13d8 [config] add configs directory 4 years ago
Timothy Stack 3da3ec799a [session] allow the name 4 years ago
Timothy Stack 3669b73e5b [highlight] avoid highlighting keywords in comments and strings 5 years ago
Timothy Stack 63dba408ec [stdin] Keep the stdin piper file in .lnav so that it can be reopened
When piping the output of a program into lnav, the data would
be dumped to the terminal on exit so that it would not be
lost.  Since that is a bit noisy, the temp file used to store
the data is now left in .lnav so that it can be reopened later.
Older stdin captures are automatically removed after a day.

Also took the opportunity to start using filesystem::path more.

Fixes #436
5 years ago
Timothy Stack e6590e94e2 [highlight] fix highlights
Fix #667
5 years ago
Timothy Stack 02c53976b4 Some refactoring for the line buffer and other cleanups
Fixes #649
5 years ago
Timothy Stack fb7d6eafaf [build] some refactoring of files 5 years ago
Timothy Stack 06d1098211 [config] initial support for themes
For #422

Still more to do
5 years ago
Timothy Stack d1a556638b [filters] save disabled filters in the session 5 years ago
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.
6 years ago
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
6 years ago
Timothy Stack 1a08eb0d12 [cmds] allow commands to set the prompt
Fixes #574 and #573
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 b1ff6b3a3b [json-log] fix some inconsistencies with json logs
Fill some gaps brought up in #535
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 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 5e8d6aa3a8 [session] add hidden fields to the session
Fixes #433
7 years ago
Timothy Stack c180c44e49 [vtab] add an lnav_view_stack table to get programmatic access to the view stack
More progress towards #377
7 years ago
Timothy Stack 44d93dddc3 [pretty-print] allow formats to do transforms before pretty-printing
Also started upgrading to C++11.

Fixes #353
8 years ago
Timothy Stack a7a03470d7 [search] fix a typo in the timeval compare operator
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
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:
8 years ago
Timothy Stack 8de5d3b749 [logfile] add more options when opening files 8 years ago
Timothy Stack a2b381ca19 [config] initial impl with clock-format as the only option at the moment 9 years ago
Timothy Stack 87b07a0087 [sql] allow log_part to be updated 9 years ago
Timothy Stack 69e927e91b [coverity] some more fixes 9 years ago
Timothy Stack ec473edc85 [cmd] add support for times in goto 9 years ago
Timothy Stack a6ffff5126 don't restore time-offset mode since people might not know how to turn it off 9 years ago
Timothy Stack 6b971ccd66 move stuff out of lnav.cc
Defect Number:
    Reviewed By:
   Testing Done:
9 years ago
Timothy Stack 504b5747fe [sql] add an all_logs table that exposes the message format with values, like numbers, replaced with hashes 9 years ago
Timothy Stack 44d2e12403 [text] add filtering support to the plain text view
Fixes #149 #148
9 years ago
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.
10 years ago
Timothy Stack f9098e6bc4 [build] automate building the linux static binary 10 years ago
Timothy Stack 0d6f067aab [coverity] a couple of fixes 10 years ago
Timothy Stack a71ca1f1ca [filter] some improvements to the core filtering code 10 years ago
Timothy Stack d557002724 [format] add OpenAM log formats 10 years ago
Timothy Stack a76803fd44 [session] fix a bug in save-session when the log file was closed 10 years ago
Timothy Stack bd0ff97415 [help] always turn on word-wrap
Turn on word-wrap in the help view to disable
horizontal scrolling.
10 years ago
Timothy Stack dbc96dc67c [session] preserve time-offset log-view setting 10 years ago
Timothy Stack d993d0e8c6 [partition] make partitions a separate bookmark type 10 years ago
Timothy Stack 64fe8175a6 [log] add an internal logger instead of using redirected stderr 10 years ago
Timothy Stack 7958c54fd0 [sql] use the default sqlite datetime format so collating works 11 years ago
Timothy Stack 3251554cf9 [byte_array] tweak the template so it is easier to use with SpookyHash 11 years ago
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.
11 years ago
Timothy Stack f867b9cc63 [wrap] add a hotkey for word wrap and fix some glitches 11 years ago