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

"Copy link to node" for external use [feature request] #2452

Closed
jonathonmckay opened this issue Mar 7, 2024 · 3 comments
Closed

"Copy link to node" for external use [feature request] #2452

jonathonmckay opened this issue Mar 7, 2024 · 3 comments

Comments

@jonathonmckay
Copy link

I've been using CherryTree for a couple years now, and am completely loving it.
That said, there are a couple thing I'd like to see added some day to make it even better.
(I'll raise them separately. Apologies if there is already threads for them that I missed)

I find the "Copy link to node" super useful for cross referencing related notes.
However, occasionally it'd like to copy a link or path to a node for pasting into another application (A task tracker, email, documents, etc). However, all that gets pasted into the other application is something like "node: 07 Thu"

I'd like to see a menu / tool bar option to "Copy node path" or something like that, that could copy to the the clipboard something along the lines of "\path\to\CTfile - path / through / the / nodes", basically as displayed at the top of the editor window, with the path and file its from (optionally) tacked on the front.

Extra awesome (but not at all necessary): Make it paste as some kind of link, that would trigger CherryTree to open the correct file and navigate to the correct node. This would likely require registering some kind of URI handling with the OS, I would expect.

@jonathonmckay jonathonmckay changed the title "Copy link to node" for external use "Copy link to node" for external use [feature request] Mar 7, 2024
@gitvectors
Copy link

gitvectors commented Mar 17, 2024

When I do not find a built in feature I look for workarounds.
I am considering CherryTree documents to interface with external apps .. as are you. I concluded that my route is to work on the internal structure in a *.ctd mode. (Note: extension typo error later corrected to *.ctd)
Install XMLCopyEditor and open your *.ctd (it must be that, not SQL) in XMLCopyeditor. https://xml-copy-editor.sourceforge.io/
Explore the XML elements.
Now we can begin to build API's to the XML structure. Also go to CherryTree Manual (F1) and read Command Line.

That is my approach. Research XML treeelement parsing in Python. I am using CherryTree as the hub of a number of processes.

@giuspen
Copy link
Owner

giuspen commented Jun 29, 2024

Hello @jonathonmckay I added more information to the link to node (and to the link to anchor) when pasted to a non rich text node or outside of cherrytree.
For a command that automatically opens cherrytree to the specified node you would have to use command line arguments, but those are not working at the moment on the windows cherrytree.exe.

@jonathonmckay
Copy link
Author

Excellent. This is exactly what I was hoping for. Thank you so much.

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