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

Run a cron command on a specific file? #9

Closed
zeltak opened this issue Jun 11, 2024 · 3 comments
Closed

Run a cron command on a specific file? #9

zeltak opened this issue Jun 11, 2024 · 3 comments

Comments

@zeltak
Copy link

zeltak commented Jun 11, 2024

Hi and thank you for this amazing plugin!

i actually discovered this via this conversation:

ivan-lednev/obsidian-task-archiver#82 (comment)

and im wondering if i can request an option to run the cron command on a specific file?

thx alot!

Z

@cdloh
Copy link
Owner

cdloh commented Jun 11, 2024

Hi @zeltak 👋

At present this wouldn't be possible no.

There are a few problems I for see with this.

To activate the command on a specific file it has to be active with the current editor. This would result in a potentially pretty shitty experience for the user as periodically their Obsidian would just swap files randomly, regardless of if they were presently doing this.

There might potentially be ways around this but will have to investigate. I wouldn't have super high hopes.

Thanks!

@zeltak
Copy link
Author

zeltak commented Jun 12, 2024

thx for the update @cdloh !

@cdloh
Copy link
Owner

cdloh commented Sep 11, 2024

@zeltak I've had a look at this and it isn't really possible. I have no way of controlling other commands etc.

If you need to run it against a specific file like in your example I would need to make the editor change the current file which would create a really bad user experience as periodically your editor would effectively be out of your control.

You would need to get the plugin to expose an API so you could do it periodically against specific files.

@cdloh cdloh closed this as completed Sep 11, 2024
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