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.
Chakib Benziane 2a979cb9a4 -i to list only ids (used in scripts) 6 years ago
README.md README added missing single-quote 9 years ago
attr.go remove unnecessary comments and do a bit of house cleaning 8 years ago
commands.go -i to list only ids (used in scripts) 6 years ago
main.go -i to list only ids (used in scripts) 6 years ago
nulltime.go no more unnecessary exports 9 years ago
options.go -i to list only ids (used in scripts) 6 years ago

README.md

eton

eton is a note-taking cli tool.

  • sqlite database storage
  • fast search
  • quick and direct access to a note using a unique alias
  • mark important notes

Install or upgrade

go get -u github.com/siadat/eton

Usage examples

# display the help message
eton -h

new

# quick add
eton new 'eton is simple'
eton new 'https://...'
eton new '[ ] try eton'

# create a new note using $EDITOR
eton new

# add from STDIN
ps aux |eton new -

# add files
eton addfile file1.txt file2.txt
find -type f |eton addfile -

edit

# edit last item
eton edit

# edit items
eton edit processes 1

alias

# set a unique alias
eton alias 3 procs

# use the alias, so you don't need to remember its id
eton cat procs
eton edit procs
eton show procs

# rename an alias
eton alias procs processes

# remove an alias
eton unalias processes

mark

# mark an item
eton mark processes

# unmark an item
eton unmark processes

ls

# list recent items
eton ls

# filter items containing words "eton" AND "simple"
eton ls eton simple

# list all items
eton ls -a

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

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

more

# alias matching is fuzzy for these commands: cat, show, edit, mark, unmark
eton cat prs

# view items 1, 2, and 3 using less
eton show 1 2 3

# 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.