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

creating files consistent with obsidian structure #56

Closed
anandkumar89 opened this issue Apr 23, 2024 · 2 comments · Fixed by #111
Closed

creating files consistent with obsidian structure #56

anandkumar89 opened this issue Apr 23, 2024 · 2 comments · Fixed by #111

Comments

@anandkumar89
Copy link

Obsidian allows users to specify where dailyNotes, templates etc are stored.

currently configuration doesn't allow to replicate same structure. As it allows creating files, there should be some config to allow users to define file placement (esp. dailynotes)

I realise this doesn't fall under the purview of a lsp but I could think of alternate solution than to include a config in lsp.

@Feel-ix-343
Copy link
Owner

Ok this is a great idea!

There is configuration supported for the LS through .config/moxide/settings.toml or .moxide.toml in the workspace root (or as the workspace root!). See the readme for options. Here we could specify where these types of files would be placed.

Daily notes should be pretty easy because the LS already detects this them.

We could start off there and see what else to specify. Once moxide supports templates, this setting could easily be added too.

@Feel-ix-343
Copy link
Owner

Feel-ix-343 commented May 27, 2024

how does that work for you? We have

  • Code action creates in the proper location
  • LSP Commands Today, Yesterday, Tomorrow, Daily ... will create the daily notes file in the proper location

Make sure to use the latest version. Or perhaps I'll release a new version today for you

Are you able to use master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants