jschlatow / taskopen

Tool for taking notes and open urls with taskwarrior
GNU General Public License v2.0
364 stars 31 forks source link

RFE: taskopen -M #41

Closed linuxcaffe closed 3 years ago

linuxcaffe commented 11 years ago

-M as in Match type (formerly -t as in type)

taskopen -M [filter1 filter2 filterN] [\label]

Only open files whose file type (as returned by 'file') matches the given regular expression. Note, that applying -M implicitly excludes URIs and everything else that is not a file.

maybe ;-)

see: #17 and #37

linuxcaffe commented 11 years ago

what about extending "-f" with an optional [pattern], instead of -M ?

That might leave "-M" to mean /exclude/ matching items.

better mnemonics, better symmetry

linuxcaffe commented 11 years ago

that would make it

-f   ['regex']   show only files [of 'regex' type]
-F   ['regex']   hide all files [of 'regex' type]
-m   'regex'     show only annotations matching 'regex'
-M   'regex'     hide all annotations matching 'regex'