File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ grep_notes() {
46
46
47
47
new_note () {
48
48
note_name=" $* "
49
- mkdir -p $( dirname " $notes_dir /$note_name " )
49
+ mkdir -p " $( dirname " $notes_dir /$note_name " ) "
50
50
open_note " $note_name .md"
51
51
}
52
52
@@ -154,7 +154,7 @@ main() {
154
154
esac
155
155
shift
156
156
157
- $cmd $@
157
+ $cmd " $@ "
158
158
ret=$[$ret +$? ]
159
159
exit $ret
160
160
}
Original file line number Diff line number Diff line change @@ -41,4 +41,11 @@ notes="./notes"
41
41
42
42
assert_success
43
43
assert_exists " $NOTES_DIRECTORY /note with spaces.md"
44
- }
44
+ }
45
+
46
+ @test " Should create notes within subfolders with spaces" {
47
+ run $notes new " subfolder with spaces/note"
48
+
49
+ assert_success
50
+ assert_exists " $NOTES_DIRECTORY /subfolder with spaces/note.md"
51
+ }
You can’t perform that action at this time.
0 commit comments