Bible at your fingertips with Raycast

on Ben’s Blog

Raycast is an extremely slick launcher for macOS. It's become a must-install and handedly replaced Alfred for me. In the past week, they released the last thing I was missing from Alfred—that is, customizable date snippets.

Combining this launcher with bible fetch gives me a powerful way to retrieve any Bible passage on command, ready to be pasted into an app.

⌘-Space, bible<Tab>Ro 5:6-8<Enter>

⌘-V

You see, at just the right time, when we were still powerless, Christ died for the ungodly. Very rarely will anyone die for a righteous person, though for a good person someone might possibly dare to die. But God demonstrates his own love for us in this: While we were still sinners, Christ died for us.

This smooths out the workflow of having to visit Biblegateway, searching for the passage, turning off verse numbers, selecting the text, invoking copy.

Here's the Raycast script command I wrote that wraps the call to bible fetch and includes some metadata that Raycast uses:

 1#!/bin/bash
 2
 3# Required parameters:
 4# @raycast.schemaVersion 1
 5# @raycast.title bible
 6# @raycast.mode silent
 7
 8# Optional parameters:
 9# @raycast.icon 📙
10# @raycast.argument1 { "type": "text", "placeholder": "reference" }
11# @raycast.packageName Bible Fetch
12
13# Documentation:
14# @raycast.description Get passage
15# @raycast.author Ben Tsai
16# @raycast.authorURL bentsai.org
17
18~/Code/bible-fetch/bible "$1" | pbcopy
19echo "Bible passage copied"