Commit Graph

184 Commits (b44b6d24cf4cdeef3e9f670b4403340cba8f3a0b)

Author SHA1 Message Date
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
Timothy Stack 2e68f48a18 [hist] check for zoom with no logs
Fixes #346
8 years ago
Timothy Stack c564beee29 [build] try to silence some warnings 8 years ago
Timothy Stack a4deaa1e8b [spectro] log_time must be in ascending order 8 years ago
Timothy Stack 82f970c09e [config] add a config option to control A_DIM for text
Fixes #298
8 years ago
Suresh Sundriyal e4ef35e652 [commands] Remove eval from the list of sandboxed commands. 8 years ago
Suresh Sundriyal 88833c8035 [commands] Read and honor the 'LNAVSECURE' environment variable.
Read the value of the 'LNAVSECURE' environment variable upfront and
store it in the lnav_data structure. When this variable is set prior to
the binary execution, the following commands are disabled:

* 'open'
* 'pipe-to'
* 'pipe-line-to'
* 'write-*-to'

This is a proposed fix for tstack/lnav#305.
8 years ago
Timothy Stack a8cd28097b [spectro] add some better error messages for the spectrogram command and fix some vtable glitches 8 years ago
Timothy Stack 9c364bf48e [spectro] add spectro view support for sql results 8 years ago
Timothy Stack 99eb3a54f3 [spectro] support marking lines in a bucket 8 years ago
Timothy Stack fdc2748e3e [spectro] add a spectrogram view that works with known message fields 8 years ago
Timothy Stack 8de5d3b749 [logfile] add more options when opening files 8 years ago
Timothy Stack 2d04d047e4 [sql] change extract() to regexp_match() and make extract() an interface to the data_parser 8 years ago
Timothy Stack d4a69cbf22 no joy
Revert "[sql] change extract() to regexp_match() and make extract() an interface to the data_parser"

This reverts commit 85eee6514b.
8 years ago
Timothy Stack 85eee6514b [sql] change extract() to regexp_match() and make extract() an interface to the data_parser 8 years ago
Timothy Stack cdd43549ab [cmds] automatically capture echo/write output from scripts so they can generate reports
Add another example script, dhclient-summary.

Add a 'search-table' section to formats so you can automatically
define a search-based table.
8 years ago
Timothy Stack 89be76ef42 [filters] clear the state for filters that have been deleted
Fixes #292
8 years ago
Timothy Stack a2b381ca19 [config] initial impl with clock-format as the only option at the moment 9 years ago
Timothy Stack ab62d27757 [cmd] replace wordexp with shlex 9 years ago
Timothy Stack e07b4e448f [exec] add a prompt to execute lnav scripts 9 years ago
Timothy Stack feab733742 [cmd] add reltime possibilities for some commands 9 years ago
Timothy Stack 224a7196e4 [cmd] hide lines commands 9 years ago
Timothy Stack d1bbc433b7 [view] start to refactor the bar chart code 9 years ago
Timothy Stack 4eb797ce9a [hist] start to replace the old hist_source class 9 years ago
Timothy Stack 69e927e91b [coverity] some more fixes 9 years ago
Timothy Stack c3a26ceb6f fix some copy pasta in pt-time commands 9 years ago
Timothy Stack 4f32bddd93 [pt] allow relative times for papertrail time bounds 9 years ago
Timothy Stack ec473edc85 [cmd] add support for times in goto 9 years ago
Timothy Stack e95bd90dfc [filter] check for too many filters being created 9 years ago
Timothy Stack 2b5447f59c [sql] add a log_search table 9 years ago
Timothy Stack 83b92c3b65 [papertrail] add support for time ranges 9 years ago
Timothy Stack 9df95b33e1 build fix 9 years ago
Timothy Stack cc5e70fb30 [cmd] add help to the command prompt 9 years ago
Timothy Stack e9a96caf09 [papertrail] use the curl_looper 9 years ago
Timothy Stack f286950854 [curl] add a curl looper to handle url requests 9 years ago
Timothy Stack 5ef60412db [pt] pass search query to papertrail 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 488d24b847 [pretty] word-wrap should work in the pretty-printer view 9 years ago
Timothy Stack e1874c0278 use poll instead of select so we can handle more than FD_SETSIZE files 9 years ago
Timothy Stack 32e96e6395 [pipe-to] fix some issues when running pipe in headless mode 9 years ago
Timothy Stack 38e56b63ea [hist] fix the histogram when filters change 9 years ago
Suresh Sundriyal 410c2a3cd7 [-Wsign-compare] lnav_commands.cc 9 years ago
Timothy Stack 033c861028 [cmd] next/prev-mark commands 9 years ago
Timothy Stack 44d2e12403 [text] add filtering support to the plain text view
Fixes #149 #148
9 years ago
Timothy Stack 8fb15e455a [cmd] add a relative-goto command 9 years ago
Timothy Stack ff724e4941 [pipe-to] set env vars for each log line column 9 years ago
Timothy Stack aea0bd54e0 [cmd] add a :redraw command to do a full redraw of the window
Fixes #18
9 years ago
Timothy Stack 12b81fe4e7 [format] fix full message read for json formats 9 years ago
Timothy Stack 1d3481c3fa [cmd] add pipe-to and pipe-line-to commands 9 years ago
Timothy Stack c80e181790 fix ptime_b_slow, again... 9 years ago
Timothy Stack 3158b29cbd [build] fix missing define 10 years ago
Timothy Stack 17db6e38fe add a lo-fi mode
Fixes #113
10 years ago
Timothy Stack a06d620018 [filter] add tests for filtering with append 10 years ago
Timothy Stack 671dca60dc [cmd] do not error out if filter exists, just enable it
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 45f18bd89c bump version, add some logging, and minor stuff
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 74b49e6f28 [cmd] add tab-completion for text in the view when filtering
Defect Number: fixes #92
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 0ab2400d2d [cmd] add a clear-highlight command
Defect Number: Fixes #109
    Reviewed By:
   Testing Done:
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 bf706a136c [cmd] remember closed files
Fixes #96
10 years ago
Timothy Stack d17f7b1940 [cmd] add set-min-log-level command
Part of #82
10 years ago
Timothy Stack cbd8308b36 [cmd] use wordexp in the open command 10 years ago
Timothy Stack b988708431 [session] remove session flag CLI option in favor of commands
Too many CLI flags make things confusing and this one didn't add
anything, so I'm making it a command instead.
10 years ago
Timothy Stack 54d979f44f [open] bah, open should work for dirs 10 years ago
Timothy Stack 7b1bb506e2 [open] add some more checks when opening a file 10 years ago
Timothy Stack 9ff6a3cbe9 [write-json] add a command to write results as json 10 years ago
Timothy Stack 08374381b2 [partition] use an underline to mark a partition boundary 10 years ago
Timothy Stack d993d0e8c6 [partition] make partitions a separate bookmark type 10 years ago
Timothy Stack 5a04a44381 [tests] add some tests that use headless mode 10 years ago