Skip to content

Commit

Permalink
docs(charmbracelet#58): update README.md, golden and full.json wi…
Browse files Browse the repository at this point in the history
…th `--copy`
  • Loading branch information
AlejandroSuero committed May 19, 2024
1 parent d4d556c commit 4c4f2bd
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Screenshots can be customized with `--flags` or [Configuration](#configuration)
- [`--font.file`](#font): File path to the font to use (embedded in the SVG).
- [`--line-height`](#font): Line height relative to font size.
- [`--show-line-numbers`](#line-numbers): Show line numbers.
- [`--copy`](#copy): Copy the output image to the clipboard.
- [`--lines`](#line-numbers): Lines to capture (start,end).

### Language
Expand Down Expand Up @@ -159,6 +160,14 @@ freeze main.go --output out.webp
freeze main.go --output out.{svg,png,webp}
```

### Copy

Copy the output image to your clipboard, so you can paste it anywhere.

```bash
freeze main.go --copy
```

### Font

Specify the font family, font size, and font line height of the output image.
Expand Down
5 changes: 3 additions & 2 deletions configurations/full.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"size": 14,
"ligatures": true
},
"line_height": 1.2
}
"line_height": 1.2,
"copy": false
}
49 changes: 49 additions & 0 deletions test/golden/svg/bubbletea-copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4c4f2bd

Please sign in to comment.