mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-22 01:06:33 +00:00
Update nnotes to properly handle directory listing
This commit is contained in:
parent
93f8a6e230
commit
46dcd759c1
@ -20,7 +20,7 @@ function main() {
|
|||||||
cd $NOTES_DIR
|
cd $NOTES_DIR
|
||||||
|
|
||||||
mkdir -p $CATEGORY
|
mkdir -p $CATEGORY
|
||||||
nvim $CATEGORY/$FILE.md
|
nvim $CATEGORY/$FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
case $# in
|
case $# in
|
||||||
@ -30,11 +30,11 @@ case $# in
|
|||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
CATEGORY=.
|
CATEGORY=.
|
||||||
FILE="$1"
|
FILE="$1.md"
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
CATEGORY="$1"
|
CATEGORY="$1"
|
||||||
FILE="$2"
|
FILE="$2.md"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown number of arugments"
|
echo "Unknown number of arugments"
|
||||||
|
Loading…
Reference in New Issue
Block a user