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

Backport temp filter patch only for git version #63

Closed
chros73 opened this issue Jan 8, 2017 · 2 comments
Closed

Backport temp filter patch only for git version #63

chros73 opened this issue Jan 8, 2017 · 2 comments

Comments

@chros73
Copy link
Owner

chros73 commented Jan 8, 2017

Backport (and slightly modify) temp filter patch only for git version.
Refers to: rakshasa/rtorrent#519

Modify also ui_pyroscope_0.9.7.patch as well.

Summary:
By using F key (means capital f) in the main view window you can enter a regex that will be used to filter the current view based on the torrent name.
To remove the filter set the input to empty.
This is adding a 'view.temp_filter' property and a 'match{}' function.
For example with Ctrl+X you could do:
command> view.temp_filter=main,"match={d.name=,.*linux.*iso}"

  • temp filters are view independent (you can set/unset different temp filters per view)
  • you can't sub-filter a view that shouldn't be filtered (started, stopped) (see this)
  • you can sub-filter views that are filtered already (even when filter is triggered frequently)
  • if you only enter a word at filter> prompt it will auto convert it to a proper name filter
  • log messages can be displayed when temp filtering occured
    • disabled by default
    • can be enabled with: view.temp_filter.log.set=1
  • (filtered) word along the name of the view is displayed if a view is temp-filtered (at the top left corner). E.g. [View: active (filtered)]
  • certain views can be excluded from subfiltering via view.temp_filter.excluded config option
    • its default value: "default,started,stopped"
    • example usage in config: view.temp_filter.excluded.set="default,started,stopped,leeching"
@chros73
Copy link
Owner Author

chros73 commented Apr 15, 2017

Implement @pyroscope's suggestion about having view.temp_filter.excluded config option that allows to exclude certain views from subfiltering.

  • its default value: "default,started,stopped"
  • example usage in config: view.temp_filter.excluded.set="default,started,stopped,leeching"

Also update description of issue.

@chros73
Copy link
Owner Author

chros73 commented May 3, 2017

As @pyroscope suggested: rename ui.console.log.tempfilter to view.temp_filter.log , also update description of issue.

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

No branches or pull requests

1 participant