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

78 lines
1.4 KiB
Markdown

9 years ago
# eton
9 years ago
eton is a note-taking cli tool.
9 years ago
* sqlite database storage
* fast search
* quick and direct access to a note using a unique alias
* mark important notes
9 years ago
## Install or upgrade
9 years ago
9 years ago
go get -u github.com/siadat/eton
9 years ago
9 years ago
## Usage examples
9 years ago
```shell
# display the help message
eton -h
9 years ago
# quick add
eton new '[ ] try eton'
9 years ago
# 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 -
9 years ago
# add a file
eton addfile file.txt
9 years ago
# a unique alias can be set and used instead of the numeric id
eton alias 2 all-processes
9 years ago
# the order of id and alias does not matter
eton alias all-processes 2
9 years ago
# you can rename an alias
eton alias all-processes processes
9 years ago
# list all items
eton ls -a
9 years ago
# filter items containing words "word1" AND "word2"
eton ls word1 word2
9 years ago
# you can mark specific items
eton mark processes 1
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} 4 prcs
9 years ago
# alias matching is fuzzy for cat, show, edit, mark, unmark commands
eton cat prcs
9 years ago
# pass items to xargs as filenames:
eton ls '[ ]' -l |xargs -i less {}
```
9 years ago
9 years ago
Notes are stored in `~/.etondb`
9 years ago
```shell
echo 'SELECT * FROM attributes LIMIT 10;' |sqlite3 ~/.etondb
```
9 years ago
Set `$EDITOR` environment variable to edit notes in your prefered editor, e.g., `export EDITOR=vim`.
9 years ago
I would love to hear how you use eton. Make pull requests, report bugs, suggest ideas.