Skip to content

feat(cmd): add markdown file support to deck new command#223

Merged
k1LoW merged 1 commit intok1LoW:mainfrom
Songmu:new-md
Jul 9, 2025
Merged

feat(cmd): add markdown file support to deck new command#223
k1LoW merged 1 commit intok1LoW:mainfrom
Songmu:new-md

Conversation

@Songmu
Copy link
Collaborator

@Songmu Songmu commented Jul 9, 2025

Add optional markdown filename argument to deck new command that automatically creates or updates the file with frontmatter containing title and presentationId.

Changes:

  • Accept optional markdown filename as first argument in cmd/new.go
  • Create file and parent directories if they don't exist
  • Parse and preserve existing frontmatter fields when updating
  • Add or update title and presentationId fields

Usage:
deck new presentation.md --title "My Presentation"

This simplifies the workflow by combining presentation creation and markdown file setup in a single command.

Add optional markdown filename argument to `deck new` command that automatically
creates or updates the file with frontmatter containing title and presentationId.

Changes:
- Accept optional markdown filename as first argument in cmd/new.go
- Create file and parent directories if they don't exist
- Parse and preserve existing frontmatter fields when updating
- Add or update title and presentationId fields

Usage:
  deck new presentation.md --title "My Presentation"

This simplifies the workflow by combining presentation creation and
markdown file setup in a single command.
@k1LoW k1LoW added the enhancement New feature or request label Jul 9, 2025
@k1LoW
Copy link
Owner

k1LoW commented Jul 9, 2025

@Songmu Thank you!

@k1LoW k1LoW merged commit 88aea5a into k1LoW:main Jul 9, 2025
1 check passed
@github-actions github-actions bot mentioned this pull request Jul 9, 2025
@k1LoW k1LoW added the minor label Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants