lnav icon indicating copy to clipboard operation
lnav copied to clipboard

Allow opening/closing add/remove files

Open stefan123t opened this issue 2 months ago • 2 comments

Is your feature request related to a problem? Please describe. I sometimes have opened a couple of files across multiple domains, which are huge and take a long time to build the search index (#548).

Describe the solution you'd like I would like to add a file to the current lnav session, without quit and rebuilding the index for all other files by adding the additional file to the command line.

Describe alternatives you've considered In the TAB Files menu there is already SPACE to hide individual logfiles from the display, but adding additional files and removing them from the current session completely is not available as a TUI menu option.

Additional context Add a / DEL to the TAB Files menu to add files using a small file browser or tab expansion Readline input.

stefan123t avatar Dec 01 '25 13:12 stefan123t

You can use the :open command to open additional files. The command supports TAB-completion and will show a preview of the file if you pause. In the main view, you can press X or use the :close command to close the file belonging to the focused message.

Adding a file browser would be a low priority.

tstack avatar Dec 01 '25 15:12 tstack

Thanks yes that does the trick for single files. Sorry for the noise I should have read the fine manual first / too.

Maybe add 'o'pen and 'c'lose to the TAB Open file list for easy access.

stefan123t avatar Dec 01 '25 16:12 stefan123t