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
7 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.
7 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.
7 years ago
Phil Hord
eee7d0ddfc
Squash a bunch of signed/unsigned warnings
7 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.
7 years ago
Timothy Stack
ebf20a746b
[commands] fix completion for delete-filter
7 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
8 years ago
Timothy Stack
5e8d6aa3a8
[session] add hidden fields to the session
...
Fixes #433
8 years ago
Timothy Stack
a973f7f934
[misc] some more miscellaneous bugs
...
Defect Number:
Reviewed By:
Testing Done:
8 years ago
Timothy Stack
aa21234164
[hist] need to rebuild hist to reflect marks
...
Defect Number:
Reviewed By:
Testing Done:
8 years ago
Timothy Stack
bbf8bdc4ec
[search-table] highlight the captured text for preview
...
Defect Number:
Reviewed By:
Testing Done:
8 years ago
Timothy Stack
7e55f7401f
[filter-in] highlight matches in green
8 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:
8 years ago
Timothy Stack
78119dc9f1
fixing some minor issues
...
Fixes #255
8 years ago
Timothy Stack
00ebd10d71
[cmds] do a dry-run of a command to check for errors
...
Defect Number:
Reviewed By:
Testing Done:
8 years ago
Timothy Stack
8776f6a703
[sql] do some minimal parsing/annotation of SQL statements
...
Defect Number:
Reviewed By:
Testing Done:
8 years ago
Timothy Stack
8bf6bf1a65
[cmds] add the format directory to the PATH in the :pipe commands
8 years ago
Timothy Stack
32c9dacd0a
[files_vtab] add a vtable for opened files
...
Defect Number:
Reviewed By:
Testing Done:
8 years ago
Timothy Stack
c180c44e49
[vtab] add an lnav_view_stack table to get programmatic access to the view stack
...
More progress towards #377
8 years ago
Timothy Stack
71aa54ad4d
[keymap] convert more hotkeys to keymaps
...
Fixes #416
8 years ago
Timothy Stack
1a87184c82
[log] allow parts of log messages to be hidden
...
Fixes #412
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
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
9 years ago
Timothy Stack
a4deaa1e8b
[spectro] log_time must be in ascending order
9 years ago
Timothy Stack
82f970c09e
[config] add a config option to control A_DIM for text
...
Fixes #298
9 years ago
Suresh Sundriyal
e4ef35e652
[commands] Remove eval from the list of sandboxed commands.
9 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 .
9 years ago
Timothy Stack
a8cd28097b
[spectro] add some better error messages for the spectrogram command and fix some vtable glitches
9 years ago
Timothy Stack
9c364bf48e
[spectro] add spectro view support for sql results
9 years ago
Timothy Stack
99eb3a54f3
[spectro] support marking lines in a bucket
9 years ago
Timothy Stack
fdc2748e3e
[spectro] add a spectrogram view that works with known message fields
9 years ago
Timothy Stack
8de5d3b749
[logfile] add more options when opening files
9 years ago
Timothy Stack
2d04d047e4
[sql] change extract() to regexp_match() and make extract() an interface to the data_parser
9 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
.
9 years ago
Timothy Stack
85eee6514b
[sql] change extract() to regexp_match() and make extract() an interface to the data_parser
9 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.
9 years ago
Timothy Stack
89be76ef42
[filters] clear the state for filters that have been deleted
...
Fixes #292
9 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
10 years ago
Timothy Stack
e1874c0278
use poll instead of select so we can handle more than FD_SETSIZE files
10 years ago
Timothy Stack
32e96e6395
[pipe-to] fix some issues when running pipe in headless mode
10 years ago
Timothy Stack
38e56b63ea
[hist] fix the histogram when filters change
10 years ago
Suresh Sundriyal
410c2a3cd7
[-Wsign-compare] lnav_commands.cc
10 years ago
Timothy Stack
033c861028
[cmd] next/prev-mark commands
10 years ago
Timothy Stack
44d2e12403
[text] add filtering support to the plain text view
...
Fixes #149 #148
10 years ago
Timothy Stack
8fb15e455a
[cmd] add a relative-goto command
10 years ago
Timothy Stack
ff724e4941
[pipe-to] set env vars for each log line column
10 years ago
Timothy Stack
aea0bd54e0
[cmd] add a :redraw command to do a full redraw of the window
...
Fixes #18
10 years ago
Timothy Stack
12b81fe4e7
[format] fix full message read for json formats
10 years ago
Timothy Stack
1d3481c3fa
[cmd] add pipe-to and pipe-line-to commands
10 years ago
Timothy Stack
c80e181790
fix ptime_b_slow, again...
10 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
11 years ago
Timothy Stack
d17f7b1940
[cmd] add set-min-log-level command
...
Part of #82
11 years ago
Timothy Stack
cbd8308b36
[cmd] use wordexp in the open command
11 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.
11 years ago
Timothy Stack
54d979f44f
[open] bah, open should work for dirs
11 years ago
Timothy Stack
7b1bb506e2
[open] add some more checks when opening a file
11 years ago
Timothy Stack
9ff6a3cbe9
[write-json] add a command to write results as json
11 years ago
Timothy Stack
08374381b2
[partition] use an underline to mark a partition boundary
11 years ago
Timothy Stack
d993d0e8c6
[partition] make partitions a separate bookmark type
11 years ago
Timothy Stack
5a04a44381
[tests] add some tests that use headless mode
11 years ago
Timothy Stack
64fe8175a6
[log] add an internal logger instead of using redirected stderr
11 years ago
Timothy Stack
2dd2b02e1b
[headless] add options for usage without the UI
11 years ago
Timothy Stack
806b272679
[status] some fixes to the search hit count status
11 years ago
Timothy Stack
5b66441378
[doc] update some docs
11 years ago
Timothy Stack
aac5fada48
[nits] small changes to fix clang analyzer errors
11 years ago
Timothy Stack
c3e1dda8f7
[sql] fix bug when querying sub-lines
11 years ago
Timothy Stack
3259bde974
[nits] use pcrepp for filtering and fix sigabrt received when loading is interrupted
11 years ago
Timothy Stack
ccf361775a
[cmd] filter pcres should be case-insensitive
...
Defect Number:
Reviewed By:
Testing Done:
11 years ago
Timothy Stack
f867b9cc63
[wrap] add a hotkey for word wrap and fix some glitches
11 years ago
Timothy Stack
c3d51190c8
[wrap] start support for word wrapping and fix a variety of glitches
11 years ago
Timothy Stack
59c1d4313b
[mouse] more mouse support and other fixes
11 years ago
Timothy Stack
001f9abdef
[cmd] open/close file commands
11 years ago
Timothy Stack
c59acba758
[format] initial support for json formats and some bug fixes
11 years ago
Timothy Stack
729c842ca5
[session] saving bookmarks
11 years ago
Timothy Stack
2772064c7f
[nits] minor tweaks and bug fixes
11 years ago
Timothy Stack
275724e912
missed a change to summarize
11 years ago
Timothy Stack
3e480b5bad
[bookmark] add support for metadata attached to bookmarks
11 years ago
Timothy Stack
79c4038128
[log time] add a command to adjust log message times
11 years ago
Timothy Stack
0306287c1a
[misc] use localtime in timestamp for stdin; collate in summarize; <END> moves to the last line
11 years ago
Timothy Stack
5ba26cc5f7
[hist] cleanup the hist_source and add support for graphing a single column at a time
11 years ago
Timothy Stack
6535b03b6e
[log] try to cache the results of filtering so we do not always recompute
11 years ago
Timothy Stack
5a7d6dab2c
[cleanup] uncrustify
11 years ago
Timothy Stack
5ba3097ee7
[cleanup] move some code around and try to pretty things up a bit
11 years ago
Timothy Stack
178937886c
[cmd] add summarize command
11 years ago
Timothy Stack
a4792841da
[test] add-test command
11 years ago
Timothy Stack
e5d9779cde
[session] save bookmarks
11 years ago
Timothy Stack
88bfda4a3d
[bugs] use wordexp
12 years ago
Timothy Stack
0dba72db71
[nits] fix some minor bugs and add some path manipulation functions to sqlite
12 years ago
Timothy Stack
44f75111b1
[sqlite] prefix the column names with 'log_' and add a 'create-logline-table' command
12 years ago
Timothy Stack
865849f017
[spam] uncrustify pass
12 years ago
Timothy Stack
3128dc772c
[sqlite] Major improvements to the sqlite integration.
...
This is a checkpoint of the improvements to the sqlite integration. The
data_parser stuff should be much better now and I've tried to improve
other parts of the user experience as well.
12 years ago
Timothy Stack
f62b5c271c
[release] bump to 0.5.1
12 years ago
Timothy Stack
0360e6782c
[misc] a variety of fixes
...
* lnav.cc: Rerun searches in the text view when changing files. Fix the
scrollbar behavior when the mouse is used.
* lnav_commands.cc: Switch to the graph view when doing graphing.
* xterm_mouse.hh: The origin for mouse coordinates should be 0,0 and not 1,1 .
12 years ago
Timothy Stack
0c61c7d354
refactor lnav.cc
12 years ago