From 4c94475d7ffb99d0aa804ae4b506ee76c77d957e Mon Sep 17 00:00:00 2001 From: Mark Mulder Date: Fri, 19 Dec 2014 15:34:20 +0100 Subject: [PATCH] Version 0.5.0 --- Changelog.md | 4 ++++ README.md | 21 ++++++++++----------- notes.go | 2 +- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Changelog.md b/Changelog.md index 88da12b..b14b882 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,9 @@ # Notes Changelog +## 0.5.0 + +- Allow overriding of storage directory via `NOTESDIR`, thanks to @mongrelion. + ## 0.4.0 - Opens editor with note name anyway if it doesn't exist yet. diff --git a/README.md b/README.md index 54bbcb6..d58f98c 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,13 @@ Store your thoughts on all sorts of subjects and easily read them on the commandline. I use it for CLI commands I don't use very often and keep forgetting. -Currently it expects a `~/dotfiles/notes/` directory to store all the notes -but you can override this by setting the `$NOTESDIR` variable. -These are just simple textfiles for easy editting and portability. +It expects a `~/dotfiles/notes/` directory to store all the notes but you can +override this by setting the `$NOTESDIR` variable from within your `.profile` +for example. +The notes are stored as simple textfiles for easy editting and portability. -You can use # comments to explain the command, these will get colorized when -outputted, an example: +You can prepend a line with `#` to explain the command, these comments will get +colorized, an example: ``` # Show open files by PID @@ -20,10 +21,9 @@ lsof -p $PID ## Installation -As it's in super early stage, you'll have to build it yourself. I'm hoping you -have Go already setup. If so, just clone, `go get`, and run `make` to build it -and move it to `/usr/local/bin/`, or `go build notes.go` and move it yourself to -a desired location. +You can download the [latest +release](https://github.com/bittersweet/notes/releases) or build it yourself of +course. ## Usage @@ -32,8 +32,7 @@ a desired location. `notes edit [note]` edits `notes new [name]` creates a new note -Editting and creating new notes uses $EDITOR or vi if that is not set. - +Editting and creating new notes uses `$EDITOR` or `vi` in case that is not set. ## Testing diff --git a/notes.go b/notes.go index f7d8d39..be2fa70 100644 --- a/notes.go +++ b/notes.go @@ -85,7 +85,7 @@ func getNotesDir() string { func main() { app := cli.NewApp() app.Name = "notes" - app.Version = "0.4.0" + app.Version = "0.5.0" app.Usage = "Store your thoughts on all sorts of subjects" app.Action = func(c *cli.Context) { note := c.Args().First()