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

Search only in current node and it's subnodes #2638

Open
xidiot opened this issue Jan 24, 2025 · 2 comments
Open

Search only in current node and it's subnodes #2638

xidiot opened this issue Jan 24, 2025 · 2 comments

Comments

@xidiot
Copy link

xidiot commented Jan 24, 2025

I think there's no way at the moment to search only only in current node and it's subnodes. This is super useful for limiting the search to a particular "topic", e.g.

Image

@gitvectors
Copy link

Another user, here. Experimenting.
I have found by experimenting several external methods of searching sub-nodes.
If you are using *.ctd format it is XML format. You can use XML searching.
Here for example is one library for use in Python script (which could in fact be in a CodeBox within CherryTree).
https://docs.python.org/3/library/xml.etree.elementtree.html
You might also open your *.ctd file in a free XML editor XMLCopyEditor and search therein. You can also search all *.ctd docs in your desktop. Query: [ext:ctd] using Recoll. So think "out of the box" and "toolchain". Even ripgrep-all can be used, again within a CodeBox.
The one obstacle is easily grabbing the target CT filepath. You see this in toolbar but currently you have to eyeball, copy and paste as a variable. However Recoll gives file directory and file path and can be used in Python scripting.

@gitvectors
Copy link

XMLCopyEditor

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

2 participants