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

[FR]: Restore the refresh feature of Git: Open source control view #838

Open
Ai-Jani opened this issue Jan 15, 2025 · 1 comment
Open

[FR]: Restore the refresh feature of Git: Open source control view #838

Ai-Jani opened this issue Jan 15, 2025 · 1 comment

Comments

@Ai-Jani
Copy link

Ai-Jani commented Jan 15, 2025

Thank you for providing an excellent plugin.

In the update to v2.31.1, the app.workspace.trigger("obsidian-git:refresh"); was removed from the Git: Open source control view command (this commit). I liked the ability to refresh in Git: Open source control view. I have assigned this command to a hotkey, which allows me not only to show the source control view but also to refresh the status with the same command, even if it is already open.

Is there any plan to restore this feature? Or is there an easy way to refresh without using the mouse at the moment?

Thank you for your confirmation.

@Ai-Jani
Copy link
Author

Ai-Jani commented Jan 15, 2025

I found that I can refresh with the following command.

app.plugins.plugins['obsidian-git'].refresh();

Now, I created a script using the QuickAdd plugin to run the Git: Open source control view command and refresh, and assigned a hotkey to it.
Thank you.

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

1 participant