Skip to content

Commit

Permalink
doc: add screenshot use cases
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav1 committed Jan 24, 2024
1 parent 2da47e2 commit c025e1f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,22 @@ TERM=a AV_LOG_FORCE_COLOR=1 ffmpeg ... 2>&1 | ansisvg
jq -C | ansisvg
```

### Screenshots

#### tmux

```
# <prefix>-H: Create a SVG screenshot of the current pane
bind H capture-pane -e \; run "tmux save-buffer - | $HOME/go/bin/ansisvg > $HOME/Pictures/tmux-$(date +%F_%T).svg"; delete-buffer
```

#### kitty

```
# F3: Create a SVG screenshot of the current selection
map f3 combine : copy_ansi_to_clipboard : launch sh -c 'kitty +kitten clipboard -g | $HOME/go/bin/ansisvg > $HOME/Pictures/kitty-$(date +%F_%T).svg'
```

## Development and release build

Run all tests and write new test output:
Expand Down

0 comments on commit c025e1f

Please sign in to comment.