Jump to content
andreas.w

Search Raindrop.io & open bookmarks in active browser

Recommended Posts

This is a workflow for searching your bookmarks on Raindrop.io.

- Trigger it by typing r in Alfred, and then type to search your bookmarks

- Select a bookmark and press enter to open it in your web browser (with multi-browser support, see below)

- Hold down the cmd-key while a bookmark is selected to view it's URL

- Hold the option-key while pressing enter, or use cmd+c to copy the URL instead of opening it in a browser

- Press enter before you have started to type your search query to open Raindrop.io itself in your browser

- If you are not authenticated to Raindrop.io when you initiate the workflow, the authentication process will start automatically

- Go to the "Search Raindrop.io" workflow in the Alfred preferences and look in the top left corner if you want to add a keyboard shortcut for going directly to the Raindrop.io search.

 

One special thing with this workflow is that it detects if the topmost window is a browser window, and then opens the search results in that browser.

So, if you are currently working in Firefox, your bookmark will open in a new tab there, and if you are currently working in Safari, or in Chrome, the bookmark will open there instead.

If the topmost application is not a browser, the bookmark will be opened in your default browser.

 

This makes this extension perfect for those who use more than one browser. You can always open bookmarks in the exact same way, and still have them displayed in the browser you are currently using.

 

The supported browsers are: Safari, Firefox, Chrome, Chromium, Chrome Canary, Brave, Edge, Vivaldi, Safari Technology Preview and Seamonkey (Why Seamonkey? Yeah, good question, but it's there anyway)

Other browsers that you might use (whatever that would be?) will simply not be detected as a browser, and the search results will show up in your default browser. (You could add another browser to the Workflow yourself of course, if you would want to)

 

Download at Packal here: https://www.packal.org/workflow/search-raindropio

 

View at GitHub here: https://github.com/westerlind/alfred-raindrop-search

 

Changelog:

1.2: Added option to have a keyboard shortcut for direct access to the Raindrop.io search, and added the ability to hold the option key while pressing enter to copy the link instead of opening it in a browser (you could already copy the link with cmd+c before, and that is still possible)

1.1: Implemented a proper authentication mechanism, so that this is now handled in a simple to use way that is initiated directly from the workflow if it senses that you are not authenticated yet.

1.0: Uses Raindrop's new public API to make the search inside Alfred, so that you can open the bookmarks right from Alfred without having to ho through the Raindrop.io website first.

0.9: First version. Could only open the Raindrop.io website to view the results of your query, as Raindrop's public API was not released yet

 

 

Pkvg14+

Edited by andreas.w
Updated download link

Share this post


Link to post
22 hours ago, tylast said:

I'm sure you've seen that the public API is now available.  ;)

Yes :) 

I'm looking into that, so there might be an update soon for this workflow with the results right in Alfred, so you could select the bookmark you are looking for in Alfred and open that up in a web browser directly.

Don't know how soon it will be done, but I really want it myself, so it probably will happen anyway.

Share this post


Link to post
On 2/14/2020 at 1:17 PM, tylast said:

I'm sure you've seen that the public API is now available.  ;)

Didn't expect this to be done this fast when I wrote about it a few hours ago, but there is now a new version with support for Raindrop's new API, and thereby support for doing the actual search inside Alfred and open the bookmark in the web browser instead of opening the Raindrop.io search result page in the browser like before.

 

It's important to read and follow the instructions in the import dialog while importing this new version to Alfred, as this workflow will not work at all otherwise.

Share this post


Link to post

Released a new version with proper OAuth authentication built in, so that this is now handled in a simple to use way that is initiated directly from the workflow if it senses that you are not authenticated yet.

No traffic goes anywhere else then to Raindrop.io itself during this process, so everything stays 100% on your device only and when you accept that this workflow gets access to your account, you only accept that this workflow on your computer gets that access, nothing else.

Share this post


Link to post
7 hours ago, alfredpleb said:

Is this on GitHub, by chance? Great Workflow. :)

It's not there at the moment, but I have been thinking of putting it there, and will probably do so within a few days.

Glad you like it! :)

Share this post


Link to post

[Feature request]

Add bookmark to Raindrop, for example with keyword "ra button" the drop down list will show all the collection with the keyword "button" and pick the one you want to save to. :)

 

Thanks ! love it.

Share this post


Link to post
On 3/9/2020 at 2:42 AM, dunkaroo said:

[Feature request]

Add bookmark to Raindrop, for example with keyword "ra button" the drop down list will show all the collection with the keyword "button" and pick the one you want to save to. :)

 

Thanks ! love it.

 

Just released version 1.2 with some smaller changes (check the changelog in the first post), and I think I will go for your suggestion next, probably within a few weeks.

 

I have looked into that a bit, and it seems like it will be possible to implement this really well for Safari and for all the Chromium based browsers (Chrome, Edge, Brave, Opera etc), but sadly not for Firefox, which is because as far as I can tell there is no way of getting the current URL from Firefox from a third party app/script without either doing some really hacky things to Firefox itself (which is bad), implementing a full Firefox extension for it (which seems like overkill for something like this), or automating a selection of the address bar and copying of its content, which would probably make Alfred close while that is happening, as it would lose focus, and still would not be a very nice solution even if it worked.

 

So, this would probably be a feature for practically all browsers except Firefox, but it could still work really well in those browsers, and in Firefox (just like the other browsers) there is always the official Raindrop.io extension for saving bookmarks.

I guess if we go by the statistics, not all that many people use Firefox anymore anyway? :) 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...