Skip to content

Instantly share code, notes, and snippets.

View EvanEdwards's full-sized avatar

Evan Edwards EvanEdwards

View GitHub Profile
@EvanEdwards
EvanEdwards / Example.md
Last active June 10, 2024 05:31
Obsidian folder navbar.
await dv.view();

The content goes here, and a navigation appears above, with all files in the current directory or tagged with a tag that matches the name of the directory. It works great with Obsidian Folder Notes.

You can also manually specify it with dv.view("ShrimpFashion") and all files in /StrimpFashion or tagged #ShrimpFashion will be displayed.

This is a quick and dirty dump of this for a friend. It is possible the css is missing something, as it's out of my snippets directory and may have dependencies I did not include here. If he uses it and it fails, I'll have a bug report and will update it.

@EvanEdwards
EvanEdwards / pandoc2handlebars.sh
Last active January 27, 2024 01:43
Convert pandoc template to handlebars (partial)
#!/bin/bash
if [ $# -lt 1 ] || [ "$1" == "--help" ] || [ "$1" == "-h" ]
then
echo "pandoc2handlebars.sh FILE [FILE...]
Converts (partially) the given Pandoc templates to Handlebars files.
Hand edit the \$for(var)\$ and other unconverted bits.
"