Minimalist text editor written in Crystal using the Termbox library.
Port of my original implementation in C
Want this to be a hackable text editor. Personally found it hard to hack advanced features in C. This is my first app in Crystal and thoroughly enjoyed it.
I feel that the Ruby style makes this more enjoyable to hack on, and Crystal gives me a small compiled binary and speed.
crystal build editor.cr
crystal build --release editor.cr -o txc
Add these lines to your
Add project path to your bin:
To make txc your default terminal editor:
Fancy Cade hereby disclaims all copyright interest in the program tox.cr (which edits text in the terminal) written by fancycade.
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/.