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

Add autostart functionality #14

Merged
merged 1 commit into from
Jun 27, 2020
Merged

Conversation

BlackHoleFox
Copy link
Contributor

Firstly, thank you for the great extension. I started using it with Foam and I have to say its rather nice.

I looked at the Roadmap and saw that auto start was on the list, so I thought I would give it a try. I implemented it in a pretty simple way, but it works as expected. If you start VSCode and a markdown file is currently open, it will automatically open the graph pane. If you don't have one open, but then open one at a later time after startup, it will launch the graph pane too.

To make it configurable I added an autoStart config option, defaulting to false.
autostart

And as a tiny nit (I can revert it if you want), I made the command display name more consistent with other extensions, by prefixing it with Markdown Links:

Before:
before

After:
after

Make command display name more consistent with other extensions
@tchayen
Copy link
Owner

tchayen commented Jun 27, 2020

🤯 . Thank you so much!

Inconsistent name wasn't on purpose, it was just my lack of awareness that I am doing something wrong.

@tchayen tchayen merged commit 53ad16c into tchayen:master Jun 27, 2020
@BlackHoleFox BlackHoleFox deleted the add-autostart branch June 27, 2020 14:48
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

Successfully merging this pull request may close these issues.

2 participants