Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Limit searches to section of file #141

Open
driessen opened this issue Jan 27, 2017 · 2 comments
Open

Feature request: Limit searches to section of file #141

driessen opened this issue Jan 27, 2017 · 2 comments
Assignees

Comments

@driessen
Copy link

Often, I have a big log file and I know in which section I want to search. Typical example is that I want to see what happens to "widget" between two events or timestamps. I'd like to first search to find the events, timestamps or whatever limits my section, mark these lines as section-begin and section-end, and then have all search commands be limited to this section. If only one of section-begin and section-end is set, the other is assumed to be start / end of file.

@nickbnf nickbnf self-assigned this Mar 21, 2017
@variar
Copy link
Contributor

variar commented Mar 21, 2017

I've actually implemented this in my fork (used to work with multi-gigabyte log files with many search patterns). Implementation has some UI issues but search works as expected. I can create a branch with just these changes to be merged to glogg.

Work was done in this branch, however it is pretty old and might not be good base for clean merge.

@nickbnf
Copy link
Owner

nickbnf commented Jun 22, 2017

I have an idea on how we could define "sections" in a file and operate on either or all of them, that would include search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants