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

searching for notes without a tag #37

Open
pfarrelle opened this issue Jan 23, 2021 · 7 comments
Open

searching for notes without a tag #37

pfarrelle opened this issue Jan 23, 2021 · 7 comments

Comments

@pfarrelle
Copy link

I just discovered your workflow - and I am blown away by how useful and fast it is. Everything worked as expected until I tried a common search strategy of mine that is not available through your workflow.

I have a lot of journal notes in bear, and I often want to search within the journal notes, or more likely exclude them from my search. This is done by searching for -#something

In my case I can exclude all of my journal notes by searching for -#journal_ since all of my journal notes are tagged in the same way. For example, today's journal note is tagged: #journal_2021/01/23.

When I try bs: -#journal_ in your workflow, I turn up only the two notes where I documented this search strategy for myself. In other words searching for -# doesn't exclude tags, but rather searches for text containing -#.

Hope this makes sense.

Thanks again for this wonderful contribution.

@drgrib
Copy link
Owner

drgrib commented Jan 25, 2021

Interesting. I just received an identical request in #37. As I said there, this isn't something I've ever needed to do, so I can't guarantee I'll have time to add the feature personally.

If you or anyone else ends up wanting to give an update to the code a try, though, I could review and test the change, merging it in if it is stable and functional. There have been contributors in the past who have fixed bugs and added features to the workflow.

@pfarrelle
Copy link
Author

pfarrelle commented Jan 28, 2021 via email

@drgrib
Copy link
Owner

drgrib commented Jan 28, 2021

That would be part (but not all) of the syntax change required, yes. But the deeper and more difficult change would be creating and using a new SQL tag query:
https://github.com/drgrib/alfred-bear/blob/master/db/db.go#L60-L87

The query and the code that calls it are already complicated and would need to be changed in a way that doesn't break the current functionality. While it may not be obvious at first glance, this is a pretty major feature to add. Because of that, I personally won't have time for it any time soon, possibly ever, especially because I have no need for the feature myself.

@mjknght
Copy link

mjknght commented Jan 28, 2021

I remain hugely grateful for this workflow! In fact @drgrib, I'd gladly tip for this if there was a PayPal link.

Ridiculous though this may sound, I use a couple of other workflows with Bear – features overlap somewhat but all are handy for different purposes. For the use case described above, it might be useful to glance at BearHunter – this is the workflow I'd use (albeit only very occasionally) when I need search operators of the sort mentioned here.

@drgrib
Copy link
Owner

drgrib commented Jan 28, 2021

Much appreciated @mjknght, both for the gratitude and the advice for alternatives. I should probably look into adding tip link for interested parties. I've felt similarly for other works I've seen on GitHub.

@pfarrelle
Copy link
Author

pfarrelle commented Jan 29, 2021 via email

@drgrib
Copy link
Owner

drgrib commented Jan 29, 2021

Thanks @pfarrelle!

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

No branches or pull requests

3 participants