smos icon indicating copy to clipboard operation
smos copied to clipboard

Add a meta tag for non-obsolete entries

Open distefam opened this issue 3 years ago • 5 comments

Frequently when using smos-query I want to filter for all entries that are "available", which simply means anything that is not CANCELLED, DONE, or FAILED. This suggestion is to add a "meta-tag" in that the state itself will not exist but be a pre-defined filter to show only those that are available.

distefam avatar Apr 05 '21 16:04 distefam

You can do this using the not:state:(CANCELLED or (DONE or FAILED)). Does this filter solve your problem?

NorfairKing avatar Apr 05 '21 16:04 NorfairKing

That is what I am currently doing, however, it is cumbersome to type out every time. I was basically hoping for an alias for that.

On Mon, Apr 5, 2021, at 12:34 PM, Tom Sydney Kerckhove wrote:

You can do this using the not:state:(CANCELLED or (DONE or FAILED)). Does this filter solve your problem?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NorfairKing/smos/issues/197#issuecomment-813489892, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAQAIZV35FMKANGSXJFVGTTHHRCVANCNFSM42NBPCJA.

distefam avatar Apr 05 '21 16:04 distefam

@distefam You can use prepared reports https://docs.smos.online/smos-query/report to define your own alias. (or just shell aliases of course)

NorfairKing avatar Apr 05 '21 16:04 NorfairKing

@distefam does that solve your problem?

NorfairKing avatar Jun 04 '21 19:06 NorfairKing

Not really in that it does not solve the problem for writing ad-hoc queries from the command-line. For example, I might have entries with a tag of wife that have one of the following states that are all "in play": waiting, todo, next, ready. When I'm talking with my wife I don't necessarily only want to do next items as I can usually knock out a few todo items while addressing some I might be waiting for also. So, I could write this like smos-query entry tag:wife not:state:(FAILED or DONE or CANCELLED) but this would be much nicer to write like smos-query entry tag:wife state:ACTIVE

distefam avatar Jun 07 '21 15:06 distefam