obsidian-copy-url-in-preview
obsidian-copy-url-in-preview copied to clipboard
Reveal file in navigation support File Tree Alternative Plugin
I use File Tree Alternative Plugin as OB's default file explorer, please provide setting for which file-explorer to reveal in when using reveal file in navigation.
I want the context menu reveal file in navigation to reveal file in File Tree Alternative file explorer. Please give me a hint about where to place that API, and how to use it.
Hi! I did a demo on this branch: https://github.com/NomarCub/obsidian-copy-url-in-preview/compare/main...reveal-in-file-tree Could you please try it, to see if it's good for you? Here's the test version zipped: copy-url-in-preview-file-tree-test.zip.
If this works fine, I'll add an option to disable the native reveal option, if you still want that. ~~One issue I found is this command doesn't focus the tree view if it's not in focus already, unlike the native one. I'd have to ask its maintainer for that if that's something you also need.~~
Hi @NomarCub, I just added a functionality to focus the tree view if you trigger the custom event
Thank you!
@xtmu please take a look at this, I don't want to add a new feature that no one would use.
@xtmu if there's no response here this month, I'll close this issue. Comment now, or in the future if you still want this.
Hi, @NomarCub , sorry for late response, I didn't use computer lately because my new home has no network connection. I just tested the zip file, it's exactly what I need, thank you for your nice work. And it is good to add an option 'disable the native reveal option' for hiding reveal file in navigation, default status could be 'on'.
Hey @xtmu! Could you take a look at the final version before release? It has the setting added. copy-url-in-preview-file-tree-test-2.zip
@NomarCub It looks friendly enough to both 'Files' user and 'File Tree Alternative' user. Thanks so much! Looking forward to updating a release.
Thank you for your patience and your cooperation! The release is out, here: https://github.com/NomarCub/obsidian-copy-url-in-preview/releases/tag/1.9.0