eton is a note-taking cli tool
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sina Siadat d7a62b76e8 Merge pull request #2 from mattn/close-file
one more close
9 years ago
README.md cmdLs output format changed from ID:XX to [XX] 9 years ago
attr.go Close file 9 years ago
commands.go if $EDITOR quit with non-zero status, cmdNew should stop creation. 9 years ago
main.go exact alias matching for alias, unalias, rm, unrm 9 years ago
options.go exact alias matching for alias, unalias, rm, unrm 9 years ago

README.md

eton

eton is a note-taking cli tool.

Install / Upgrade

go get -u github.com/siadat/eton

Examples

# display the help message
eton -h

# quick add
eton new '[ ] do something'

# create a new note and open $EDITOR to edit it
eton new

# edit the last item
eton edit

# add text from STDIN
ps aux | eton new -

# add a file
eton addfile file.txt

# a unique alias can be set and used instead of the numeric id
eton alias 2 all-processes

# the order of id and alias does not matter
eton alias all-processes 2

# you can rename an alias
eton alias all-processes processes

# list all items
eton ls -Lall

# filter items containing words "thing" AND "some"
eton ls thing some

# you can mark specific items
eton mark processes 1

# only list marked items (short mode)
eton ls -s

# open an item in less
eton show processes

# edit items
eton edit {1..3} 4 prcs

# alias matching is fuzzy for cat, show, edit, mark, unmark commands
eton cat prcs

# pass items to xargs as filenames:
eton ls something -l |xargs -i less {}

Notes are stored in ~/.etondb

echo 'SELECT * FROM attributes LIMIT 10;' |sqlite3 ~/.etondb

Set $EDITOR environment variable to edit notes in your prefered editor, e.g., export EDITOR=vim.

I would love to hear how you use eton. Make pull requests, report bugs, suggest ideas.