New sheet from outside
under review
Scott Rhamy
Looks like publishing raycast extension is more involved than I had hoped. If anyone is interested here is the code for 3 Raycast script commands (soulversolve, solvercopy, soulvercreate)
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Soulver Solve
# @raycast.mode compact
# Optional parameters:
# @raycast.icon /Applications/Soulver 3.app/Contents/Resources/Soulver.icns
# @raycast.packageName Soulver
# @raycast.argument1 { "type": "text", "placeholder": "solve...", "percentEncoded": false }
# Documentation:
# @raycast.description Display Soulver's Answer
# @raycast.author c4p
# @raycast.authorURL https://raycast.com/c4p
#!/bin/bash
result=$(/Applications/Soulver\ 3.app/Contents/MacOS/CLI/soulver "$1")
echo -n "$result"
---
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Soulver Copy
# @raycast.mode compact
# Optional parameters:
# @raycast.icon /Applications/Soulver 3.app/Contents/Resources/Soulver.icns
# @raycast.argument1 { "type": "text", "placeholder": "copy solve...", "percentEncoded": false }
# Documentation:
# @raycast.description Copy Soulver's Answer to Clipboard
# @raycast.author c4p
# @raycast.authorURL https://raycast.com/c4p
#!/bin/bash
result=$(/Applications/Soulver\ 3.app/Contents/MacOS/CLI/soulver "$1")
echo -n "$result" | pbcopy
echo -n "$result Placed on Clipboard."
---
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Soulver Create
# @raycast.mode compact
# Optional parameters:
# @raycast.icon /Applications/Soulver 3.app/Contents/Resources/Soulver.icns
# @raycast.packageName Soulver
# @raycast.argument1 { "type": "text", "placeholder": "create solve...", "percentEncoded": false }
# Documentation:
# @raycast.description Create Sheet with Soulver's Answer
# @raycast.author c4p
# @raycast.authorURL https://raycast.com/c4p
#!/bin/bash
result=$(open "x-soulver://x-callback-url/create?&expression="$1)
echo -n "$1=$result placed in Created Sheet"
Scott Rhamy
Sorry, I missed that in the docs. That works for me as I am triggering it in Raycast via terminal with open "x-soulver://x-callback-url/create?&expression=1+1". I will finish out the plugin, and post it as a public extension (https://www.raycast.com/store)
Thank you.
Zac @ Soulver
under review
Can you use URL schemes from Raycast? Here's one that would create a new sheet with text:
x-soulver://x-callback-url/create?&expression=2+4