Find a file
2021-03-24 08:23:23 +11:00
ui Replaced termbox with tcell 2021-03-24 08:23:23 +11:00
commandmap.go Some small quality of life improvements 2020-10-21 14:39:59 +11:00
frame.go Some small quality of life improvements 2020-10-21 14:39:59 +11:00
go.mod Replaced termbox with tcell 2021-03-24 08:23:23 +11:00
go.sum Replaced termbox with tcell 2021-03-24 08:23:23 +11:00
LICENSE.md Added a readme and license. 2020-09-29 00:33:14 +00:00
main.go Fixed a few loading bugs 2018-09-01 12:02:01 +10:00
model.go Added the notion of a grid view model. 2020-06-16 14:23:17 +10:00
modelsource.go Fixed a few loading bugs 2018-09-01 12:02:01 +10:00
README.md Added a readme and license. 2020-09-29 00:33:14 +00:00
session.go Some small quality of life improvements 2020-10-21 14:39:59 +11:00
stdmodel.go Fixed a few loading bugs 2018-09-01 12:02:01 +10:00
viewmodel.go Added the notion of a grid view model. 2020-06-16 14:23:17 +10:00

ted - Terminal Table Editor

TED is an editor for editing tabular data, like CSVs. It's like a spreadsheet without the calculation logic. It's inspired by Vim and was developed to easily update CSV files without leaving the terminal.

This project is still in it's early phases, and on a bit of a slow burn in terms of development. I tend to only work on it when I use it, which is not very often. However, it's still in a form of maintenance so feel free to use it and post feedback.

Downloading

For those with Go:

go get github.com/lmika/ted

Usage

ted <csvfile>

Can either be a new CSV file, or an existing CSV file.

TED is similar to Vim in that it is modal. After opening a file, the editor starts off in view mode, which permits navigating around.

Keyboard Keys

Moving around:

Key Modifier i j k l
Movement by single cell (none) Up Left Down Right
Movement by a page Shift Up 25 rows Left 15 cells Down 25 rows Right 15 cells
Movement to boundary Ctrl Top row Leftmost cell Bottom row Rightmost cell

You can also use the arrows to move by a single cell.

Editing:

Key Action
e Edit cell value
r Replace cell value
a Insert row below cursor and edit value
D Delete current row

Others:

Key Action
{ Reduce cell width
} Increase cell width
/ Search for cell matching regular expression
n Find next cell matching search
: Enter command

Commands

Commands can be entered by pressing : and typing in the command or alias.

Command Alias Description
save w Save the current file.
quit q Quit the application without saving changes.
save-and-quit wq Save the current file and quit the application.
open-down Insert a new row below the currently selected row.
open-right Insert a new column to the right of the currently selected column.
delete-row Delete the currently selected row.
delete-column Delete the currently selected column.