Commit Graph

100 Commits

Author SHA1 Message Date
Tim Stack
5a63ece31d [pcre2] migrate from pcre to pcre2
Fixes #974
2022-09-10 09:28:07 -07:00
Tim Stack
1fd274ce24 [docs] some more updates to docs
Also, add support for overstruck/backspace-underscore for
doing bold/underline.
2022-08-08 23:14:02 -07:00
Timothy Stack
8ef581177c [line_buffer] add some performance counters for tracking SQL perf
Also, check for keyboard input during SQL execution
so we can cancel.

Fixes #894
2022-07-27 21:49:14 -07:00
Timothy Stack
e8f0b1e6b8 [secure-mode] some more restrictions 2022-07-21 23:30:49 -07:00
Timothy Stack
4c20b0039c [sql] some more error improvements 2022-07-13 15:43:41 -07:00
Timothy Stack
3c54f20fce [sysclip] support osc 52 for copying to the clipboard
Fixes #825
2022-07-12 13:16:13 -07:00
Timothy Stack
09bd5396b2 [build] remove use of <algorithm> in header 2022-07-06 23:04:01 -07:00
Timothy Stack
a3b9314ff7 [yajlpp] add for_child() helper 2022-06-22 11:25:11 -07:00
Timothy Stack
c24be236a3 [:goto] raise an error if the input is not fully parsed
Related to #999
2022-06-21 22:16:57 -07:00
Timothy Stack
d54f21d7a5 [build] fix some warnings 2022-06-04 22:58:19 -07:00
Timothy Stack
f03f9e704f [views] add a breadcrumb view 2022-05-10 21:58:32 -07:00
Timothy Stack
a27198e8ca [regex101] add an integration with regex101
... and a pile of other changes
2022-04-30 13:06:01 -07:00
Timothy Stack
4439c9f3ce [build] fix callback type 2022-04-12 16:10:11 -07:00
Timothy Stack
0785a432fa [console] colorize console output 2022-04-12 16:07:13 -07:00
Timothy Stack
6fff9d60f5 [build] some clang-tidy fixes 2022-03-25 16:38:11 -07:00
Timothy Stack
66ef5fdae1 [clang-format] init 2022-03-16 15:38:08 -07:00
Timothy Stack
4564e162d0 [build] try to optimize compile time 2022-03-13 15:49:41 -07:00
Timothy Stack
19fd336e9a [formats] add logfmt 2021-10-02 23:17:33 -07:00
Timothy Stack
681f771bb7 [remote] add preview for remote :open 2021-05-09 15:01:21 -07:00
Timothy Stack
f050c7b0a7 [remote] start to wire up remote support 2021-05-01 08:33:54 -07:00
Timothy Stack
c0ed59e61e [sqlite] implement .dump SQL command 2021-03-28 13:50:26 -07:00
Timothy Stack
cac1175973 [services] initial pass at injecting services and a bunch of other stuff 2021-01-23 13:00:51 -08:00
Timothy Stack
d3fa76e8e9 [lnav_util] fix ok/error msg rendering 2020-11-20 08:55:30 -08:00
Timothy Stack
8e629b166a [build] some more compiler profiling
Defect Number:
    Reviewed By:
   Testing Done:
2020-11-19 21:36:51 -08:00
Timothy Stack
51d1204a96 [arc] add content hash to archive temp dir and tech debt 2020-11-17 10:04:23 -08:00
Timothy Stack
db8a3c4d38 [debt] doing some cleanup
Defect Number:
    Reviewed By:
   Testing Done:
2020-11-09 22:17:17 -08:00
Timothy Stack
5e42b4cb8a [debt] include cleanup 2020-10-28 21:23:46 -07:00
Timothy Stack
579e4274f9 [files] initial impl for opening archives 2020-10-28 21:17:57 -07:00
Timothy Stack
9f524136bd [fs] remove old filesystem impl 2020-10-20 22:55:46 -07:00
Timothy Stack
be106fcb8d [docs] add some more keymap/theme docs 2020-09-13 23:03:23 -07:00
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.
2020-09-05 14:41:05 -07:00
Timothy Stack
8413dd13d8 [config] add configs directory 2020-05-07 07:08:59 -07:00
Timothy Stack
8a0193691f ignore stdin when it is from /dev/null 2020-04-25 13:19:41 -07:00
Timothy Stack
138a506b1a [perf] a few performance tweaks 2020-04-23 06:42:48 -07:00
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
2019-07-29 22:18:32 -07:00
Timothy Stack
fb7d6eafaf [build] some refactoring of files 2019-05-08 05:30:59 -07:00
Phil Hord
eee7d0ddfc Squash a bunch of signed/unsigned warnings 2018-03-29 10:49:38 -07:00
Timothy Stack
7d7060ae4c [generic_log] fix recognition for generic logs
The generic format picks up extra text in the timestamp, which
caused the date time scanner to reject some matches.  I think
it's okay to allow for some trailing junk, so it no longer
ensures the size of the match is the same as the input.
2018-02-04 22:21:18 -08:00
Timothy Stack
a6d4563d7d [build] missing header 2017-12-29 07:02:19 -08:00
Timothy Stack
4b40b3f9f5 [date-time] add a formatter for 0x0p+0
Defect Number:
    Reviewed By:
   Testing Done:
2017-12-07 06:36:12 -08:00
Suresh Sundriyal
0c88eeeb07 Fix lnav builds on OpenBSD.
* Remove all the wordexp related unused headers and code.
* stdout does not appear to be reassignable on OpenBSD.
* defining _WCHAR_H_CPLUSPLUS_98_CONFORMANCE_ seems to fix the const
  correctness related redefinitions between wchar.h imported from
  the system libc and the one imported by clang++ STL.
2017-10-28 05:21:02 -07:00
Timothy Stack
7240aaa127 [time] an epoch timestamp should not have whitespace 2017-05-13 06:53:58 -07:00
Timothy Stack
8ea51a6fd8 [formats] support for CSV/TSV log formats
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-23 07:11:21 -07:00
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
2016-11-22 19:42:41 +00:00
Timothy Stack
26cd9f5930 [ptime] make sure the full time stamp is matched
Fixes #389
Fixes #390
2016-11-22 08:38:45 -08:00
Timothy Stack
4c0a8d0376 [ptime] need to clear the zone from the base when using a custom time format 2016-11-04 11:00:51 -07:00
Timothy Stack
41a2eed239 [pretty-print] fix printing of quoted strings that have escaped characters
Fixes #354
2016-10-14 11:18:00 -07:00
Timothy Stack
876b37ade0 [log-format] add "truncate" overflow value 2016-08-22 23:28:14 -07:00
Timothy Stack
c05dfafae8 [log-format] abbreviate long fields when formatting JSON logs
Fixes #340
2016-08-22 06:45:27 -07:00
Timothy Stack
41854cf637 [json-log] custom date formats
Fixes #341
2016-08-18 22:15:35 -07:00