@@ -29,7 +29,7 @@ By default your notes live in ~/notes, but you can change that to anywhere you l
29
29
notes new <note-name>
30
30
```
31
31
32
- Opens your $EDITOR of choice for a new note, with the given name. The name can include slashes, if you want put your note in a subfolder.
32
+ Opens your ` $EDITOR ` of choice for a new note, with the given name. The name can include slashes, if you want put your note in a subfolder.
33
33
34
34
```
35
35
notes find <part-of-a-note's-name>
@@ -41,25 +41,37 @@ Searches note filenames and paths for the given string, and returns all the matc
41
41
notes grep <part-of-a-note's-content>
42
42
```
43
43
44
- Search all note content for the given string and returns all the matches.
44
+ Searches all note content for the given string and returns all the matches.
45
45
46
46
```
47
47
notes open
48
48
```
49
49
50
50
Opens your notes folder in your default configured file explorer.
51
51
52
+ ```
53
+ notes open <note-name>
54
+ ```
55
+
56
+ Opens a given note in your ` $EDITOR ` . Name can be an absolute path, or a relative path in your notes (.md suffix optional).
57
+
58
+ ```
59
+ notes grep/find <pattern> | notes open
60
+ ```
61
+
62
+ Combine these together! This opens each matching note in your ` $EDITOR ` in turn.
63
+
52
64
## Tell me of the future
53
65
54
66
All the above works. Here's what's coming next:
55
67
56
- - [ ] Note edit command
57
- - [ ] Combining find and grep, to match either one
58
- - [ ] Pipe filenames (from ` notes find ` or ` notes grep ` or anything else) to ` notes open ` to open all matching notes
68
+ - [ ] Combining find and grep, to match anything one
69
+ - [ ] More interesting and nicer looking file/ grep search result formatting (...only when not piping?)
70
+ - [ ] Make the file extension optional
59
71
- [ ] Bash/zsh command autocompletion
60
72
- [ ] Bash/zsh note name autocompletion
61
- - [ ] Shorthand aliases ` notes o ` , ` notes g ` , ` notes n `
62
- - [ ] Interactive mode: ` notes ` should open a scrollable list of notes, open your editor when you pick one, and reappear after you close it.
73
+ - [ ] Shorthand aliases ` notes o ` , ` notes g ` , ` notes n `
74
+ - [ ] Interactive mode? ` notes ` could open a scrollable list of notes, open your editor when you pick one, and reappear after you close it.
63
75
64
76
## I want to help
65
77
0 commit comments