~fancycade/tox.c

brutalist terminal text editor
275ef69e — fancycade 2 years ago
Resize feature
d3ac2754 — fancycade 2 years ago
Change exit key to Ctrl+Q
3da36259 — fancycade 2 years ago
Changed tab render foreground to default so cursor shows up

refs

master
browse  log 
brutalist
release notes 

clone

read-only
https://git.sr.ht/~fancycade/tox.c
read/write
git@git.sr.ht:~fancycade/tox.c

You can also use your local clone with git send-email.

#tox.c

Pronounced "toxic"

brutalist text editor written in C. Uses tcc for compilation, c99 standard, and meant to work with musl.

The intent is to build a pragmatic text editor following the Unix philosophy.

#Install

First clone the repo:

git clone https://git.sr.ht/~fancycade/tox.c

Install development dependencies.

Debian:

sudo apt install libtermbox-dev tcc indent

#Usage

Build:

./build.sh

Add to your path:

export PATH=$PATH:$HOME/path/to/tox.c/

Open a file:

txc *filename*

Use the indent program for automatic formatting. This codebase follows the Kernighan and Ritchie style.

indent -kr tox.c

The build command includes this step making it a development dependency.

#Commands

The brutalist release only has two relevant key commands:

  • Ctrl + S - Save
  • ESC - Close

The current master branch has additional features such as:

  • Configure foreground with terminal settings
  • Ctrl + A - Jump cursor to next tab or whitespace left of current position or beginning of line
  • Ctrl + E - Jump cursor to next tab or whitespace right of current position or end of line
  • Ctrl + V - Scroll screen down by terminal height or end of file
  • Ctrl + Z - Scroll screen up by terminal height or beginning of file

#Releases

brutalist - extremely basic text editor

#License

Fancy Cade hereby disclaims all copyright interest in the program (which edits text in the terminal) written by fancycade.

fancycade 2019

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.