Menu

#114 Quick filter

open
nobody
5
2012-09-15
2012-09-15
No

It would be great e.g. for logfile analysis to be able to filter the content of the editor by a regex.
I.e. for an open file, only show lines that match the filter, just like grep.

A first version could be a simple input field for the toolbar with a switch to inverse the filter (only show lines that _dont_ match the filter - like 'grep -v')
An improved version would be to be able to stack multiple filters.

Any thoughts?

Discussion

  • Nick Treleaven

    Nick Treleaven - 2012-09-15

    If you want the matching lines to be shown in the Messages tab of the messages window, you can already do this with Find in Document, available in the Find dialog. Or did you mean to change the editor view?

     
  • Michael Pollmeier

    Thanks for your comment. I thought about actually changing the editor view on the fly. If one could use multiple filters and specify to inverse filters that would be ideal for logfile analysis, where you often want to adjust and add more filters on the fly (i.e. stacking of filters).

    At the moment I often do something like this:
    cat big_logfile | grep 'Something Interesting' | grep -v 'Not interested in this' > filtered_logfile
    to filter the content of the file to then open it in geany.

    We already have the functionality to find and mark lines based on a regexp, maybe we can reuse some code here..

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.