Skip to content

An option to exclude files and directories implied by -r (recurse) option #1258

@metablaster

Description

@metablaster

Is your feature request related to a problem? Please describe.

Using -r option to recurse into directory will pick up all files and directories including those one might now want to load.

A solid example is lnav -r /var/log which will also load /var/log/journal logs but those are undesired to be loaded first because journal is better piped to lnav and secondly because it will significantly slow down loading of log files.

And unless I'm wrong journal entries are nothing but duplicate of already present and loaded files from /var/log

Describe the solution you'd like

An option to exclude files and directories when -r option is used

Describe alternatives you've considered

I'm not aware of any alternatives other than writing a long line of directories and files which to explicitly load.
If you know of a better method as a workaround please share!

Additional context

I think the option to exclude files or directories should not be limited to the use of the -r option because one might want to exclude certain files when not recursing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions