home/qutebrowser - add ~/.local files
This commit is contained in:
parent
79db29f70b
commit
5ab02018c5
393 changed files with 100750 additions and 1 deletions
15
home/files/local-qutebrowser/userscripts/obsidian-import-lite
Executable file
15
home/files/local-qutebrowser/userscripts/obsidian-import-lite
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
VAULT="/home/don/.obsidian/main"
|
||||
TITLE=$(echo "${QUTE_TITLE}" | sed -e 's/\//-/g' -e 's/|/-/g' -e 's/\\/-/g' -e 's/[():]//g' -e 's/&/and/g' )
|
||||
rm -f /tmp/"${TITLE}".{md,html}
|
||||
echo "---
|
||||
url: ${QUTE_URL}
|
||||
tags: web-import
|
||||
---" > "${VAULT}/Inbox/${TITLE}".md && \
|
||||
echo "
|
||||
# ${TITLE}
|
||||
|
||||
---
|
||||
From: [${QUTE_TITLE}](${QUTE_URL})" >> "${VAULT}/Inbox/${TITLE}".md
|
||||
rm -f /tmp/"${TITLE}".html
|
||||
Loading…
Add table
Add a link
Reference in a new issue