New

To create new text files, use “txt new”. For example:

$ txt new "Hello world"

It’s important to enclose the title with quotation marks if it contains spaces. The command will return the filename of the new text. The filename starts with a part of the ID and the title of the text. Use the file name to open it with your text editor.

Text files will be stored in either: 1. The directory pointed at by TXTDIR if defined 2. $HOME/.local/share/texts, if directory exists 3. The current working directory, if all else fails

The simplest approach is to put all texts in the local-share directory and override that on occasion with $TXTDIR. For example:

$ env TXTDIR=. txt new "Hello world"

txt.conf keys

HTML

There are some special settings for HTML publication:

Gemtext

Likewise, there are settings for publishing on the Gemini protocol:



chaotic.ninja — it's all magic!