hn.today

Nook: A terminal Markdown editor where the cursor never moves

github.com6 points0 comments
Screenshot of Nook: A terminal Markdown editor where the cursor never moves

Nook is a terminal-based Markdown note editor written in Go using Bubble Tea. Its defining feature is the “Focus Line”: the line being edited stays fixed in the middle of the screen and appears as raw Markdown, while surrounding lines scroll and display rendered formatting. Headings, emphasis, links, quotes, lists, checkboxes, and code blocks receive styled presentation; Markdown markers are hidden outside the focused line. The design keeps the cursor in one place while the document moves, aiming to make editing easier to follow without hiding the source text where changes are made.

Notes are ordinary .md files stored in ~/.nook, with folders represented as real directories; the location can be changed with NOOK_DIR. The note browser supports nested folders, title filtering, creation, renaming, and soft deletion to a restorable trash folder. The editor includes keyboard and mouse navigation, text selection, word and page movement, save and unsaved-change prompts, and a formatting palette for actions such as bold, links, quotes, lists, checkboxes, and headings. A help panel provides key maps, and an optional diagnostic mode records terminal key messages. The project requires Go 1.26 or later and can be built with Go or its Makefile. Existing notes from an earlier SQLite-based version are imported into files on first launch.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.