Commit Graph

1199 Commits (7e55f7401fc07acaad32ed14b0a779e698b3d55c)
 

Author SHA1 Message Date
Timothy Stack 32c9dacd0a [files_vtab] add a vtable for opened files
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 9e7c30f00a [views_vtab] top_time crash 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 0e27841c27 fix numeric value indexes 7 years ago
Timothy Stack 0a7816e245 [config] missed the terminator json_path_handler() 7 years ago
Timothy Stack 3fed519d0c missed filling out the numeric value indexes for patterns 7 years ago
Timothy Stack 71aa54ad4d [keymap] convert more hotkeys to keymaps
Fixes #416
7 years ago
Timothy Stack d12769cd70 minor doc fix 7 years ago
Timothy Stack 1a87184c82 [log] allow parts of log messages to be hidden
Fixes #412
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 04eda90244 [db] missed checking for a null progress callback
Fixes #404
8 years ago
Tim Stack 06b12240c5 Add LoC badge
Seems high...
8 years ago
Timothy Stack 69e51d68d3 [hotkeys] make 'I' stable
Fixes #393
8 years ago
Timothy Stack 0138d13297 [cmds] execute scripts from stdin/fds
Issues mentioned in #397
8 years ago
Tim Stack 6aa3f03cc9 Merge pull request #398 from aspiers/typo
fix 'conifg' typo
8 years ago
Adam Spiers d93178f879 fix 'conifg' typo 8 years ago
Timothy Stack a69d4c37a4 [hotkey] when scanning through search hits, move to the last hits 8 years ago
Timothy Stack 854c79108e Merge branch 'aspiers-fix-compile-warnings' 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 bc91a8e281 [log-view] show search hits in the left file line with a reverse-video marker
If the search-hit is past the right side of the screen (as mentioned in #394)
we should try to make that more obvious by adding a highlight on the left.
8 years ago
Timothy Stack f567aafe3b [c++11] migration #1
Just a start
8 years ago
Timothy Stack 5e2d8842f2 forgot the actual file, sigh 8 years ago
Timothy Stack 93848faae7 add new file to dist 8 years ago
Timothy Stack 11d23a26d9 [build] libgpm autoconf check 8 years ago
Timothy Stack d85ca570dd more travis 8 years ago
Timothy Stack 327b1b6e9f try turning libgpm complaint to a warning 8 years ago
Timothy Stack 3aa379ad44 use trusty 8 years ago
Timothy Stack 182a098dcb try to build c++11 on travis 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
Tim Stack ec7dae5979 Merge pull request #391 from aspiers/more-time-formats
add two more common time formats
8 years ago
Adam Spiers baa4ec0eb2 add two more common time formats
Since 26cd9f59 introduced stricter timestamp parsing so that
the full string now has to be matched, several of the 3rd party
formats installable via "lnav -i extra" broke.  So add a couple
more very common timestamp formats to address these.
8 years ago
Adam Spiers fb96e948e2 fix -Wunused-result warning when calling getcwd()
Fix this warning:

    lnav_log.cc: In function ‘void log_host_info()’:
    lnav_log.cc:185:29: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         getcwd(cwd, sizeof(cwd));
                                 ^
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
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
Adam Spiers 961cac8ec0 fix sscanf %qd type mismatch warning
Fixes this warning:

    relative_time.cc: In member function ‘bool relative_time::parse(const char*, size_t, relative_time::parse_error&)’:
    relative_time.cc:222:62: warning: format ‘%qd’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t* {aka long int*}’ [-Wformat=]
                         if (sscanf(numstr.c_str(), "%qd", &number) != 1) {
                                                                  ^
8 years ago
Adam Spiers 2aebf4f381 fix -Wunused-result warnings when calling write()
Fix these warnings:

papertrail_proc.hh: In constructor ‘papertrail_proc::papertrail_proc(const string&, time_t, time_t)’:
papertrail_proc.hh:107:36: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
                  this->ptp_api_key);
                                    ^
papertrail_proc.hh: In member function ‘void papertrail_proc::set_url()’:
papertrail_proc.hh:146:47: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
                  this->ptp_quoted_search.in());
8 years ago
Adam Spiers 7988200701 fix -Wunused-result warnings when calling asprintf()
Fix these warnings:

papertrail_proc.hh: In constructor ‘papertrail_proc::papertrail_proc(const string&, time_t, time_t)’:
papertrail_proc.hh:107:36: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
                  this->ptp_api_key);
                                    ^
papertrail_proc.hh: In member function ‘void papertrail_proc::set_url()’:
papertrail_proc.hh:146:47: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
                  this->ptp_quoted_search.in());
8 years ago
Adam Spiers 43ac6366cb fix -Wformat time_t warnings (#368)
Fix warnings like:

    ptimec.hh: In function ‘void ftime_i(char*, off_t&, ssize_t, const exttm&)’:
    ptimec.hh:387:57: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
         snprintf(&dst[off_inout], len - off_inout, "%lld", t);
                                                             ^

In this case we know that the `t` returned by `tm2sec` is a number of
seconds, so a long should be long enough, and anyway there is already
code checking for overflow.

Fixes #368.

https://github.com/tstack/lnav/issues/368
8 years ago
Adam Spiers 0559a98f91 fix -Wsign-compare warnings (#369)
Fix repeated errors like this:

    log_format.hh:1138:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (len < jfe.jfe_min_width) {

Fixes #369.

https://github.com/tstack/lnav/issues/369
8 years ago
Timothy Stack fb4e66e0b5 [build] package logfile_epoch.1 8 years ago