Closed onlurking closed 3 years ago
Or even further,
Add a custom setting that allows users to input the path of their vault, then when you want to start Dual, just hit a button (I suppose in the settings of Dual) that runs start server command.
I think this would make it more accessible to people who aren't vary familiar with executing commands.
I mean honestly,
You could just use Automator
to run a command when you open Obsidian. If you're on a Mac. I presume there's other options for other platforms.
Furthering this, within automator you could have a list of paths to choose from if you have multiple vaults in various locations.
Given that the pure Python setup is an early hacky way of prototyping, not the final way the backend will be delivered, I don't think we should add a quick command designed to help with the installation from source. When the server thing will be a binary, sure, but right now I think testers and contributors can manage a terminal or a hacky automation. And when both source and binaries will be available, imho only a quick command for the binary makes sense.
But actually my guess is that an on-startup setting will start the server at once with Obsidian.
I see, sounds good!
Add a
Dual: Start Server
command palette to runpython server.py --path [current vault folder]
under the hood.