Find a file
2024-09-24 13:07:30 +10:00
ui Fixed some bugs with the backspace key mappings 2021-03-24 08:28:40 +11:00
commandmap.go Added Ctrl+C and search previous command 2024-09-24 13:07:30 +10:00
frame.go Some small quality of life improvements 2020-10-21 14:39:59 +11:00
go.mod A few minor feature 2024-09-24 12:45:22 +10:00
go.sum A few minor feature 2024-09-24 12:45:22 +10:00
LICENSE.md Added a readme and license. 2020-09-29 00:33:14 +00:00
main.go A few minor feature 2024-09-24 12:45:22 +10:00
model.go Added the notion of a grid view model. 2020-06-16 14:23:17 +10:00
modelsource.go Added 'each-row' and 'to-upper' commands 2022-10-05 11:49:37 +11:00
README.md Added 'each-row' and 'to-upper' commands 2022-10-05 11:49:37 +11:00
session.go A few minor feature 2024-09-24 12:45:22 +10:00
stdmodel.go Allowed open-right to work on all columns 2022-07-01 16:15:54 +10:00
viewmodel.go A few minor feature 2024-09-24 12:45:22 +10:00
viewmodel_test.go Allowed open-right to work on all columns 2022-07-01 16:15:54 +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 [FLAGS] FILE

Flags:

  • -c <codec> the format that the file is in. Either csv or tsv files are supported. Default is csv

File can either be a new file, or an existing 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
y Copy cell value
p Paste cell value
: 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.