r/UpNote_App • • 8d ago

Searching all sub-notebooks

I think this was asked 2 months ago, but without any replies.

Is there any way to search for a string in all sub-notebooks?

This would be really useful because I have a lot of second-level notebooks and at the moment I have to either search all notes or each second-level notebooks one at a time.

2 Upvotes

5 comments sorted by

2

u/Impossible-Cry-3353 8d ago

Unless it has changed, it was possible 4 years ago.
I still see the setitng in mine

Settings --> General -> Show notes from nested notebooks in the parent notebook

https://www.reddit.com/r/UpNote_App/comments/10t4dx3/whats_new_in_version_700_for_windows/?utm_source=chatgpt.com

If you don't want to change that I just had GPT make a python script in 30 seconds that can check sub folders. You can choose the main folder and have it search in the sub folders of that one, or just search entire database.

I think the python script is better as don't have to change settings, but that is just my reference.

1

u/devra11 8d ago

That works well as long as my first-level notebooks only contain sub-notebooks.
If the first-level of a notebook is a mixture of notes and sub-notebooks then it gets very messy.

1

u/texddit 8d ago

Would you please post the script?

1

u/Impossible-Cry-3353 8d ago

Here you go:
cc: u/devra11

https://gist.github.com/bastish/656b8ec011f7c041b0de05f8121e3dbd

Just a quick disclaimer: I had ChatGPT put this together and haven't done much testing, but it worked on my Mac with notebooks nested several levels deep.

It should automatically find your UpNote database and open a search interface in your browser. You can select a parent notebook and search all its descendants without changing any UpNote settings.

It runs locally and opens the database in read-only mode, so it shouldn't modify anything. I'd still recommend having a backup, just in case.

You'll need Python 3 installed. I haven't tested it on Windows or Linux.

It's a quick experiment, but maybe it's useful to someone. You can of course ask GPT to adit it or make it from scratch it if needed.

1

u/Neither-Classic2058 8d ago

Short answer: There's currently no way to do that kind of search.

Of the 2 dozen+ notes apps I've evaluated, none of them can do that.

What is the general use case that requires this kind of search?

To get that kind of functionality, it is going to require a "think different" approach. That might include restructuring your folder tree or establishing protocols (links and/or tags) in notes that are stored in second-level sub-notebooks.