Skip to content

Commit

Permalink
new show tape and shared config
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasvanEyk committed Jul 7, 2023
1 parent 12e1b0f commit 8c4973a
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ While quite basic, this command can be used in conjunction with other tools to q

Renders the nearest changelog right inside your terminal using [charmbracelet/glamour](https://github.com/charmbracelet/glamour).

<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://niclasvaneyk.github.io/keepac/show.dark.gif">
<img src="https://niclasvaneyk.github.io/keepac/show.light.gif" loading="lazy">
</picture>

> Since keepac uses `glamour` to render markdown, you can theme its output by setting the `GLAMOUR_STYLE` environment variable to one of the [available styles](https://github.com/charmbracelet/glamour/tree/master/styles/gallery) or [create your own](https://github.com/charmbracelet/glamour/tree/master/styles).
#### `changelog search`
Expand Down
1 change: 1 addition & 0 deletions tapes/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.gif
*.md
!examples/*.md
2 changes: 1 addition & 1 deletion tapes/dark/demo.tape
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require changelog
Source ../partials/config.tape

Type "changelog find"
Enter
Expand Down
2 changes: 1 addition & 1 deletion tapes/dark/insert.tape
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require changelog
Source ../config.tape

Hide
# Create new file
Expand Down
4 changes: 2 additions & 2 deletions tapes/dark/search.tape
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Require changelog
Source ../partials/config.tape
Require wget

Set Width 2400
Set Width 1500
Set Height 800

Hide
Expand Down
12 changes: 12 additions & 0 deletions tapes/dark/show.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Source ../partials/config.tape

Hide
Type "cp ../examples/markdown.md ./CHANGELOG.md"
Enter
Sleep 250ms
Show



Hide
Type "rm CHANGELOG.md"
36 changes: 36 additions & 0 deletions tapes/examples/markdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Changelog

All notable changes to this project will be documented in this file.

The changes describe a contrived project to demonstrate the markdown output of `keepac` / `changelog`.

## [Unreleased]

### Changed

- A **whole new** way of doing the thing

## [1.1.0] - 2022-04-04

> This release is sponsored by [our GitHub sponsors](https://github.com/sponsors/NiclasvanEyk) ❤️
### Added

- A new cool syntax highlighter:
```rs
// Inline code snippets!
let foo = "bar"
```

## [1.0.1] - 2022-02-03

### Fixed

- A _nasty_ bug when calling `foo` without previously calling `bar`
- A complicated deadlock which is better explained in [#123](https://github.com/NiclasvanEyk/keepac/pull/123)

## [1.0.0] - 2022-02-02

### Added

- The initial version of the thing
4 changes: 4 additions & 0 deletions tapes/partials/config.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This tape just houses shared configuration and is included/sourced into all
# other tapes

Require changelog

0 comments on commit 8c4973a

Please sign in to comment.