mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add Launch Some Confetti as a Mac TIL
This commit is contained in:
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
|
|||||||
|
|
||||||
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
||||||
|
|
||||||
_1689 TILs and counting..._
|
_1690 TILs and counting..._
|
||||||
|
|
||||||
See some of the other learning resources I work on:
|
See some of the other learning resources I work on:
|
||||||
|
|
||||||
@@ -711,6 +711,7 @@ If you've learned something here, support my efforts writing daily TILs by
|
|||||||
- [Insert A Non-Breaking Space Character](mac/insert-a-non-breaking-space-character.md)
|
- [Insert A Non-Breaking Space Character](mac/insert-a-non-breaking-space-character.md)
|
||||||
- [Inspect Assertions Preventing Sleep](mac/inspect-assertions-preventing-sleep.md)
|
- [Inspect Assertions Preventing Sleep](mac/inspect-assertions-preventing-sleep.md)
|
||||||
- [Keyboard Shortcuts For Interesting With Text Areas](mac/keyboard-shortcuts-for-interacting-with-text-areas.md)
|
- [Keyboard Shortcuts For Interesting With Text Areas](mac/keyboard-shortcuts-for-interacting-with-text-areas.md)
|
||||||
|
- [Launch Some Confetti](mac/launch-some-confetti.md)
|
||||||
- [List All The Say Voices](mac/list-all-the-say-voices.md)
|
- [List All The Say Voices](mac/list-all-the-say-voices.md)
|
||||||
- [Open Finder.app To Specific Directory](mac/open-finder-app-to-specific-directory.md)
|
- [Open Finder.app To Specific Directory](mac/open-finder-app-to-specific-directory.md)
|
||||||
- [Prevent Sleep With The Caffeinate Command](mac/prevent-sleep-with-the-caffeinate-command.md)
|
- [Prevent Sleep With The Caffeinate Command](mac/prevent-sleep-with-the-caffeinate-command.md)
|
||||||
|
|||||||
36
mac/launch-some-confetti.md
Normal file
36
mac/launch-some-confetti.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Launch Some Confetti
|
||||||
|
|
||||||
|
If you have [Raycast](https://www.raycast.com/) installed on your machine, then
|
||||||
|
you have quick access to some confetti via their quick command palette. Trigger
|
||||||
|
the command palette to open, start typing `confetti` until it appears as the
|
||||||
|
focused option, and then hit enter.
|
||||||
|
|
||||||
|
🎉
|
||||||
|
|
||||||
|
We can launch confetti other ways, including programmatically from scripts.
|
||||||
|
|
||||||
|
To do this, we need to first find the _deeplink_ for the Raycast _confetti_
|
||||||
|
program. Trigger the command palette and type out `confetti` again. However,
|
||||||
|
this time instead of hitting enter, hit `Cmd+k` to open other actions. Find the
|
||||||
|
_Copy Deeplink_ option.
|
||||||
|
|
||||||
|
You should now have this on your clipboard:
|
||||||
|
|
||||||
|
```
|
||||||
|
raycast://extensions/raycast/raycast/confetti
|
||||||
|
```
|
||||||
|
|
||||||
|
With this deeplink in hand, we can now trigger confetti other places. The
|
||||||
|
easiest way to do this is to open a terminal and pass that deep link as an
|
||||||
|
argument to `open`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ open raycast://extensions/raycast/raycast/confetti
|
||||||
|
```
|
||||||
|
|
||||||
|
Now you can wrap that up in any old bash script or even just tack it on to the
|
||||||
|
end of a run of your test suite:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ rails test && open raycast://extensions/raycast/raycast/confetti
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user