rndusr / stig

TUI and CLI for the BitTorrent client Transmission
GNU General Public License v3.0
554 stars 24 forks source link

More than one filter in tab #119

Closed Erebea closed 5 years ago

Erebea commented 5 years ago

Is this even possible? I keep trying to exclude two different paths and it isn't working, am I doing it wrong?

tab ls !path~dir1 !path~dir2 --columns name,peers,rate-down,rate-up,eta,downloaded,uploaded,size,ratio --sort added

rndusr commented 5 years ago

From stig help filtersmanual:

Filters can be combined with the operators "&" (logical AND) and "|" (logical OR). Multiple FILTER arguments are implicitly combined with "|". Example: "name=foo paused" is the same as "name=foo|paused".

So this should work: ls '!path~dir1 & !path~dir2'