Skip to content

Commit

Permalink
Merge pull request #8 from Flurrywinde/patch-1
Browse files Browse the repository at this point in the history
Update Tips and Snips.wiki
  • Loading branch information
brennen authored Jan 23, 2025
2 parents 629acac + 91a5eec commit 102c55c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions wiki/Tips and Snips.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,21 @@ change the code above accordingly.
== Cite entries from bibtex library ==
Vimwiki has no support built in yet, but see [[https://github.com/vimwiki/vimwiki/issues/361|this issue]] for workarounds.

== Finding Orphans ==

Here's a handy Bash script to detect any .wiki orphans in the current directory. It will output all .wiki files that have no links to them. (Dependency: `rg`.)

{{{sh
escapethese='?()'
for f in *.wiki; do
[ "$f" = 'index.wiki' ] && continue
vwname="$(basename "$f" .wiki | sed "s/[${escapethese}]/\\\\&/g")"
if ! rg "\[\[$vwname([|#].*)?\]\]" > /dev/null; then
echo "$f"
j fi
done
}}}

== FAQ ==

=== General ===
Expand Down

0 comments on commit 102c55c

Please sign in to comment.