Browse Source

bin/notes-logs-for: handle full paths to wiki pages

Brennen Bearnes 3 months ago
parent
commit
ce22de57e3
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      home/bin/notes-logs-for

+ 2
- 1
home/bin/notes-logs-for View File

@@ -8,7 +8,8 @@ catenate () {
8 8
   printf '\n%%%% }}}\n\n'
9 9
 }
10 10
 
11
-pagename=$(basename "$1" .wiki)
11
+pagename=$(printf "%s/%s" "$(dirname "$1")" "$(basename "$1" .wiki)")
12
+pagename=$(printf "%s" "$pagename" | sed "s#^$HOME/notes/vimwiki/##")
12 13
 printf '%%%% logs for: %s\n\n' "$pagename"
13 14
 
14 15
 notes-links-for --target "$pagename" \

Loading…
Cancel
Save