Jump to content
andreas.w

Search and add bookmarks to Raindrop.io

Recommended Posts

This is a workflow for searching and adding bookmarks to Raindrop.io.

 

  • To search your Raindrop.io bookmarks, open Alfred, type r, space, and then your search query, and the results will show directly in Alfred so that you can select one and press enter to open it in your browser.
    • If a web browser is the frontmost app when you open a bookmark from this workflow, it will open in that browser.
    • If you are working in another app, the bookmark will open in your default browser.
    • Hold the cmd-key to view the URL for a bookmark.
    • 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 typing a search query, and Raindrop.io itself will open in your active web browser.
  • To add a new bookmark to Raindrop.io, first make sure that you have the page you want to add opened in a browser and that it is the frontmost window and then open Alfred, type ra, space, and either type to search for the collection you want to add the new bookmark to or just select one in the list.
    • The Firefox support for adding bookmarks was made possible with the help of deanishe's great workflow Firefox Assistant, which needs to be installed in Alfred for the Firefox support to function. Get it here: https://github.com/deanishe/alfred-firefox
    • Hold the cmd-key while selecting a collection to open Raindrop.io in your active web browser after saving, so you can change details of your new bookmark there.
  • If the workflow is not authenticated with Raindrop.io when you initiate it, you will be taken to the authentication process.
  • 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 shortcuts for going directly to the Raindrop.io search or bookmark adding.

 

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, Chrome, Firefox, Edge, Brave, Vivaldi, Opera, Chromium, Chrome Canary, Safari Technology Preview (and SeaMonkey, but only for opening bookmarks)

 

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

 

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

 

Changelog:

1.3.1: Fixed a bug that made the collection list not loading under certain conditions. For example the first time you tried to add a bookmark.

1.3: Support for adding new bookmarks to Raindrop.io from the currently active browser.

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
New version 1.3.1 with bug fix

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

Thank you! I love the idea of Raindrop and have wanted to try it for several years. Every time I consider it I get stuck on not having my bookmarks available in Alfred. This will at least justify me trying it out. 

 

On another note: don't write off Firefox - the user base is likely much higher than you think. Many people are switching back specifically because of FF's focus on privacy and security. This means a lot of Firefox users don't show up in publicly available statistics. And even in tools where vanilla FF users would show up, they use other privacy tools that will hide them. I can understand not implementing the feature because of the extra work, but please don't propagate the myth that FF support isn't important.

Share this post


Link to post
Posted (edited)
30 minutes ago, Sirmontegu said:

On another note: don't write off Firefox - the user base is likely much higher than you think. Many people are switching back specifically because of FF's focus on privacy and security. This means a lot of Firefox users don't show up in publicly available statistics. And even in tools where vanilla FF users would show up, they use other privacy tools that will hide them. I can understand not implementing the feature because of the extra work, but please don't propagate the myth that FF support isn't important.

 

I really like Firefox too. I used it for many years as my primary browser, and would probably still do that if I didn't just happen to like Safari even more in recent years.

But anyway, I really do want to support it together with all the other browsers, and because of the information that deanishe provided in an earlier comment here, and his great Firefox integration workflow, I have been able to make that work, and am testing and making the final touches on a version of this workflow that can add new bookmarks to Raindrop from all relevant browsers, including Firefox.

 

I will probably release it within a week or so, but if you want to try it out now, as it is at the moment, you can find the current development version on Github: https://github.com/westerlind/alfred-raindrop-search

Not really all that much information there about adding bookmarks yet, but the feature is there and works :) 

 

And just to make that clear, Firefox is already supported for searching and opening bookmarks. The part that was tricky to do in Firefox was adding bookmarks from it.

Edited by andreas.w

Share this post


Link to post
19 minutes ago, Sirmontegu said:

the user base is likely much higher than you think.


Debatable. You don’t need JavaScript analytics to know who’s using which browser.

 

19 minutes ago, Sirmontegu said:

please don't propagate the myth that FF support isn't important.


It’s not that Firefox support doesn’t matter, it’s that Firefox is almost impossible to support.

 

A fairly simple JXA script can get the title and URL of the active tab from any common-ish browser that isn’t Firefox.
 

But getting that info from Firefox is hellishly complicated and hacky because Mozilla doesn’t care about users like us.
 

So if you want workflows that support Firefox, get on Mozilla’s case to make it possible.

Share this post


Link to post
1 hour ago, andreas.w said:


It is :) 

Oh that's fantastic! I can't see to get it working though. Only pulls up bookmarks for me. Am I missing something? Thanks

Share this post


Link to post
48 minutes ago, Zee said:

Oh that's fantastic! I can't see to get it working though. Only pulls up bookmarks for me. Am I missing something? Thanks

 

Sorry, I think I misunderstood you.

I was writing in the last posts, before your question, about the new feature coming any day now (and available on the github dev-version already) that makes it possible to add new bookmarks, and that feature does let you search for collections to add the new bookmark to.

You can't search for collections and list the bookmarks in them. At least not at the moment. I had not even thought of that until right now, but It is not a bad idea :)

I might add it later, but no promises about that right now.

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...