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.
eton/README.md

63 lines
1.3 KiB
Markdown

9 years ago
# eton
9 years ago
eton is a note-taking cli tool.
9 years ago
## Install / Upgrade
9 years ago
9 years ago
go get -u github.com/siadat/eton
9 years ago
9 years ago
## Examples
9 years ago
# print the complete help
eton -h
9 years ago
# quick add
eton new '[ ] do something'
9 years ago
# add text from STDIN
ps aux | eton new -
9 years ago
# add a file
eton addfile file.txt
9 years ago
9 years ago
# 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
9 years ago
# list all items
eton ls -Lall
9 years ago
# filter items containing words "thing" AND "some"
eton ls thing some
9 years ago
# you can mark specific items
eton mark processes 1
9 years ago
9 years ago
# only list marked items (short mode)
eton ls -s
9 years ago
# open an item in less
eton show processes
9 years ago
# edit items
eton edit {1..3}
9 years ago
# alias matching is fuzzy
eton cat prcs
9 years ago
# pass items to xargs as filenames:
eton ls something -l |xargs -i less {}
9 years ago
Notes are stored in ~/.etondb
echo 'SELECT * from attributes LIMIT 10;' |sqlite3 ~/.etondb
9 years ago
Set `$EDITOR` environment variable to your prefered editor used by the `edit` command. E.g.,
I would love to hear how you use eton. Make pull requests, report bugs, suggest ideas.