Press lowercase o in Hunk to preview the selected Markdown file in your default browser. For macOS and Linux desktops.
Requires Hunk 0.25.0 or newer with extension API 33, and Bun 1.4.4 or newer.
-
Install the extension:
hunk extension install mcuste/hunk-markdown-preview
-
Open a review:
hunk diff
Other file types do nothing. Previews show the current file on disk, not staged or historical content.
-
Add your preferred key to
~/.config/hunk/config.toml, or$XDG_CONFIG_HOME/hunk/config.tomlif set. For example, use Shift+O:[keybindings] "hunk-markdown-preview.open-preview" = "O"
-
Restart Hunk.
The command prefix follows the checkout folder name if you rename it.
-
Add user-visible changes to CHANGELOG.md.
-
Preview a release from clean
main:bun run release 0.1.0 --dry-run
-
Prepare and publish the release:
bun run release 0.1.0 --push
The release command runs checks, commits the version and notes, and tags the release. --push also pushes to GitHub, which verifies the tag and creates the release. Omit --push to keep the commit and tag local.
MIT.