Skip to content

Releases

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 12:27
d455ea1

Twig v0.1.0 is here!

A live diff viewer for working trees bigger than your screen. Browse the working
tree and the commit history, read diffs with syntax highlighting, and stage,
commit and push without leaving the terminal.
image

What is in it

  • Browsing. A flat or tree file list, a commits tab, unified and split diff, syntax highlighting, word-level change markers, search and folding
  • Reading. Mouse or keyboard line selection with copy, a reading rail on the commits tab, and folds that survive scrolling
  • Staging and writing. Stage, unstage and discard hunks straight from the diff pane, undo the last operation with z (32 deep, exact reversal), name the halves of a partly staged file, then write the commit in the composer and push without leaving the pane
  • Live view. A filesystem watcher refreshes the tree, follows a file something else is writing, and keeps your cursor where you left it
  • Comfort. Remembered sidebar layout, a help pane, footer notices, themes

Install

go install samouly.fun/twig@latest

Or take an archive for linux, darwin, windows or freebsd from the assets below, or the deb, rpm and apk packages. Checksums and build provenance attestations are attached to every release.

Requirement

A git binary on PATH. twig reads the repository through git, so whatever
git can see is what twig shows.

Changelog

features

  • ac4ccb7 feat(diff): drop the engine helpers nothing calls
  • c0dff42 feat(ui): add foldable diff sections and borderless panes (#11)
  • 83c1a4b feat(ui): click a commit in the commits sidebar to open it
  • bc89ec5 feat(ui): copy diff text with the mouse and mark the commits rail (#12)
  • 40a710c feat(ui): refresh live, stay where the reader is, and save the settings
  • 47348f6 feat(ui): remember which sidebars are open
  • fe23592 feat(ui): rework the diff pane and the footer
  • 758af01 feat(ui): scramble footer notices in and out (#13)
  • 5e29deb feat(ui): show a spinner while a push is running
  • d455ea1 feat(ui): turn idle screens into an interactive pixel bonsai (#14)
  • 65d4c94 feat(watch): add a filesystem watcher with one backend per OS
  • 878611d feat: follow the line something else is writing (#9)
  • c74e3d0 feat: move the cursor whenever the view moves (#7)
  • 02f6182 feat: name the halves of a partly staged file (#8)
  • 5e916fa feat: stage, unstage and discard from the diff pane (#5)

fixes

  • c3021ec fix(git): keep watch paths in one spelling
  • 675f29c fix(ui): FYI! instead of FYI, it looks better
  • b164811 fix(ui): keep the focused commit file aligned with the border
  • a3b696e fix(ui): let the push notice fill its footer segment
  • d55c65c fix(ui): stop the splash inverting its newest row

performance

  • 59243aa perf: make big diffs cheap to build, page and navigate (#6)

other

  • d802713 Add GitHub Actions workflows
  • 29a5cc2 Add a version package
  • 8dc035f Add patch fixtures for the parser tests
  • 93a8851 Add task shortcuts for build, test and run
  • 92aa17a Add the Apache-2.0 license
  • ba49a02 Add the animated welcome pane shown on a clean tree
  • 3ab4ff2 Add the bubbletea message types
  • 9cd30ce Add the colour and style theme
  • 7153556 Add the command line entry point
  • b7c5d99 Add the commit message composer
  • 8aafea9 Add the diff engine: anchored Myers, run-length plan and word highlighting
  • bf4e200 Add the diff view: viewport pager, virtual document and split mode
  • a5d2887 Add the file list sidebar with flat and tree layouts
  • cc57dbc Add the go module and pin its dependencies
  • aa54d63 Add the help pane
  • 379c5eb Add the key map
  • 48c907d Add the lint configuration
  • 8792876 Add the search bar
  • 737d045 Add the status bar
  • cbb26aa Build release binaries with trimpath and stripped symbols
  • 2e74657 Cache generated diffs by path and options, bounded by bytes
  • 4977f71 Check span and pairing invariants over a corpus built from this repository
  • 478f609 Feat: Add syntax highlighting and indexing features (#3)
  • 660c3bc Ignore build output, editor files and local notes
  • 3199de7 Load twig.yaml with sensible defaults
  • e16ce8b Make v and w work from every pane and stop stray list quits
  • cf21d0d Merge pull request #1 from sam0uly/dependabot/go_modules/go-dependencies-6a10bec2cb
  • 01c9c13 Merge pull request #2 from sam0uly/dependabot/github_actions/actions-b406a2c92a
  • 0c1510f Move the module to samouly.fun/twig
  • dbe5712 Pin the rendered rows and highlight spans as golden files
  • b988766 Read the config as JSON instead of YAML
  • e3a8895 Read the repository through go-git, with status snapshots and byte-bounded caches
  • 2c9976e Read the repository through the git binary
  • 6acf8d2 Resolve the CLI version through the version package
  • c77d85b Rewrite the README: usage, design notes, testing and benchmark numbers
  • e1dcbbc Score line pairing against a fixture whose correct pairs are known
  • 05ed09c Test commit loading and the content and diff caches
  • 92784af Test diff caching, stale load sequencing and commit chunking
  • ddb91e0 Test hunk boundaries, sliding and the size estimate
  • dbd2e33 Test paging, search over sources and the whole-file fast path
  • f955926 Test patch parsing, diff generation and the Myers engine
  • d54645d Test the config defaults and file loading
  • 59c1cd2 Test the diff view: geometry, pairing and search painting
  • 5652b1b Test the file list
  • 9a9dcf4 Test the git layer against a scratch repository driven by real git
  • 78d923f Test the layout geometry on both tabs
  • 2bade5f Test the virtual document, paged rows and paint cost
  • 2091087 Test word highlighting, line pairing and the punctuation split
  • ab600fa Tidy the module graph and update the README
  • 4a7ae3b Update readme heading
  • 9acec9c Wire the layout, the update loop and lazy loading into the model
  • a42cbef build: cut releases from a tag and install where Go says
  • 0ebaacb deps: bump charm.land/bubbletea/v2 (#4)
  • bce88a3 deps: bump golang.org/x/sys
  • b9883bd initial commit