Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

thoth

> 编程语言
Open source

Terminal scratchpad inspired by the Heynote app

99 stars0 likes1 views
WebsiteGitHub

About

Terminal scratchpad inspired by the Heynote app

Thoth

A terminal scratchpad inspired by Heynote.

Inspiration

As mentioned on Heynote's GitHub page, it is "a dedicated scratchpad for developers. It functions as a large persistent text buffer where you can write down anything you like." This app is truly great, and I've quite enjoyed using it as dedicated scratchpad. However, I work in the terminal, and I was finding several workflows in which having a terminal based scratchpad would be nice. Enter Thoth! Thoth follows the same design philosophy as Heynote in terms of its simplicity, but with some key differences.

Differences Compared to Heynote

  • The persistent buffer in Thoth gets saved as a markdown file in your home directory. I did this since I use Obsidian for all of my notes, and I wanted my scratchpad to also be displayable in the app.
  • Blocks are titled and can be selected by title.
  • The ability to edit a block using your favorite terminal editor such as Neovim, Helix, Vim, and others via setting the $EDITOR or $VISUAL environment variables.
  • A CLI that allows one to pipe information via STDIN into a new block, or use STDOUT to get text out of a block.

Why the name Thoth?

In Egyptology, Thoth is the god of writing, wisdom, and magic. Thoth was in charge of messenging and recording knowledge and events for the Egyptian deities. Seems like a fitting name for a persistent scratchpad :).

Main tools used to build Thoth

  • tui-textarea
  • ratatui
  • crossterm
  • pulldown-cmark
  • clap

Installation

Homebrew

bash
brew tap jooaf/homebrew-thoth
brew install thoth

Cargo

If you have cargo installed on your machine, you can download directly from crates.io

bash
cargo install thoth-cli --locked

Arch Linux

You can install from the AUR using an AUR helper like so:

bash
paru -S thoth

Debian/Ubuntu

You can install the .deb for your platform by doing the following (note: the URL is an example. To get the latest release please look at the Releases section)

bash
# x86-64
curl -LO https://github.com/jooaf/thoth/releases/download/v0.1.30/thoth_0.1.30_linux_amd64.deb
sudo dpkg -i thoth_0.1.30_linux_amd64.deb

# ARM64
curl -LO https://github.com/jooaf/thoth/releases/download/v0.1.30/thoth_0.1.30_linux_arm64.deb
sudo dpkg -i thoth_0.1.30_linux_arm64.deb

Fedora/CentOS

You can install the .rpm for your platform by doing the following (note: the URL is an example. To get the latest release please look at the Releases section)

bash
# x86-64
https://github.com/jooaf/thoth/releases/download/v0.1.30/thoth_0.1.30_linux_amd64.rpm
sudo rpm -i thoth_0.1.30_linux_amd64.rpm

# ARM64
curl -LO https://github.com/jooaf/thoth/releases/download/v0.1.30/thoth_0.1.30_linux_arm64.rpm
sudo dpkg -i thoth_0.1.30_linux_arm64.rpm

From binaries via Release section

Go to the releases page, and download the .tar.gz associated with your OS (Note: currently supports Linux and MacOS). Once you have downloaded the zip file, go to the location where you downloaded the file, uncompress, and give the binary executable permissions by doing the following:

bash
cd /path/to/binary
chmod +x thoth

You can then move binary if you choose so. Finally, add the path of the binary to your $PATH.

From Source

To build from source, please make sure that you have the Rust compiler installed (version 1.70.0 or higher), and the Cargo package manager. You can install both by installing rustup.

Once you have installed Rust, please do the following:

bash
git clone https://github.com/jooaf/thoth.git
cd thoth
cargo build --release

The binary lives in thoth/target/release/thoth. You can add the binary to your $PATH.

Usage

This will show how to use the scratchpad via the CLI or the TUI.

Theme

You can set the theme via the CLI or in the TUI.

bash
# Set to light mode
thoth theme light

# Set to dark mode
thoth theme dark

# Check current theme
thoth get_theme

UI Shortcuts

Users can toggle between light and dark modes while using the application:

  • Ctrl+L: Toggle between light and dark modes

Persistent Configuration

Theme preferences are stored in ~/.config/thoth/config.toml and persist between TUI sessions.

Custom Notes Location

By default, Thoth saves notes to ~/thoth_notes.md. You can customize this location using either:

Environment Variable (highest priority):

bash
export THOTH_NOTES_DIR=~/Documents/Obsidian

Config File (~/.config/thoth/config.toml) example:

toml
theme = "Dark"
notes_dir = "~/Documents/thoth"

Backup files (thoth_notes_backup.md and thoth_clipboard.txt) will be saved in the same directory as your main notes file.

TUI

To start the TUI, simply type thoth. Since it is a persistent buffer, thoth will save when you hit quit using q.

Commands for main mode

q: Quit 
: Keyboard shortcuts
: Add block in focus
: Delete block in focus
: Copy the complete block
: Copy code block
Enter: Edit block 
: Full Screen 
Esc: Exit 
: Change title of block 
: Select block by title
: Toggle between light and dark mode
: Format json
: Format markdown 

Commands for edit mode

Esc: Exit edit mode
: Move cursor top 
: Copy highlighted selection 
Shift-Up Arrow or Down: Make highlighted selection by line
: Copy code block
: Copy the entire block
: Change title of block
: Toggle between light and dark mode 
: Select block by title 
: Use external editor 
: Bring up other commands

The other commands are based off of the default keybindings for editing in tui-textarea.

MAPPINGS DESCRIPTIONS
Ctrl+H, Backspace Delete one character before cursor
Ctrl+K Delete from cursor until the end of line
Ctrl+W, Alt+Backspace Delete one word before cursor
Alt+D, Alt+Delete Delete one word next to cursor
Ctrl+U Undo
Ctrl+R Redo
Ctrl+C, Copy Copy selected text
Ctrl+X, Cut Cut selected text
Ctrl+P, ↑ Move cursor up by one line
Ctrl+→ Move cursor forward by word
Ctrl+← Move cursor backward by word
Ctrl+↑ Move cursor up by paragraph
Ctrl+↓ Move cursor down by paragraph
Ctrl+E, End, Ctrl+Alt+F, Ctrl+Alt+→ Move cursor to the end of line
Ctrl+A, Home, Ctrl+Alt+B, Ctrl+Alt+← Move cursor to the head of line
Ctrl+K Format markdown block
Ctrl+J Format JSON

If you would like to use your external editor -- such as NeoVim, Helix, etc. -- Thoth offers that functionality. Please set your $EDITOR or $VISUAL environment variables to make use of this feature.

CLI

For accessing the CLI, one can use thoth followed by a command.

…

Examples

nu
# For adding new blocks 
thoth add hello_world "Hello, World!";
# For adding new blocks with content from STDIN 
echo "Hello, World (from STDIN)" | thoth add hello_world_stdin;
# Using view to pipe contents into another command
thoth view hello_world_stdin | cat

Clipboard Fallback for Wayland Users

When using Thoth in Wayland environments or over SSH, the system clipboard functionality may not be available. In these cases, when you use Ctrl+Y to copy content, Thoth will:

  1. Save the content to a backup file in your home directory
  2. Display a message with the location of the backup file
  3. Provide instructions to access the content

You can retrieve the content using:

bash
thoth read_clipboard

This ensures your content is always accessible, even when the system clipboard is unavailable.

Contributions

Contributions are always welcomed :) !!! Please take a look at this doc for more information.

TODO

  • Inlcude light mode: Done!
  • Automatically saving backup thoth_notes.md files: Done!
  • Add fuzzy finder for selecting blocks in TUI: Done!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言