Commit Graph

353 Commits (8aa72b16e48a11c67659d2a6ec86c823f11aeaff)

Author SHA1 Message Date
Timothy Stack f9f797fc9d [logfile_sub_source] add log message watch expressions
Fixes #539
2 years ago
Timothy Stack 906494ebfa [errors] try to improve some errors 2 years ago
Timothy Stack c24be236a3 [:goto] raise an error if the input is not fully parsed
Related to #999
2 years ago
Timothy Stack 64bee48fb0 [view] preserve top time when filtering 2 years ago
Timothy Stack 1891ceb7b5 [perf] fix some performance issues with log vtabs
Fixes #995
2 years ago
Timothy Stack f03f9e704f [views] add a breadcrumb view 2 years ago
Timothy Stack a27198e8ca [regex101] add an integration with regex101
... and a pile of other changes
2 years ago
Timothy Stack 0785a432fa [console] colorize console output 2 years ago
Timothy Stack 1019714409 [rescan] automatically pop the text view when the last text file is promoted 2 years ago
Timothy Stack 99c1688c2e [attr_line] use variant instead of a union for attribute values 2 years ago
Timothy Stack 81e63784e7 [modernize] some more cleanups 2 years ago
Timothy Stack b856cd9657 [build] silence some warnings 2 years ago
Timothy Stack 6fff9d60f5 [build] some clang-tidy fixes 2 years ago
Timothy Stack 66ef5fdae1 [clang-format] init 2 years ago
Timothy Stack 4564e162d0 [build] try to optimize compile time 2 years ago
Timothy Stack b884f732f2 [json-ext] json_contains() should accept null
Related to #447
3 years ago
Timothy Stack 68d7d64948 [rebuild] some more cleanup 3 years ago
Timothy Stack d239bb4594 [vum/configmanager] make the clipboard commands configurable 3 years ago
Timothy Stack b3a4eadbe2 [cmds] add :show-only-this-file command 3 years ago
Timothy Stack db7173caec [views] fix some issues with empty views
Related to #908
3 years ago
Timothy Stack 03ce38b09f [bottom-status] make sure the search term is updated
Fixes #907
3 years ago
Timothy Stack 211f10535c [cmds] add --view flag 3 years ago
Timothy Stack 97530070c9 [cmds] add /dev/clipboard support to :redirect-to 3 years ago
Timothy Stack aa7ac37cdc [log_source] try to report sql filter errors 3 years ago
Timothy Stack b2d296b5d3 [open] handle file names with colons
Fixes #863
3 years ago
Timothy Stack c3dc668b69 [remote] add some config options and remove the copied tailer binary
Also fix time offset issue
3 years ago
Timothy Stack be51a4e3de [arc/remote] use a single work directory for archive/remote files 3 years ago
Timothy Stack e13816a8e3 [cmds] change :write-raw-to to copy the original log content and add :write-view-to command
Also added log_raw_text column to the log tables.

Fixes #859
3 years ago
Timothy Stack b64342ca47 [log_format] display log_body for the body field instead of the format name and add :mark-expr command 3 years ago
Timothy Stack d2b5690e0c [readline] improve filename completion 3 years ago
Timothy Stack 98677eb09a [remote] some more tweaks and add tab-completion 3 years ago
Timothy Stack 681f771bb7 [remote] add preview for remote :open 3 years ago
Timothy Stack 224eb6fe55 [remote] handle closure 3 years ago
Timothy Stack f050c7b0a7 [remote] start to wire up remote support 3 years ago
Timothy Stack 92e20ffd51 [reltime] add support for weekdays and having timeslice() return NULL when a time is out-of-range 3 years ago
Timothy Stack f6128240ab [sql] add lnav_top_file() SQL function 3 years ago
Timothy Stack d45d7d6c58 [docs] add report generation to cookbook 3 years ago
Timothy Stack b847ae7164 [tests] more coverage 3 years ago
Timothy Stack f35c0c397e [tests] increasing coverage a bit 3 years ago
Timothy Stack c5ab97352d [cover] add some tests for :unix-time 3 years ago
Timothy Stack 49ebde5953 [build] remove pcrecpp and other stuff
Linking against a binary c++ lib suuuucckkkkkssss...
3 years ago
Timothy Stack 2b9f4c6d3a [docs] start a cookbook 3 years ago
Timothy Stack 310c67c53e [build] missing include 3 years ago
Timothy Stack bc48911e42 [build] missing include 3 years ago
Timothy Stack cac1175973 [services] initial pass at injecting services and a bunch of other stuff 3 years ago
Timothy Stack a871ad5dbc [cleanup] some curl-related fixes 4 years ago
Timothy Stack 56bee6f4c9 [archive] remove old unpacked archives and a bunch of other stuff 4 years ago
Timothy Stack 2de57d242d [leak] fix leak of yajl error msgs 4 years ago
Timothy Stack 63c31838eb [debt] fixing some more debt 4 years ago
Timothy Stack 4ff2b710d5 [log_format] change w3c_log to put extra columns into a JSON column 4 years ago
Timothy Stack 32f112b8de [formats] add w3c extended log format impl
Fiexes #798
4 years ago
Timothy Stack 19e0624ab6 [debt] even more mem leaks
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack b924395ed2 [debt] fix some mem leaks 4 years ago
Timothy Stack 3a2a1e0dda [sqlite] fallback to prepare_v2 4 years ago
Timothy Stack 22c2e95df0 [filters] sql filter
Related to #568
4 years ago
Timothy Stack 6d0054d3b6 [logfile] refactor visibility 4 years ago
Timothy Stack 2aad7985a6 [build] opt build
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 8e629b166a [build] some more compiler profiling
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 51d1204a96 [arc] add content hash to archive temp dir and tech debt 4 years ago
Timothy Stack 9d87cfa2f0 [debt] more tech debt 4 years ago
Timothy Stack db8a3c4d38 [debt] doing some cleanup
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 9bfe1f8319 [cmds] include filename in copied log lines when shown
Fixes #789
4 years ago
Timothy Stack df3df8369c [session] stages 4 years ago
Timothy Stack 5e42b4cb8a [debt] include cleanup 4 years ago
Timothy Stack 56866d8a33 [config-ui] support for searching 4 years ago
Timothy Stack 7b77a612c2 [files] make file scanning async 4 years ago
Timothy Stack 3b0168025d [cmds] add support for hiding files 4 years ago
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 ce0383dee1 [build] fix some warnings 4 years ago
Timothy Stack 8a3fbe6375 [cmds] fix error format strings 4 years ago
Timothy Stack 815a05577e [keymap] suggest the config option to set for an unknown keystroke
Also, add a unicode green-check/red-X mark for the success/error
message for commands.
4 years ago
Timothy Stack 82b34bb02a [config] remove :save-config 4 years ago
Timothy Stack c5a82240ec [build] try to fix some warnings 4 years ago
Timothy Stack d695febe14 [cmd] add :write-jsonlines-to command 4 years ago
Timothy Stack e0181a0adb [build] fix build when libcurl is available
Fixes #739
4 years ago
Timothy Stack e85fff0b88 [sql] add json_concat() function and misc fixes 4 years ago
Timothy Stack 8413dd13d8 [config] add configs directory 4 years ago
Timothy Stack 8a0193691f ignore stdin when it is from /dev/null 4 years ago
Timothy Stack 3da3ec799a [session] allow the name 4 years ago
edr 3e82a06302 [delete-filter] Fix issue #701: (Filter deletion before enter) 5 years ago
Timothy Stack 5901c92794 [open-cmd] use line_buffer to load preview data
Fixes #680
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 33cdbefaaa [help] some online help additions 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 469124d72b [time-offset] fixes
Defect Number:
    Reviewed By:
   Testing Done:
5 years ago
Timothy Stack 1a932f3a41 [cmds] :q! should quit lnav
Fixes #607
5 years ago
Timothy Stack 3d77fb2acf [cmds] change :write-raw-to to write all the lines in the view
Fixes #606
6 years ago
Timothy Stack 8a3bdbfb2f [filter] fix some glitches 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 6336fa56e9 [cmds] :write-json-to should passthru JSON columns as JSON instead of strings
Fixes #565
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 d74f3a13da [lnav_commands] fix attempt to convert uninitialized max_time
Fix #556
6 years ago
Timothy Stack ac7ae1275a [cmds] add :redirect-to command for redirecting the output of commands in scripts
Related to #551
6 years ago
Timothy Stack e5c6c180eb [cmds] fix preview for :write-raw-to 6 years ago
Timothy Stack 5f5e2d5c4e [cleanup] prune some includes and some other cleaning
Defect Number:
    Reviewed By:
   Testing Done:
6 years ago
Timothy Stack 658931a145 [cleanup] remove cdefs.h include and other stuff
Fix #486
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 db6c619e4e [keymap] support for /dev/clipboard in :write commands
The copy hotkey is now implemented in the keymap and the
':write-*' commands were enhanced to recognize /dev/clipboard
as a special file name for writing to the system clipboard.
6 years ago
Timothy Stack 0b822739ea [readline] wait for focus before processing input
Fix for #543

Mistakenly had the read-ready bit set for stdin before the
command to focus was processed.  The result being the
readline child would exit.
6 years ago
Timothy Stack f65df7c762 [readline] tweak fuzzy matching threshold
Change the threshold for cutting off the remaining fuzzy matches
that was added for #541

Also, fix an error when filtering is added when viewing
the tail of the log.
6 years ago
Timothy Stack 00baf0a1d9 [cmds] return an error when :hide-unmarked-lines is run when no lines are marked 6 years ago
Timothy Stack 00ed12557b [keymap] add more keys to the keymap 6 years ago
Timothy Stack c3097db7af [filter] fix some nits in the filter command 6 years ago
Timothy Stack bc8e51914a [hotkey] the "P" hotkey was not toggling the view
Fixes #522
6 years ago
Timothy Stack 5689984702 [yajlpp] use pointer to member over nullobj() 6 years ago
Timothy Stack 36d5ff8b86 [lo-fi] display fixes
Fixes #513
Fixes #516
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 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
Phil Hord eee7d0ddfc Squash a bunch of signed/unsigned warnings 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 ebf20a746b [commands] fix completion for delete-filter 6 years ago
Timothy Stack b5f5b4137c [search] redo search after filtering
Fixes #480
7 years ago
Suresh Sundriyal 150252e578 [command] Add a ':quit' command.
Add a ':quit' command and add ':q' as the alias for the
quit command.

Closes #470
7 years ago
Timothy Stack e615805ac6 [cmds] remove completion for highlight after clearing
Fixes #465
7 years ago
Timothy Stack 16fd7ec785 [help] remove old command help and add some more filesystem extensions 7 years ago
Timothy Stack 5e8d6aa3a8 [session] add hidden fields to the session
Fixes #433
7 years ago
Timothy Stack a973f7f934 [misc] some more miscellaneous bugs
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack aa21234164 [hist] need to rebuild hist to reflect marks
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack bbf8bdc4ec [search-table] highlight the captured text for preview
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 7e55f7401f [filter-in] highlight matches in green 7 years ago
Timothy Stack 914f4cf4bb [filter-out] show a preview of the filter effects by highlighting matches in red
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 78119dc9f1 fixing some minor issues
Fixes #255
7 years ago
Timothy Stack 00ebd10d71 [cmds] do a dry-run of a command to check for errors
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 8776f6a703 [sql] do some minimal parsing/annotation of SQL statements
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 8bf6bf1a65 [cmds] add the format directory to the PATH in the :pipe commands 7 years ago
Timothy Stack 32c9dacd0a [files_vtab] add a vtable for opened files
Defect Number:
    Reviewed By:
   Testing Done:
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 71aa54ad4d [keymap] convert more hotkeys to keymaps
Fixes #416
7 years ago
Timothy Stack 1a87184c82 [log] allow parts of log messages to be hidden
Fixes #412
7 years ago
Timothy Stack 89f8ef9c2b [hotkeys] hotkey configuration
First steps to implementing #350
8 years ago
Timothy Stack 04eda90244 [db] missed checking for a null progress callback
Fixes #404
8 years ago
Timothy Stack d799cc227e some tweaks to these changes 8 years ago
Timothy Stack e286534cfc Merge branch 'fix-compile-warnings' of https://github.com/aspiers/lnav into aspiers-fix-compile-warnings 8 years ago
Timothy Stack f567aafe3b [c++11] migration #1
Just a start
8 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 642a94e7b7 [open] check for FIFOs
Fixes #380
8 years ago
Adam Spiers dc500774a8 fix -Wsign-compare warnings in lnav_commands.cc
Fixes these warnings:

    lnav_commands.cc: In function ‘std::string remaining_args(const string&, const std::vector<std::basic_string<char> >&, size_t)’:
    lnav_commands.cc:67:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int lpc = 0; lpc < index; lpc++) {
                                 ^
    lnav_commands.cc: In function ‘std::string com_save_to(std::string, std::vector<std::basic_string<char> >&)’:
    lnav_commands.cc:574:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int lpc = 0; lpc < dls.text_line_count(); lpc++) {
8 years ago
Timothy Stack b392886f0c [highlight] choose highlight color based on the regex
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago