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

Publish as Community Plugin #17

Open
lukemt opened this issue Aug 3, 2023 · 8 comments
Open

Publish as Community Plugin #17

lukemt opened this issue Aug 3, 2023 · 8 comments

Comments

@lukemt
Copy link
Contributor

lukemt commented Aug 3, 2023

I think it's about time to publish the plug-in for the community. It may not be perfect, though it's already pretty useful.

Any critical bugs or features missing for the release? What do you think?

As far as automated testing goes, maybe we can start by writing down test cases and use them for manual tests. Fully automated testing seems a bit excessive to me (although cool 😎)

@aidan-gibson
Copy link
Owner

Fuck it we ball 😤😤😤

@aidan-gibson
Copy link
Owner

I remember there being some config option somewhere to specify DesktopOnly...honestly I think just that and we're good.

Not sure how fully automated testing would work anyway, it's just a bit of a drag to test all the different settings options with every minor change pushed. But I should test everything manually before publishing for sure(:

@lukemt
Copy link
Contributor Author

lukemt commented Aug 5, 2023

Hell yeah!

@lukemt
Copy link
Contributor Author

lukemt commented Aug 6, 2023

Hell yeah! Preparing the Release...

Thoughts on Tab Navigation Behavior

I was thinking, should there be a way to navigate to a different file and replace the current tab, just like the default behavior, for example, by clicking a link? But wait, alt-clicking already has another function, so that might not be a good idea. Someone else suggested an interesting twist – command click to replace a tab, and normal click to open a new one. Honestly, not a fan of that as it inverts the standard functionality, which is kind of weird. For me, I don't miss that feature at all. If I want to replace a tab, I can just open a new one and close the old. Probably, most people installing this wouldn't bother too much. So, my conclusion is, it's fine the way it is, though we might consider this as an optional additional setting or just keep thinking about better ideas.

On Mobile Compatibility

Now, about this mobile thing. Currently, the plugin is desktop-only, and that's cool for now. isDesktopOnly is set in manifest.json already. But you know what? Let's think ahead. We can start by activating this thing on mobile and see how it goes. Maybe, we can implement a feature flag for optional activation on mobile. You could have a setting to switch on. Set to false initially, so manual activation is needed. Yeah, that could be a new feature. We can create a new issue for that, but for now, it's alright to be desktop-only.

On Handling PDF Files

Okay, let's talk about PDFs and other files. I don't use 'em much in Obsidian, but when I do, I'd probably prefer opening them in Obsidian. Although I'd like to have the option of both. So, my preference would be this: When I click on a PDF link, it opens within Obsidian, but in a new tab. But when I command click on the PDF link, it opens in the native app. Best of both worlds!

@lukemt
Copy link
Contributor Author

lukemt commented Aug 14, 2023

Hi @aidan-gibson

when you find the time maybe create a new version :P

@aidan-gibson
Copy link
Owner

Hi Luke! I'm down for as many options as you'd like. That sounds fine to me. I strongly preferred opening pdfs in Preview prior, but Obsidian has really upped their game with the native pdf reader, so I'm now cool with defaulting to Cmd+Click to open via system default pdf reader.

I'm a bit hesitant to publish to community plugins while #23 is still looming large, but pending that bug getting squashed I'm ready to roll.

@aidan-gibson
Copy link
Owner

@lukemt I sent you an invite as a collaborator btw! Sorry I didn't do so earlier, I've never done this before and wasn't sure how it worked.
To trigger the github action for new releases, after making commits, you do the following
npm version patch -m "<version message here>" && git push origin --tags && git push (I know the extra git push is totally cringe, haven't had time to uncringify it yet lmao). Thanks again for all the time you've put into this!

@lukemt
Copy link
Contributor Author

lukemt commented Aug 15, 2023

perfect!

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