Quick-capture Raycast extension I hacked together

I had a desire to be able to quickly ingest some text I’d written into Supernotes from some other app. I eventually landed on a Raycast extension as the solution. When activated, it takes either the contents of the currently selected text (if any) or the contents of the clipboard and creates a new card in Supernotes with those contents. I bound the action to a keyboard shortcut in Raycast, and I gotta say, it felt so slick to use it.

I’m not going to publish this to the Raycast Extension Store because it’s not polished and I don’t want to maintain it since I am likely moving away from Supernotes (to no fault of this amazing app). But I wanted to share my code here in case anyone wanted to use it, or use it as a starting point for something even greater.

NOTE: Some level of comfort with tech and the command line is necessary at this stage, since this isn’t a published extension.

Here is the Github repo.

To run the extension in Raycast, you’ll need to first download the code from Github, get your environment set up like this, and then run npm install && npm run dev from inside the directory as if you were developing the extension.

At this point, it should appear in Raycast. You need to add your API key in the Raycast preferences for this extension before it will work.

Then, select some text or copy something to the clipboard and run the command in Raycast! The first line of the copied text is used as the title. If it is a Markdown heading, any leading # characters are stripped. Any tags found in the last line of the text contents are added as tags in the created card and removed from the card’s body.

I hope at least someone in the community finds this useful. Fun fact: I built this, my first Raycast extension, mostly by asking Claude to build it for me and then making minor adjustments and improvements from there.

2 Likes

Hi @lukebyear,

Thanks so much for sharing this – looks fantastic!

If you’d like us to include this functionality in the official Supernotes Raycast extension (https://www.raycast.com/supernotes/supernotes), feel free to fork and submit a PR. That way we will also maintain it for you and other users moving forward in the future – and anyone can install it even without coding expertise.

1 Like

Thanks @tobias! I thought about extending the official extension but it was easier to hack something together. Since I am not using the extension anymore I will leave it to someone else to integrate it with the official extension – which shouldn’t be too hard because there’s no view/UI the way I have it set up…

1 Like

Hey @lukebyear, just wanted to let you know that we’ve taken your original idea and expanded it a bit, and this has now been published to the Raycast store.

Feel free to try it out and let us know what you think!

2 Likes