#!/bin/env fish
function ob-get-links -d "Get Obsidian links in file" -a filename
cat "$filename" | grep -oP '(?<=\- \[\[).*(?=\]\])'
end