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

How to setting ignoreGlobs in foam janitor command #4

Open
t2hv33 opened this issue Sep 6, 2022 · 1 comment
Open

How to setting ignoreGlobs in foam janitor command #4

t2hv33 opened this issue Sep 6, 2022 · 1 comment

Comments

@t2hv33
Copy link

t2hv33 commented Sep 6, 2022

  • My foam extension can read my ignoreGlobs in .vscode/settings.json in Output Foam Log
  "foam.files.ignore": [
    "journal/**/*",
    "/docs/**/*",
    "**/_layouts/**/*",
    "**/.vscode/**/*",
    "**/_site/**/*",
    "**/node_modules/**/*",
    "packages/**/*"
  ],

It worked in foam extension

But when I run foam-cli: foam janitor '~/Documents/foam-hub'

 Reading Files[info] Workspace folders:  [ '/Users/name/Documents/foam-hub' ]
[info] Glob patterns {
  includeGlobs: [ '/Users/name/Documents/foam-hub/**/*' ],
  ignoreGlobs: [] //it can't read the ignoreGlobs config

How to config ignoreGlobs for foam cli with the global config?

@riccardoferretti
Copy link
Contributor

foam-cli is no longer maintained/supported but kept open in case people want to propose their own fixes to possible issues they might come across.

In this case, looking at the code: https://github.com/foambubble/foam-cli/blob/main/src/commands/janitor.ts
it can be see that foam-cli doesn't read any configuration file when bootstrapping, but simply use standard parameters.

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