Commit Graph

341 Commits (05730274ed6944bd8f7c49ba2d4ccc691f5580b2)

Author SHA1 Message Date
Timothy Stack 05730274ed [prev-mark] jumping to the first bookmark wasn't always working 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 7033b51b41 fix potential crash when quitting 7 years ago
Timothy Stack aae3cf4d14 [log_vtab_manager] fix lookup_impl() 7 years ago
Timothy Stack fea3cb83d9 [sql] preview table definition
Defect Number:
    Reviewed By:
   Testing Done:
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 851bd183b3 [perf] some performance tweaks 7 years ago
Timothy Stack 78119dc9f1 fixing some minor issues
Fixes #255
7 years ago
Timothy Stack 4954817741 [crash] pressing i/I when not in the log view
Defect Number:
    Reviewed By:
   Testing Done:
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 411ea1fbee [help] show help text for SQL functions
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack cd76eae5b8 [build] convert some C files to C++
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 6fcfd35395 [sql] add "search" column to the lnav_views table
Fixes #388
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 c0684a97cc [sql] add a regexp_capture tablue-valued function
Fixup the release makefile a bit.
7 years ago
Timothy Stack fa296fca1b [listview] get a batch of rows from the source instead of a single one at a time
Also: bump to c++14 and added a helper template for creating sqlite virtual tables
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 34d1422b76 [highlight] only highlight keywords in text files
Fixes #408
7 years ago
Timothy Stack c606e1169c only do custom keys in paging mode 8 years ago
Timothy Stack 89f8ef9c2b [hotkeys] hotkey configuration
First steps to implementing #350
8 years ago
Timothy Stack 0138d13297 [cmds] execute scripts from stdin/fds
Issues mentioned in #397
8 years ago
Timothy Stack a69d4c37a4 [hotkey] when scanning through search hits, move to the last hits 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 02bfd5846b [hotkey] the n/N keys will now move to the next cluster of search hits, up to a screenful
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack 95fe6f0d73 [hotkey] the n/N keys will now move to the next cluster of search hits, up to a screenful
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack 09292fc23e remove -s flag
Fixes #363
8 years ago
Timothy Stack 642a94e7b7 [open] check for FIFOs
Fixes #380
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
Adam Spiers 81f5a843cf check return value of git pull command
This is obviously worthwhile, but also eliminates this compiler warning:

    lnav.cc: In function ‘int main(int, char**)’:
    lnav.cc:2407:33: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
                     system(pull_cmd);
                                     ^
8 years ago
Adam Spiers 04627c1743 fix -Wunused-result warnings when calling read() and write()
Fix warnings like these:

    lnav.cc: In function ‘int main(int, char**)’:
    lnav.cc:2407:33: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
                     system(pull_cmd);
                                     ^
    lnav.cc:2966:66: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
                         write(STDOUT_FILENO, str.c_str(), str.size());
                                                                      ^
    lnav.cc:2967:50: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
                         write(STDOUT_FILENO, "\n", 1);
                                                      ^
8 years ago
Timothy Stack b296e84a65 [format] color extra json fields that are identifiers 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 d9b5cf3856 call setlocale() to try and get unicode working 8 years ago
Timothy Stack fbbedfea48 [build] try to silence some warnings 8 years ago
Timothy Stack c564beee29 [build] try to silence some warnings 8 years ago
Timothy Stack deccd51bdf [mouse] update the status line when the mouse is enabled/disabled 8 years ago
Suresh Sundriyal 1e6878164f [secure-mode] Refactoring and check for sqlite version.
'mode=memory' query parameter is only supported from sqlite3 version
3.8.0 onwards. Make sure to check for the version before continuing with
the 'ATTACH' statement.

Turning off some of the tests, since they fail on the Travis CI setup
which uses sqlite version 3.6.0.
8 years ago
Suresh Sundriyal e6c87678e9 [secure-mode] Prevent users from attaching db files.
Prevent the users from attaching an external db file which they may not
have ownership of.

The current authorizer method is hooked in only when the LNAVSECURE
variable is set. This is done deliberately, since the method will be
called on every sqlite query and I did not want to incur a performance
hit.

If the scope of this authorizer increases, we should consider passing in
the lnav_data as pUserData and do the checks inside the authorizer
itself.
8 years ago
Timothy Stack 82f970c09e [config] add a config option to control A_DIM for text
Fixes #298
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 cad311f557 [views] do auto-scroll-down for all views 8 years ago
Timothy Stack 7a6429519f [summary-line] change error count to error rate and do some cleanup on message levels 8 years ago
Timothy Stack 99eb3a54f3 [spectro] support marking lines in a bucket 8 years ago
Timothy Stack 619076d89c no, we don't want to scroll... 8 years ago