Skip to content

Commit

Permalink
Add actions to Search Docs command
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Oct 14, 2024
1 parent a01e8a3 commit 5ed4da3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions extensions/braid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Braid Changelog

## [Improvements & New Features] - 2024-10-14

- Add _copy to clipboard_ and _open with_ actions to `Search Docs` command.

## [Improvements & New Features] - 2024-08-14

- Add Spread component.
Expand Down
2 changes: 2 additions & 0 deletions extensions/braid/src/search-docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export default function Command() {
actions={
<ActionPanel>
<Action.OpenInBrowser url={url} />
<Action.CopyToClipboard content={url} />
<Action.OpenWith path={url} shortcut={{ modifiers: ["cmd"], key: "o" }} />
</ActionPanel>
}
/>
Expand Down
2 changes: 1 addition & 1 deletion extensions/braid/src/search-iconography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export default function Command() {
actions={
<ActionPanel>
<Action.Paste title="Paste Icon JSX" content={`<${item.name} />`} />
<Action.OpenInBrowser url={item.url} shortcut={Keyboard.Shortcut.Common.Open} />
<Action.CopyToClipboard
title="Copy Icon Name"
content={item.name}
shortcut={Keyboard.Shortcut.Common.Copy}
/>
<Action.OpenInBrowser url={item.url} shortcut={Keyboard.Shortcut.Common.Open} />
</ActionPanel>
}
/>
Expand Down

0 comments on commit 5ed4da3

Please sign in to comment.