Skip to content

Instantly share code, notes, and snippets.

@0atman
Created September 16, 2025 06:19
Show Gist options
  • Save 0atman/c5b059979bb2c5af1324166f51bad720 to your computer and use it in GitHub Desktop.
Save 0atman/c5b059979bb2c5af1324166f51bad720 to your computer and use it in GitHub Desktop.
My fleeting capture script, just makes a new file with the defined template
#!/usr/bin/env nu
print -n "Fleeting: "
let thought = (input)
let vault = "/home/oatman/Dropbox/Chamber/"
let template = $vault | path join "Resources/Meta/templates/Capture.md"
cd $vault
open $template | str replace -a "{{VALUE}}" $thought | save ($thought + ".md")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment