You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default your notes live in ~/notes, but you can change that to anywhere you like by setting the `$NOTES_DIRECTORY` environmental variable.
30
+
By default your notes live in ~/notes, but you can change that to anywhere you like by setting the `$NOTES_DIRECTORY` environmental variable. See [how do I configure this?](#how-do-i-configure-this) for more details.
31
31
32
32
#### Installing Bash completion
33
33
@@ -47,12 +47,9 @@ You'll need to open a new shell for this to take effect.
47
47
48
48
## How do I configure this?
49
49
50
-
You can set your favourite text editor and your notes directory by setting the `$EDITOR` and `$NOTES_DIRECTORY` environmental variables.
50
+
To get started with you'll want to set `$EDITOR` to your favourite text editor, and probably `$NOTES_DIRECTORY` to the directory in which you'd like to use to store your notes (this defaults to `~/notes`). You'll typically want to set these as environment variables in your `.bashrc`, `.zshrc`, or similar.
51
51
52
-
53
-
Most users shouldn't need to do any more than that. If you're doing anything more complicated though, you can configure `notes` config directly in "~/.config/notes/config", including EDITOR and NOTES_DIRECTORY. We've included an example in this repo for you ([config.example](config.example)) that you can copy. Any values set in the config file override values in environment variables.
54
-
55
-
Right now this mainly exists in case you want to use a different `EDITOR` for notes than the one you have set in your environment generally, but this is where all other config will be living in future.
52
+
There are also more complex options available. You can set any configuration properties either in the environment, or in a config file (stored in `~/.config/notes/config`), with settings in config overriding those in your environment. This allows you to configure a different `$EDITOR` for notes to everything else, if you like. The config file is a good choice for more complex set ups, but probably not worth worrying about to start with. We've included an example config in this repo for you ([config.example](config.example)) that you can copy if you like.
56
53
57
54
### What are the configuration options?
58
55
@@ -66,10 +63,7 @@ Right now this mainly exists in case you want to use a different `EDITOR` for no
66
63
67
64
### `notes new <note-name>`
68
65
69
-
Opens your `$EDITOR` of choice for a new note, with the given name. The name can include slashes, if you want to put your note in a subfolder. Shorthand alias also available with `notes n`.
70
-
71
-
### `notes new`
72
-
Creates a quicknote with the name of the format `quicknote-YYYY-MM-DD.md`. This can be changed in the configuration file.
66
+
Opens your `$EDITOR` of choice for a new note, with the given name. The name can include slashes, if you want to put your note in a subfolder. Leave out the name if you want one to be generated for you (e.g. `quicknote-2016-12-21.md` - format configurable with `$QUICKNOTE_FORMAT`). Shorthand alias also available with `notes n`.
73
67
74
68
### `notes find <part-of-a-note-name>`
75
69
@@ -79,6 +73,10 @@ Searches note filenames and paths for the given string, and returns every single
79
73
80
74
Searches all note content for the given string and returns all the matches. Shorthand alias also available with `notes g`.
Searches all note content and note filenames for the given string and returns all the matches. Shorthand alias also available with `notes s`.
79
+
82
80
### `notes ls <directory>`
83
81
84
82
Lists note names and note directories at a single level. Lists all top level notes and directories if no path is provided, or the top-level contents of a directory if one is provided.
@@ -103,7 +101,6 @@ Combine these together! This opens each matching note in your `$EDITOR` in turn.
103
101
104
102
All the above works. Here's what's coming next:
105
103
106
-
-[ ] Combining find and grep, to match either one (https://github.com/pimterry/notes/issues/16)
107
104
-[ ] More interesting and nicer looking file/grep search result formatting, perhaps only when not piping? (https://github.com/pimterry/notes/issues/27)
108
105
-[ ] Make the file extension optional (https://github.com/pimterry/notes/issues/24)
109
106
-[ ] zsh command and note name autocompletion (https://github.com/pimterry/notes/issues/25)
0 commit comments