obsidian-copy-url-in-preview icon indicating copy to clipboard operation
obsidian-copy-url-in-preview copied to clipboard

Reveal file in navigation support File Tree Alternative Plugin

Open xtmu opened this issue 1 year ago • 1 comments

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.

xtmu avatar Oct 07 '23 09:10 xtmu

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.

xtmu avatar Oct 09 '23 05:10 xtmu

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.~~

NomarCub avatar Jun 22 '24 10:06 NomarCub

Hi @NomarCub, I just added a functionality to focus the tree view if you trigger the custom event

ozntel avatar Jun 22 '24 18:06 ozntel

Thank you!

NomarCub avatar Jun 22 '24 18:06 NomarCub

@xtmu please take a look at this, I don't want to add a new feature that no one would use.

NomarCub avatar Jun 26 '24 18:06 NomarCub

@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.

NomarCub avatar Jul 09 '24 06:07 NomarCub

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'.

xtmu avatar Jul 10 '24 11:07 xtmu

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 avatar Jul 17 '24 06:07 NomarCub

@NomarCub It looks friendly enough to both 'Files' user and 'File Tree Alternative' user. Thanks so much! Looking forward to updating a release.

xtmu avatar Jul 24 '24 09:07 xtmu

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

NomarCub avatar Jul 25 '24 10:07 NomarCub