Skip to content

Commit

Permalink
export: write md to clipboard for easy sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
joshi4 committed Oct 29, 2024
1 parent c2d834f commit 55a3a21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion export/markdown/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ func (s *svc) ToMarkdownFile(ctx context.Context, commands []string) error {

defer func() {
if cerr := clipboard.WriteAll(mdContent); cerr != nil {
display.Info("Wrote md contents to clipboard")
err := fmt.Errorf("failed to write md contents to clipboard: %w", cerr)
display.Error(err)
}
display.Info("Wrote md contents to clipboard")
}()

humanReadableTime := time.Now().Format("2006_01_02_15:04:05")
Expand Down

0 comments on commit 55a3a21

Please sign in to comment.