├── .eslintignore ├── .eslintrc.json ├── .github └── workflows │ ├── integration.yml │ └── publish.yml ├── .gitignore ├── LICENSE ├── README.md ├── babel.config.js ├── bin ├── run └── run.cmd ├── jest.config.js ├── package.json ├── src ├── commands │ ├── janitor.ts │ └── migrate.ts ├── core │ ├── .eslintrc.json │ ├── common │ │ ├── cancellation.ts │ │ ├── charCode.ts │ │ ├── errors.ts │ │ ├── event.ts │ │ ├── functional.ts │ │ ├── iterator.ts │ │ ├── lifecycle.ts │ │ ├── linkedList.ts │ │ ├── platform.ts │ │ ├── snippetParser.test.ts │ │ └── snippetParser.ts │ ├── janitor │ │ ├── apply-text-edit.test.ts │ │ ├── apply-text-edit.ts │ │ ├── generateHeadings.test.ts │ │ ├── generateLinkReferences.test.ts │ │ └── index.ts │ ├── markdown-provider.test.ts │ ├── markdown-provider.ts │ ├── model │ │ ├── foam.ts │ │ ├── graph.ts │ │ ├── note.ts │ │ ├── position.ts │ │ ├── provider.ts │ │ ├── range.ts │ │ ├── tags.test.ts │ │ ├── tags.ts │ │ ├── uri.test.ts │ │ ├── uri.ts │ │ ├── workspace.test.ts │ │ └── workspace.ts │ ├── services │ │ ├── datastore.test.ts │ │ └── datastore.ts │ └── utils │ │ ├── core.ts │ │ ├── hashtags.ts │ │ ├── index.ts │ │ ├── log.ts │ │ ├── path.ts │ │ └── utils.test.ts ├── index.ts ├── test │ └── test-utils.ts └── utils │ ├── index.ts │ ├── rename-file.ts │ └── write-file-to-disk.ts ├── test-data ├── __migration__ │ ├── Roam Document.md │ └── Second Roam Document.md ├── __scaffold__ │ ├── Note being refered as angel.md │ ├── angel-reference.md │ ├── file-with-explicit-and-implicit-link-references.md │ ├── file-with-explicit-link-references.md │ ├── file-with-only-frontmatter.md │ ├── file-without-title.md │ ├── first-document.md │ ├── index.md │ ├── second-document.md │ └── third-document.md ├── test-config │ ├── enable-plugins │ │ └── config.json │ ├── folder1 │ │ └── config.json │ └── folder2 │ │ └── config.json └── test-datastore │ ├── docs │ └── file-in-nm.md │ ├── file-a.md │ └── info │ ├── docs │ └── file-in-sub-nm.md │ ├── file-b.md │ └── image-a.png ├── test ├── rename-file.test.ts └── write-file-to-disk.test.ts ├── tsconfig.json ├── types └── utils.d.ts └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- 1 | /lib 2 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/integration.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/.github/workflows/integration.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/babel.config.js -------------------------------------------------------------------------------- /bin/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/bin/run -------------------------------------------------------------------------------- /bin/run.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | node "%~dp0\run" %* 4 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/package.json -------------------------------------------------------------------------------- /src/commands/janitor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/commands/janitor.ts -------------------------------------------------------------------------------- /src/commands/migrate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/commands/migrate.ts -------------------------------------------------------------------------------- /src/core/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/.eslintrc.json -------------------------------------------------------------------------------- /src/core/common/cancellation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/cancellation.ts -------------------------------------------------------------------------------- /src/core/common/charCode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/charCode.ts -------------------------------------------------------------------------------- /src/core/common/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/errors.ts -------------------------------------------------------------------------------- /src/core/common/event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/event.ts -------------------------------------------------------------------------------- /src/core/common/functional.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/functional.ts -------------------------------------------------------------------------------- /src/core/common/iterator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/iterator.ts -------------------------------------------------------------------------------- /src/core/common/lifecycle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/lifecycle.ts -------------------------------------------------------------------------------- /src/core/common/linkedList.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/linkedList.ts -------------------------------------------------------------------------------- /src/core/common/platform.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/platform.ts -------------------------------------------------------------------------------- /src/core/common/snippetParser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/snippetParser.test.ts -------------------------------------------------------------------------------- /src/core/common/snippetParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/common/snippetParser.ts -------------------------------------------------------------------------------- /src/core/janitor/apply-text-edit.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/janitor/apply-text-edit.test.ts -------------------------------------------------------------------------------- /src/core/janitor/apply-text-edit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/janitor/apply-text-edit.ts -------------------------------------------------------------------------------- /src/core/janitor/generateHeadings.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/janitor/generateHeadings.test.ts -------------------------------------------------------------------------------- /src/core/janitor/generateLinkReferences.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/janitor/generateLinkReferences.test.ts -------------------------------------------------------------------------------- /src/core/janitor/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/janitor/index.ts -------------------------------------------------------------------------------- /src/core/markdown-provider.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/markdown-provider.test.ts -------------------------------------------------------------------------------- /src/core/markdown-provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/markdown-provider.ts -------------------------------------------------------------------------------- /src/core/model/foam.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/foam.ts -------------------------------------------------------------------------------- /src/core/model/graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/graph.ts -------------------------------------------------------------------------------- /src/core/model/note.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/note.ts -------------------------------------------------------------------------------- /src/core/model/position.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/position.ts -------------------------------------------------------------------------------- /src/core/model/provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/provider.ts -------------------------------------------------------------------------------- /src/core/model/range.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/range.ts -------------------------------------------------------------------------------- /src/core/model/tags.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/tags.test.ts -------------------------------------------------------------------------------- /src/core/model/tags.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/tags.ts -------------------------------------------------------------------------------- /src/core/model/uri.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/uri.test.ts -------------------------------------------------------------------------------- /src/core/model/uri.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/uri.ts -------------------------------------------------------------------------------- /src/core/model/workspace.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/workspace.test.ts -------------------------------------------------------------------------------- /src/core/model/workspace.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/model/workspace.ts -------------------------------------------------------------------------------- /src/core/services/datastore.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/services/datastore.test.ts -------------------------------------------------------------------------------- /src/core/services/datastore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/services/datastore.ts -------------------------------------------------------------------------------- /src/core/utils/core.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/utils/core.ts -------------------------------------------------------------------------------- /src/core/utils/hashtags.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/utils/hashtags.ts -------------------------------------------------------------------------------- /src/core/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/utils/index.ts -------------------------------------------------------------------------------- /src/core/utils/log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/utils/log.ts -------------------------------------------------------------------------------- /src/core/utils/path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/utils/path.ts -------------------------------------------------------------------------------- /src/core/utils/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/core/utils/utils.test.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export {run} from '@oclif/command' 2 | -------------------------------------------------------------------------------- /src/test/test-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/test/test-utils.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/rename-file.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/utils/rename-file.ts -------------------------------------------------------------------------------- /src/utils/write-file-to-disk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/src/utils/write-file-to-disk.ts -------------------------------------------------------------------------------- /test-data/__migration__/Roam Document.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/__migration__/Roam Document.md -------------------------------------------------------------------------------- /test-data/__migration__/Second Roam Document.md: -------------------------------------------------------------------------------- 1 | # Second Roam Document 2 | -------------------------------------------------------------------------------- /test-data/__scaffold__/Note being refered as angel.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/__scaffold__/Note being refered as angel.md -------------------------------------------------------------------------------- /test-data/__scaffold__/angel-reference.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/__scaffold__/angel-reference.md -------------------------------------------------------------------------------- /test-data/__scaffold__/file-with-explicit-and-implicit-link-references.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/__scaffold__/file-with-explicit-and-implicit-link-references.md -------------------------------------------------------------------------------- /test-data/__scaffold__/file-with-explicit-link-references.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/__scaffold__/file-with-explicit-link-references.md -------------------------------------------------------------------------------- /test-data/__scaffold__/file-with-only-frontmatter.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/__scaffold__/file-with-only-frontmatter.md -------------------------------------------------------------------------------- /test-data/__scaffold__/file-without-title.md: -------------------------------------------------------------------------------- 1 | This file is missing a title 2 | -------------------------------------------------------------------------------- /test-data/__scaffold__/first-document.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/__scaffold__/first-document.md -------------------------------------------------------------------------------- /test-data/__scaffold__/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/__scaffold__/index.md -------------------------------------------------------------------------------- /test-data/__scaffold__/second-document.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/__scaffold__/second-document.md -------------------------------------------------------------------------------- /test-data/__scaffold__/third-document.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/__scaffold__/third-document.md -------------------------------------------------------------------------------- /test-data/test-config/enable-plugins/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/test-config/enable-plugins/config.json -------------------------------------------------------------------------------- /test-data/test-config/folder1/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/test-config/folder1/config.json -------------------------------------------------------------------------------- /test-data/test-config/folder2/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test-data/test-config/folder2/config.json -------------------------------------------------------------------------------- /test-data/test-datastore/docs/file-in-nm.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test-data/test-datastore/file-a.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test-data/test-datastore/info/docs/file-in-sub-nm.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test-data/test-datastore/info/file-b.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test-data/test-datastore/info/image-a.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/rename-file.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test/rename-file.test.ts -------------------------------------------------------------------------------- /test/write-file-to-disk.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/test/write-file-to-disk.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/utils.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'remark-wiki-link'; -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foambubble/foam-cli/HEAD/yarn.lock --------------------------------------------------------------------------------