1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-16 05:28:03 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
nick-w-nick
b21fe73d07 Merge 295fe153ad into e4abc56f4c 2024-10-22 15:57:26 -04:00
jbranchaud
e4abc56f4c Add Add Hotkeys For Specific Raycast Extensions as a Workflow TIL 2024-10-22 14:30:59 -05:00
nick-w-nick
295fe153ad added mention of ES6 compatibility
Hello, I've added a small blockquote below the description to indicate that this method of accessing an indefinite number of function arguments has been superseded by the use of the spread operator via rest parameters for ES6+ compatibility.
2022-01-06 11:39:04 -05:00
3 changed files with 23 additions and 1 deletions

View File

@@ -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).
_1479 TILs and counting..._
_1480 TILs and counting..._
---
@@ -1705,6 +1705,7 @@ _1479 TILs and counting..._
### Workflow
- [Add Hotkeys For Specific Raycast Extensions](workflow/add-hotkeys-for-specific-raycast-extensions.md)
- [Add Subtitles To Existing Mux Video Asset](workflow/add-subtitles-to-existing-mux-video-asset.md)
- [Access 1Password Credential From CLI](workflow/access-1password-credential-from-cli.md)
- [Change Window Name In iTerm](workflow/change-window-name-in-iterm.md)

View File

@@ -5,6 +5,8 @@ an array-like object with all of the arguments to the function. Even if not
all of the arguments are referenced in the function signature, they can
still be accessed via the `arguments` object.
> For ES6+ compatibility, the `spread` operator used via [rest parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) is preferred over the `arugments` object when accessing an abritrary number of function arguments.
```javascript
function argTest(one) {
console.log(one);

View File

@@ -0,0 +1,19 @@
# Add Hotkeys For Specific Raycast Extensions
One of the main things I use [Raycast](https://www.raycast.com/) for is its
built-in clipboard history extension. It's super handy when I've copied a Git
SHA or a URL or a bit of text several copies ago and I want to be able to refer
back to it. It keeps 7 days of clipboard history by default, so anything that I
remember copying is going to be there.
To get there, I have to trigger Raycast, which I usually open via Alfred (I
know, 😅). Then I search for Clipboard History (or find it under recent
suggestions).
Raycast supports arbitrary hotkey bindings for triggering different extensions
and their features. So I can get to the Clipboard History in a single step --
e.g. with `Ctrl+Shift+V`.
From Raycast _Settings_, go to the _Extensions_ tab. Find _Clipboard History_
in the list and then click the _Record Hotkey_ input for it. I then type
`Ctrl+Shift+V` and I'm all set.