Skip to content

Instantly share code, notes, and snippets.

@IanLeatherbury
Created November 24, 2021 18:16
Show Gist options
  • Save IanLeatherbury/683e960686a2ec2a4640b5f39a9fe973 to your computer and use it in GitHub Desktop.
Save IanLeatherbury/683e960686a2ec2a4640b5f39a9fe973 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Raycast Script Command Template
#
# Duplicate this file and remove ".template." from the filename to get started.
# See full documentation here: https://github.com/raycast/script-commands
#
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title New Today Doc
# @raycast.mode silent
#
# Optional parameters:
# @raycast.icon 🗒
# @raycast.packageName Raycast Scripts
# clipboard="$(pbpaste | grep -v '[x]$' | pbcopy)"
pbpaste |grep -v '[x]' |pbcopy
today="$(date +'%A, %b %d')"
SPACE_ID=""
open "craftdocs://createdocument?spaceId=$SPACE_ID&title=$today&content=$(pbpaste)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment