Commit Graph

292 Commits

Author SHA1 Message Date
Jani Eväkallio
080a19a522 Foam Janitor 2020-07-25 19:41:41 +01:00
Jani Eväkallio
b5e28768aa Turn on foam.edit.linkReferenceDefinitions: withExtensions 2020-07-25 19:41:18 +01:00
Jani Eväkallio
60efdaa864 Run Janitor on docs/ 2020-07-25 18:35:23 +01:00
Jani Eväkallio
5418ea8bb2 v0.3.0 v0.3.0 2020-07-25 18:28:52 +01:00
Jani Eväkallio
50dd3685cd Prepare for 0.3.0 release 2020-07-25 18:27:08 +01:00
Jani Eväkallio
0ae0ab6c50 Remove unnecessary file 2020-07-25 18:23:05 +01:00
Jani Eväkallio
e1f5fb06c6 Add missing Janitor image 2020-07-25 18:22:46 +01:00
Jani Eväkallio
c04b342a76 Document janitor 2020-07-25 18:22:33 +01:00
Jani Eväkallio
0fc9397ed8 foam-vscode changelog 2020-07-25 18:09:11 +01:00
Jani Eväkallio
11fa878ed8 Document withExtensions 2020-07-25 18:06:55 +01:00
Jani Eväkallio
2e3f02c5bc Document daily note feature (#157)
* Document daily note feature

* Update docs/daily-notes.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/daily-notes.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/daily-notes.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/recipes.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/daily-notes.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

Co-authored-by: Joe Previte <jjprevite@gmail.com>
2020-07-25 17:52:04 +01:00
Jani Eväkallio
7c6874d528 Use shared Foam instance in janitor 2020-07-25 17:41:54 +01:00
Jani Eväkallio
fe9c6461c4 Remove hello commoand from CLI 2020-07-25 17:28:06 +01:00
Thomas Koppelaar
1047443677 Update images-from-your-clipboard.md (#150) 2020-07-25 17:17:33 +01:00
CHIRAG SINGHAL
0cf2295c2a Implement janitor command to extension (#155)
* Move applyTextEdit to core

* WIP: Add janitor command in foam-vscode

* basic janitor command done

* unsaved markdown janitor solved

* export bootstrap getConfig functions

* fixed multi unsaved files text edits

* Move applyTextEdit to core

* WIP: Add janitor command in foam-vscode

* basic janitor command done

* unsaved markdown janitor solved

* export bootstrap getConfig functions

* fixed multi unsaved files text edits

* Be less greedy about definitions, only include defs at end of file

* Use link reference definitions in janitor

* Add headers/footers to tests

* Ensure janitor doesn't touch unrelated reference definitions

* Format document, convert promise trampoline to async/await for readability

* Add error handling and friendly output

* Use workspace settings for extension

* Add flag to janitor

* Use note.eol

* Fix tests

Co-authored-by: Ankit Tiwari <ankitt255@gmail.com>
Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
2020-07-25 17:17:03 +01:00
vitaly-pevgonen
9e7c3ffed8 Recipe for publishing to Azure DevOps wiki. (#147)
* Recipe for publishing to Azure DevOps wiki.

* Small fix: Devops -> DevOps in link references.

* Update docs/azure-devops-wiki.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/azure-devops-wiki.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/azure-devops-wiki.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/azure-devops-wiki.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/azure-devops-wiki.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update azure-devops-wiki.md

Co-authored-by: Vitaly Pevgonen <vitaly.pevgonen@cgi.com>
Co-authored-by: Joe Previte <jjprevite@gmail.com>
2020-07-25 17:13:11 +01:00
nixsee
c69a2bb2b1 adding recipe for migrating from Onenote (#152)
* adding recipe for migrating from Onenote

* Update docs/roadmap.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

Co-authored-by: Joe Previte <jjprevite@gmail.com>
2020-07-25 17:10:58 +01:00
Jani Eväkallio
a3ab4f53a7 Update note graph and reference list when new notes are created (#156)
* Add notes to NoteGraph when they are created

* Add experimental events to foam-core to notify listeners about added/updated notes

* Update reference definitions in active editor when new note is added

* Update document in note graph before updating references
2020-07-25 16:50:44 +01:00
Mathieu Dutour
524ab15b12 add GH workflows (#145) 2020-07-25 12:19:15 +01:00
Ankit Tiwari
fd9fe12571 Move cursor to end of file when opening daily note (#137)
* Move cursor to end of file when opening daily note

* always move cursor to end of the file

* Only move cursor focus when file is newly created

Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
2020-07-25 12:11:23 +01:00
Jani Eväkallio
8d41d02ef4 Add thomaskoppelaar to contributors 2020-07-23 14:43:00 +01:00
Jani Eväkallio
8b578c1a1c Log ideas into inbox 2020-07-23 14:39:59 +01:00
ingalless
1e757aa7c4 Fix small typo (#148) 2020-07-23 13:54:27 +02:00
Riccardo
c88c24f97e DX: repo-wide build tasks (#144) 2020-07-22 00:11:04 +01:00
allcontributors[bot]
0c95ea7ca1 docs: add synesthesia as a contributor (#143)
* docs: update docs/index.md [skip ci]

* docs: update readme.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-21 07:49:30 +01:00
Julian Elve
00d1bd3a23 Add recipe for capturing notes from Drafts app on iOS (#132)
Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
2020-07-20 20:42:28 +01:00
allcontributors[bot]
a2e511ec6f docs: add lostintangent as a contributor (#142)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-20 20:13:24 +01:00
allcontributors[bot]
639a1ea21c docs: add chirag-singhal as a contributor (#141)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-20 20:11:24 +01:00
Jonathan Carter
271017c663 Adding GistPad recipe (#138)
Co-authored-by: Joe Previte <jjprevite@gmail.com>
Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
2020-07-20 20:10:42 +01:00
Ankit Tiwari
c7277383dd Initialise note.title only if heading exists (#136)
Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
2020-07-20 20:00:39 +01:00
Ankit Tiwari
339274309f Implement foam-cli janitor command (#112)
* Add Note.definitions and Note.end

* Use stringifyMarkdownLinkReferenceDefinition in foam-vscode

This commit also applies prettier to previously badly formatted files, so the diff is larger than necessary

* Add Note.end and Note.definitions to foam-core tests

* Export stringifyMarkdownLinkReferenceDefinition from foam-core

* Implement first version of generateLinkReferenceDefinitions janitor method

* Add partial tests for generateLinkReferenceDefinitions

* Setup Jest

* Add remove link definitions test to generateLinkReferences janitor method

* Add update link definitions test to generateLinkReferences janitor method

* export TextEdit interface

* Implement first version of applyText method

* Add no change  in link definitions test to generateLinkReferences janitor method

* Add  partial tests for writeFileToDisk method

* Implement generateHeading janitor method

Co-authored-by: CHIRAG SINGHAL <csinghal208@gmail.com>

* Move noteGraph scaffolding to utils

* Implement basic foam-cli janitor command

* kebab case file names while running janitor

* added generate Heading function to janitor

* added tests for generateHeading in janitor

* PR changes

* Add ora spinner

* Store endOfLine inside Note

* Use note.eol to append line endings

* check if given path is valid directory

* minor fixes

* added glob as dependency

* ignore link refrences with no file

* added tests files for migration

* Solves issue with roam migration

* fixed core tests

* Replace dashify by github-slugger

* used github slagger instead of dashify

* Add foam-core as dependency

* added foam migrate command

* updated foam janitor command

* minor fixes

* removed extra test files

* removed excess white space

* Refactor (PR changes)

1.  Renamed initializeNoteGraph.ts to initialize-note-graph.ts to be consistent with naming

2.  Refactored code in janitor and migrate commands

* Mock fs for tests

* Use Promise.resolve(null)

* Make fs tests no blocking by using promises

* Refactor renameFile to use path module

* Propagate the error from writeFileToDisk method

* Remove posttest command

* Run prettier before merge to get a cleaner diff

* Fix typo in variable name

* yarn lint --fix

* Update markdown-provider tests to support new API

* Add missing includeExtension argument

Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
Co-authored-by: chirag-singhal <csinghal208@gmail.com>
2020-07-20 19:28:41 +01:00
Riccardo
dc1c237c05 Paths in link definition section now include file extension (#133)
* Add .md extension when generating link definition section

The change in the definition allows links to be navigated in github
The changes in the JS inside _layouts maintains the html navigation when publishing to github pages.

For more info see https://foambubble.github.io/foam/link-reference-definition-improvements

* Updated existing docs to new link definition section

* better md file detection and consolidated code in parent template

* added mdx extension to markdown file detection

* added note about shortcut taken

* added configuration to toggle extensions in wikilinks + tests

* Revert "Updated existing docs to new link definition section"

This reverts commit 50e4a527e0.

We'll do this change once the version has been released

Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
2020-07-17 14:20:00 +01:00
allcontributors[bot]
2d51ce5893 docs: add digiguru as a contributor (#129)
* docs: update docs/index.md [skip ci]

* docs: update readme.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-15 23:34:59 +01:00
dependabot[bot]
adfef15404 Bump lodash from 4.17.15 to 4.17.19 in /packages/foam-core (#126)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-15 22:33:23 +01:00
dependabot[bot]
e92dd7a121 Bump lodash from 4.17.15 to 4.17.19 (#128)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-15 22:03:05 +01:00
allcontributors[bot]
950016dcc7 docs: add francishamel as a contributor (#127)
* docs: update docs/index.md [skip ci]

* docs: update readme.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-15 21:35:52 +01:00
Francis Hamel
6b99a8bd23 Add open daily note base feature (#79)
* Add dateformat package dependency

* Implement Open Daily Note feature

- Activate command
- Add default keybindings for the command
- Use settings to configure the filename format, the file extension,
the title format and the directory where the note should be created
2020-07-15 21:32:01 +01:00
allcontributors[bot]
cfc94ab693 docs: add nstafie as a contributor (#125)
* docs: update docs/index.md [skip ci]

* docs: update readme.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-15 21:29:10 +01:00
digiguru
5b471b32e6 GitLab recipe (#117)
* Typo

* Adds gitlab recipe

* Update docs/gitlab-pages.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/gitlab-pages.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/gitlab-pages.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/gitlab-pages.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

* Update docs/gitlab-pages.md

Co-authored-by: Joe Previte <jjprevite@gmail.com>

Co-authored-by: Joe Previte <jjprevite@gmail.com>
2020-07-15 21:28:29 +01:00
allcontributors[bot]
847f5ccf56 docs: add SanketDG as a contributor (#116)
* docs: update docs/index.md [skip ci]

* docs: update readme.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-15 21:26:48 +01:00
Nicholas Stafie
0342285a7b Clarify how the repository should be opened in VS Code (#123)
* Clarify how the repository should be opened in VS Code

* Change formatting and wording slightly

Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
2020-07-15 21:24:38 +01:00
Jani Eväkallio
dd6569b264 Refine terminology descriptively 2020-07-15 16:26:19 +01:00
Mathieu Dutour
37359a021d Merge pull request #121 from aravindballa/patch-1
Typo in eleventy doc
2020-07-15 17:04:48 +02:00
Aravind Balla
6b97e5a066 fix: typo in eleventy doc 2020-07-15 18:09:28 +05:30
Sanket Dasgupta
10af405da5 Add recipe for pasting images from clipboard (#114) 2020-07-14 22:19:18 +01:00
Janne Ojanaho
4ebec70d50 link ref definition proposal (#82)
Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
2020-07-14 22:17:23 +01:00
Jani Eväkallio
5bd331edab Add mathjax support to math-support page 2020-07-14 20:50:17 +01:00
allcontributors[bot]
655ea856ce docs: add juanfrank77 as a contributor (#113)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-14 18:46:53 +01:00
Juan F Gonzalez
e977963e1a Add recipe for publishing with netlify (#95)
Co-authored-by: Juan Francisco Gonzalez <jf.gonzalez@globant.com>
Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com>
2020-07-14 17:50:19 +01:00
allcontributors[bot]
4a1a825e12 docs: add TaiChi-IO as a contributor (#111)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-14 17:43:58 +01:00