Skip to content

feat: save files as markdown#341

Merged
cguedes merged 16 commits into
mainfrom
214-export-files-as-markdown
Aug 16, 2023
Merged

feat: save files as markdown#341
cguedes merged 16 commits into
mainfrom
214-export-files-as-markdown

Conversation

@sehyod

@sehyod sehyod commented Aug 14, 2023

Copy link
Copy Markdown
Collaborator

Closes #214

This adds an item Save File as Markdown... in the File menu. This opens a dialog to select where to save the file (the default location is an exports directory under the RefStudio project directory). If there are references in the file, this also creates a .bib file with the same name and exports used references in this file.

This also disables default bullet lists and ordered lists because they would not be properly exported. However, this PR also adds a first implementation of bullet list, that should work as expected. order lists will be done in a future PR

@codecov

codecov Bot commented Aug 14, 2023

Copy link
Copy Markdown

Codecov Report

Merging #341 (d1b2c63) into main (e4bcd3e) will decrease coverage by 0.57%.
The diff coverage is 75.79%.

@@            Coverage Diff             @@
##             main     #341      +/-   ##
==========================================
- Coverage   84.94%   84.37%   -0.57%     
==========================================
  Files         153      157       +4     
  Lines        8819     9344     +525     
  Branches      973     1014      +41     
==========================================
+ Hits         7491     7884     +393     
- Misses       1317     1449     +132     
  Partials       11       11              
Files Changed Coverage Δ
src/application/components/MainPanel.tsx 0.00% <0.00%> (ø)
src/application/views/TextView.tsx 0.00% <0.00%> (ø)
src/features/textEditor/editor/TipTapView.tsx 0.00% <0.00%> (ø)
src/io/filesystem.ts 79.38% <18.66%> (-14.46%) ⬇️
...pTapNodes/notionBlock/commands/toggleBulletList.ts 20.83% <20.83%> (ø)
...Nodes/notionBlock/inputRuleHandlers/dashHandler.ts 31.81% <31.81%> (ø)
...rc/features/textEditor/components/TipTapEditor.tsx 90.38% <60.86%> (-8.42%) ⬇️
...ponents/tipTapNodes/notionBlock/NotionBlockNode.ts 75.49% <91.66%> (+1.32%) ⬆️
...StudioDocument/serialization/MarkdownSerializer.ts 94.36% <94.36%> (ø)
src/atoms/editorActions.ts 97.60% <100.00%> (-0.02%) ⬇️
... and 6 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sehyod sehyod marked this pull request as draft August 14, 2023 13:45
@sehyod sehyod marked this pull request as ready for review August 15, 2023 10:53
@sehyod sehyod requested a review from cguedes August 15, 2023 10:53
Comment thread src-tauri/src/core/menu.rs Outdated
Comment thread src/events.ts
Comment thread src/features/textEditor/components/TipTapEditor.tsx
Comment thread src/features/textEditor/components/tipTapNodes/notionBlock/NotionBlock.tsx Outdated
@cguedes cguedes self-requested a review August 16, 2023 09:56
@cguedes cguedes merged commit 5bc3dea into main Aug 16, 2023
@cguedes cguedes deleted the 214-export-files-as-markdown branch August 16, 2023 09:57
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

Successfully merging this pull request may close these issues.

Add ability to export a file

2 participants