We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec5bbd9 commit 0b11d91Copy full SHA for 0b11d91
notes
@@ -40,9 +40,9 @@ grep_notes() {
40
}
41
42
new_note() {
43
- note_name=$1
44
- mkdir -p $(dirname $notes_dir/$note_name)
45
- open_note $note_name.md
+ note_name="$*"
+ mkdir -p $(dirname "$notes_dir/$note_name")
+ open_note "$note_name.md"
46
47
48
open_something() {
test/test-new.bats
@@ -27,4 +27,11 @@ notes="./notes"
27
28
assert_success
29
assert_exists "$NOTES_DIRECTORY/subfolder/note.md"
30
+}
31
+
32
+@test "Should create notes with spaces in the name" {
33
+ run $notes new "note with spaces"
34
35
+ assert_success
36
+ assert_exists "$NOTES_DIRECTORY/note with spaces.md"
37
0 commit comments