Skip to content

Commit

Permalink
[Raindrop.io] Close raycast after saving browser tab (raycast#16057)
Browse files Browse the repository at this point in the history
* Update raindrop-io extension

- feat: add search by title functionality
- Initial commit

* Update raindrop-io extension

- feat: close raycast after saving tab
- Initial commit

* Update types.ts

* Update CHANGELOG.md and optimise images

---------

Co-authored-by: Per Nielsen Tikær <[email protected]>
Co-authored-by: raycastbot <[email protected]>
  • Loading branch information
3 people authored and gogocharli committed Jan 6, 2025
1 parent a503b9e commit 547195c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions extensions/raindrop-io/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Raindrop.io Extension Changelog

## [Enhancements] - 2025-01-02

- Close Raycast after saving browser tab ([#16052](https://github.com/raycast/extensions/issues/16052))

## [Enhancements] - 2024-12-20

- Add option to search on title only ([#8939](https://github.com/raycast/extensions/issues/8939) and [#13867](https://github.com/raycast/extensions/issues/13867)).
Expand Down
7 changes: 4 additions & 3 deletions extensions/raindrop-io/src/save_browser_tab.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Toast, showToast } from "@raycast/api";
import { Toast, closeMainWindow, showHUD, showToast } from "@raycast/api";
import { CreateForm } from "./components/CreateForm";
import { useBrowserLink } from "./hooks/useBrowserLink";

Expand All @@ -12,8 +12,9 @@ const AddBrowserTab = () => {
onWillCreate={() => {
showToast(Toast.Style.Animated, "Adding Link...");
}}
onCreated={() => {
showToast(Toast.Style.Success, "Link Added");
onCreated={async () => {
await closeMainWindow({ clearRootSearch: true });
await showHUD("Link added");
}}
onError={() => {
showToast(Toast.Style.Failure, "Error Adding Link");
Expand Down

0 comments on commit 547195c

Please sign in to comment.