diff --git a/README.md b/README.md index 69f0fc2..97e144a 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,16 @@ eton is a note-taking cli tool. -## Install / Upgrade + * sqlite database storage + * fast search + * quick access using unique aliases + * marking important notes + +## Install or upgrade go get -u github.com/siadat/eton -## Examples +## Usage examples ```shell # display the help message @@ -61,7 +66,7 @@ eton cat prcs eton ls '[ ]' -l |xargs -i less {} ``` -Notes are stored in ~/.etondb +Notes are stored in `~/.etondb` ```shell echo 'SELECT * FROM attributes LIMIT 10;' |sqlite3 ~/.etondb diff --git a/attr.go b/attr.go index ca9cdda..d2df071 100644 --- a/attr.go +++ b/attr.go @@ -699,6 +699,7 @@ func saveString(db *sql.DB, value_text string) (lastInsertId int64) { } func InitializeDatabase(db *sql.DB) bool { + // TODO use fts3 for faster full-text search: CREATE VIRTUAL TABLE attributes USING fts3 (...) sqlStmt := ` DROP TABLE IF EXISTS attributes; CREATE TABLE attributes (