Created
November 8, 2024 14:13
-
-
Save baakeydow/bd8929e88a99f30f371a5c3ceacddf5f to your computer and use it in GitHub Desktop.
neovide markdown workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ -z "$1" ] && echo "please provide title for new file" && exit 1 | |
file_name=$(echo "$1" | tr ' ' '-') | |
formatted_file_name=${file_name}.md | |
cd ~/Obsidian_Vault/📮INBOX📮 || exit | |
touch "${formatted_file_name}" && nohup neovide "${formatted_file_name}" >/dev/null 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment