wiki:CreatingTextsAndPublishing

Version 4 (modified by Izuru Yakumo, 6 weeks ago) ( diff )

--

Creating texts and publishing

New

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

$ txt new "お会いできてうれしいです"

It's important to enclose the title with quotation marks if it contains spaces (or just for clarity).
The command will return the filename of the new text, which contains its ID.
Use your favorite text editor to open it.

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 $HOME/.local/share/texts directory and override that on occasion with $TXTDIR .
For example:

$ env TXTDIR=${PWD} txt new "お会いできてうれしいです"
Note: See TracWiki for help on using the wiki.