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

Foam ignores "foam.openDailyNote.titleFormat": "yyyy-mm-dd" #687

Closed
jonasdiemer opened this issue Jun 21, 2021 · 4 comments
Closed

Foam ignores "foam.openDailyNote.titleFormat": "yyyy-mm-dd" #687

jonasdiemer opened this issue Jun 21, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@jonasdiemer
Copy link

  • Foam version: 0.13.7
  • Platform: Mac
  • Issue occur on the foam template repo: Yes

Summary
Changes in "foam.openDailyNote.titleFormat" are ignored, Daily notes title is always shown as "dddd, mmmm dS, yyyy".

Steps to reproduce

  1. Open Preferences, Foam > Open Daily Note: Title Format; Click "Edit in settings.json"
  2. Change format to e.g. "yyyy-mm-dd"
  3. Open new daily note (via keyboard shortcut)
  4. Observe that title format is still like # Monday, June 21, 2021
@movermeyer
Copy link
Collaborator

movermeyer commented Jun 21, 2021

Interestingly, I was able to reproduce this, but only in some scenarios...

My config:

  "foam.openDailyNote.directory": "/Users/michael.overmeyer/src/github.com/movermeyer/foam-data/journal",
  "foam.openDailyNote.titleFormat": "yyyy-mm-dd",

When I have /Users/michael.overmeyer/src/github.com/movermeyer/foam-data opened as a workspace, and run Foam: Open Daily Note, then it opens a new note with the title # Monday, June 21, 2021, as described in the bug report.

If however, I have a different workspace open, and run Foam: Open Daily Note, the correct title is used: # 2021-06-21


Seems there is something going on with Foam's ability to find the VSCode settings???

@jmg-duarte
Copy link
Member

I was unable to reproduce, could you provide more information?

@RobinKing
Copy link
Contributor

I think this may have something todo with different config files in vscode.

There are 3 config files in the user directory, workspace directory, and current directory.

See if the workspace settings file workspace.code-workspace also has a config item for foam.openDailyNote.titleFormat.

I can reproduce this by changing workspace.code-workspace .

@jonasdiemer @movermeyer

@jonasdiemer
Copy link
Author

Thanks, @RobinKing - I indeed overlooked the setting in the workspace config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants