Add ob-get-links

This commit is contained in:
Lukáš Kucharczyk 2021-03-12 19:35:20 +01:00
parent d0ba4105b6
commit a3eebec467
No known key found for this signature in database
GPG Key ID: 65524498C0196B64
1 changed files with 3 additions and 0 deletions

3
ob-get-links Normal file
View File

@ -0,0 +1,3 @@
function ob-get-links -d "Get Obsidian links in file" -a filename
cat "$filename" | grep -oP '(?<=\- \[\[).*(?=\]\])'
end