[FEATURE] add create flashcard and support Remnote markdown import to create note/flashcard#1
Open
Twb06 wants to merge 6 commits intorobert7:mainfrom
Open
[FEATURE] add create flashcard and support Remnote markdown import to create note/flashcard#1Twb06 wants to merge 6 commits intorobert7:mainfrom
Twb06 wants to merge 6 commits intorobert7:mainfrom
Conversation
…nhance `create` command with flashcard support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary 🎯
This PR enhances
remnote-cliby introducing Hierarchical Markdown Import and Enhanced Flashcard support.These updates allow users to generate complex knowledge structures from single indented markdown strings and precisely define flashcard types (Concept/Descriptor) and their back-side content directly from the command line.
Changes 🔁
🆕 Features & Enhancements
create-mdcommand: Added a dedicated command to create a tree structure in RemNote from an indented markdown string.--contentand--content-file(including stdin).--titleto nest the tree under a new parent Rem.>>,::,;;,{{cloze}}, etc.).createcommand:--back-textoption: Allows defining the back of a flashcard during creation.--conceptand--descriptorflags: Enables explicit control over the created Rem type.🛠️ Testing Improvements
cli.test.tsto verify the registration of the newcreate-mdcommand.command-action-mapping.test.tsto ensure CLI options are correctly translated to bridge actions (create_noteandcreate_note_md).03-create-search.tsworkflow to include verification for flashcards created with back-text.📖 Documentation
docs/guides/command-reference.mdwith detailed usage, option tables, and examples for bothcreateandcreate-md.AGENTS.mdto reflect the expanded CLI surface for AI agents.CHANGELOG.mdto track these new capabilities.Demo
For card/flashcard created from markdown text
Input:
remnote-cli create-md --title "Test markdown with flashcard by cli" --parent-id <id> --content-file ./test.local.md --texttest.local.md:
Remnote result:
For card creation
Input:
remnote-cli create "Test flashcard by cli" --parent-id <id> --back-text "success with concept card" --concept --textRemnote result:
Created note: Test flashcard by cli (ID: <id>)Reference