pacmax beta

Alfred Pac by westerlind on GitHub

raindrop search

Search or add Raindrop.io bookmarks from Alfred

From their README

Alfred Raindrop.io Search & Bookmark Management Workflow

This Alfred workflow is created to have a single, fast, and always reachable way of searching Raindrop.io, and then open bookmarks in the web browser you are currently working in, even if that's not your default browser. You can also use this workflow to add bookmarks to Raindrop.io from the browser you are currently using, or from an address that you have copied from somewhere else.

  • 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 a bookmark and press enter to open it in your browser.
    • Raindrop.io collections and tags will also show in the search results together with bookmarks, and you can select them to browse or search their content.
    • Before you have started to type a search query, you also have the option to browse your collections instead of starting with a search.
    • 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 ctrl-key to view the description for a bookmark.
    • Hold the option-key and press enter, or use cmd+c to copy the URL instead of opening it in a browser.
    • Hold the shift-key and press enter to open the permanent copy that is stored at Raindrop.io (Requires a Raindrop.io Pro subscription to work)
    • Press enter before you have started typing a search query, and Raindrop.io itself will open in your active web browser.
  • If you prefer faster searches over full-text search and more accurate search results, there is an alternative search mechanism for this. Open Alfred, type rl, space, and then your search query. This provides considerably faster results by searching a local cache of your bookmarks instead of querying the Raindrop.io API each time.
    • This search mechanism will search the title, excerpt/description, and link address of each bookmark, but full-text search is not supported with this mechanism, and depending on how you use Raindrop.io, the quality of the results may not be entirely as good.
    • The local cache is updated automatically the first time you do a local search after the configured update interval has passed (default 24h). The cache is refreshed after providing the bookmarks to Alfred for doing the current search, which means that you get your results as fast as possible, and the local cache is updated for the next search you search.
    • To manually refresh the local cache, open Alfred and type rr.
    • Other than full-text search, all the same features are available in the local search.
  • As both of the search modes are available in parallel, you can, for example, assign them to different keyboard shortcuts and use the one that is better for the current purpose (either with full-text search or faster)
  • If you prefer the faster local search over the full-text search capability, you can change the local search to use r in the workflow view (look for the green objects there) to keep it as easily available as possible.
  • To add a new bookmark to Raindrop.io, there are two ways to get the actual bookmark you want to add into the workflow.
    • The primary way is to first make sure that you have the webpage you want to add opened in a browser and that it is the frontmost window, and then open Alfred and type ra followed by a space.
    • The alternative way, which only works if the frontmost application is not one of the supported browsers (as the primary method will be used then), is that you first copy an address that you want to add as a bookmark, and then open Alfred and type ra followed by a space.
    • In the first step you then choose a collection for the new bookmark, and you can either type to search for the collection you want to add the new bookmark to or just select one in the list. Hold the cmd-key to save when you select the collection, and skip setting a custom title or adding tags.
    • In the second step you get to change the title that the bookmark is saved with. Hold the cmd-key to save and skip the tag adding step.
    • In the third step you get to add tags to your new bookmark. You can either simply type them out, or select from a list of tags that matches what you have started to type. Separate multiple tags with comma. Hold the cmd-key to save when selecting a tag in the list, and skip the option of adding more tags.
    • 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. The workflow will tell you about this when it is needed and direct you to instructions about what you need to do, but you can also get it in advance here: https://github.com/deanishe/alfred-firefox
  • If the workflow is not authenticated with Raindrop.io when you initiate it, you will be taken to the authentication process.
  • You can log out from Raindrop.io by opening Alfred and typing rlogout

Supported macOS versions

This workflow is compatible with macOS 11 Big Sur and newer, and doesn't have any other external requirements (other than for Firefox bookmark adding support. See a few lines above here for that). The reason for not supporting older versions than Big Sur is that Go 1.24 doesn't support older OS versions.

Supported Alfred versions

Alfred 5 is supported from version 2.0.7 onwards and is the only supported version in 3.X. Alfred 4 is supported for all versions before 3.0.

Supported Web Browsers

Safari, Chrome, Firefox, Edge, Brave, Vivaldi, Opera, Arc, Orion, Sidekick, Chromium, Chrome Canary, Safari Technology Preview, NAVER Whale (and SeaMonkey and SigmaOS, but only for opening bookmarks)

Settings

  • To set keyboard shortcuts, go to the "Search Raindrop.io" workflow in the Alfred preferences and look in the top left corner where you can set keyboard shortcuts for searching Raindrop.io, searching the local cache, or for adding bookmarks.
  • To change other settings, go to the "Search Raindrop.io" workflow in the Alfred preferences, and click the "Configure Workflow" button above the workflow view, where you can change the settings and se descriptions of what each setting is doing.

Availability

You can download the newest version of this workflow from GitHub here: https://github.com/westerlind/alfred-raindrop-search/releases

If You Download the Source Code

If you download the source code from GitHub rather than the packaged .alfredworkflow file, the codes that are used to identify this as a client to Raindrop.io is not included, as they are supposed to be application specific. Get your own codes at the following link and put them in client_code.go: https://app.raindrop.io/#/settings/apps/dev Here is an instruction for how to get everything ready and compiling the code:

  • Install the XCode command line tools with this terminal command: xcode-select --install
  • Install Homebrew. Instructions here.
  • Install Go by running the following in the terminal after installing Homebrew: brew install go
  • You should now be able to compile the code by simply running the provided build.sh
  • If that doesn't work, start by checking that Go functions properly. If you get Go to function, build.sh should also work.
  • The result will be a universal binary (native for both Intel and Apple Silicon), with the name raindrop_alfred

Latest release

  • 3.0.11 year ago, 11.3 MBDownload

    This is a very small update that fixes a mistake in the info text about keyboard shortcuts.

    For info about much bigger recent changes, see the release notes for v3.0

19 earlier releases
  • 3.01 year ago, 11.3 MBDownload

    Version 3.0!

    The biggest new feature is that there is now a new local search mode for getting instant search results, but no full-text search. Both search modes are available in parallel, so you don't have to select only one and use only that, but you can decide for yourself if you want to use one of the search modes or both of them for different things. The local instant search is by default triggered by rl, while the old server-side somewhat slower search with full-text search support is triggered by r like before. You can of course change this in the workflow if you for example prefer to trigger the local search with r instead. Collection browsing, searching for collections or tags, and all other features apart from the search mechanism itself are available in both search modes.

    The second big change is that this workflow now supports the settings configuration introduced with Alfred 5. This also means that it doesn't support Alfred 4 anymore.

    There is also a third change of note, which is that there is now a much easier way of logging out from Raindrop.io by simply opening Alfred and typing rlogout

  • 2.0.141 year ago, 11.3 MBDownload
    • Fixed a bug that could lead to a crash
  • 2.0.132 years ago, 10.7 MBDownload
    • Fixed a bug that could lead to a crash in rare cases
  • 2.0.122 years ago, 10.1 MBDownload
    • Fixed a bug that could prevent the search from working in rare cases
  • 2.0.113 years ago, 9.8 MBDownload
    • Added full support for the Orion browser
  • 2.0.103 years ago, 9.8 MBDownload
    • Fixed a macOS Sonoma specific text encoding issue that caused the workflow to crash when adding a bookmark from Google Chrome or any other Chromium based browser
  • v.2.0.93 years ago, 9.5 MBDownload
    • Fixed an encoding issue that could lead to problems opening links or logging in, especially if you where using a proxy server
  • 2.0.83 years ago, 9.5 MBDownload
    • The workflow functions again after fixing a compatibility issue that happened after changes in Raindrop.io's API recently
    • Fixed some problems with listing and searching tagged bookmarks
    • Fixed a compatibility issue with Alfred 5

    This workflow is still 100% compatible with Alfred 4, and also works just the same on Alfred 5, but in the future there will be changes that breaks the Alfred 4 compatibility, as that is required to integrate better with Alfred 5.

  • 2.0.74 years ago, 9.0 MBDownload
    • Fixes a bug when opening links in Alfred 5 (thanks @vitorgalvao)
    • Adds support for the browsers Arc and Sidekick
    • Fixes encoding issues for titles of sites in languages with non-roman characters
  • 2.0.65 years ago, 8.6 MBDownload

    Bug fix

  • 2.0.55 years ago, 8.6 MBDownload

    Fixed a bug that could lead to a crash when initiating the workflow.

  • v.2.0.45 years ago, 8.6 MBDownload

    Bug fix for an issue that would occur if you had at least one collection in Raindrop.io that did not have an icon manually set for it.

  • 2.0.35 years ago, 8.6 MBDownload

    Bug fixes.

    See the changelog of version 2.0 and 2.0.2 for more interesting recent changes.

  • 2.0.25 years ago, 8.6 MBDownload

    This update adds the ability to directly open Raindrop.io's permanent copy of a bookmark by holding shift and pressing enter while a bookmark is selected in the list. This feature requires a Raindrop.io Pro subscription to work.

    Check v2.0 for bigger recent changes.

  • 2.0.15 years ago, 8.6 MBDownload

    This is a small update that adds the ability to show more and better information if the authentication against Raindrop.io fails. See v2.0 for the recent bigger changes.

  • 2.05 years ago, 8.6 MBDownload

    Version 2.0 does not really look or behave very differently than before, but almost everything has changed underneath to make this a better workflow:

    • Rewritten in Go, so no dependency on PHP or Python anymore. This is important, as Apple is removing PHP from macOS 12 Monterey, and will also remove Python from macOS in the future.
    • It's faster! Running the backend of the workflow as a compiled binary (Go) instead of a script (PHP) makes it faster, and it is also compiled as a universal binary, so it's running natively on both Apple Silicon and Intel Macs, but there are also some other changes that helps to make it faster and you will probably notice the difference if you used the old version before.
    • Less risk for unexpected behaviour that leads to bugs, both because it can't behave different depending on which PHP or Python version you have anymore, but also because it now for example uses more reliable ways to keep track of information while navigating through the different parts of the workflow.
    • Adding bookmarks from Firefox is now more reliable, and if things still occasionally go wrong, the workflow is better at communicating that in a useful way. (I switched from Safari to Firefox myself, so it got some more attention than before)
    • Ability to add a bookmark by copying the address, rather than getting it from the currently active browser window. To use this feature for adding a bookmark from an unsupported browser (or somewhere else), just copy the address and go to the bookmark adding feature of this workflow. It will just work, without you having to do anything more than that! (This is the secondary way to add bookmarks, so if a supported browser is the frontmost application, the workflow will still look there and ignore what you might have copied)
  • 1.75 years ago, 716 KBDownload
    • This version adds support for macOS Monterey! When you have updated to macOS Monterey and installed version 1.7 of this workflow you will also need to install PHP (if you haven't done that already of course), as Apple does not include PHP preinstalled anymore in Monterey. Instructions for the recommended way of doing this is available here. If you install PHP in a non default path (other than what is default for Homebrew, MacPorts etc), you might want to add that path to the path environment variable in this workflow.
    • If you have set a bookmark as a favourite, this will now be indicated in search results and lists
    • Bookmarks that are marked as favourites will also now by default be listed first in search results and lists, which you can change by setting the value of the environment variable favourites_first in the workflow, if you prefer the old behaviour for this.
    • You can now browse your Unsorted bookmarks, just like you can browse your other bookmark collections.
    • Many potential problems are also fixed with this update, so if you had problems to make this workflow function properly before, this update might fix that.
  • 1.6.15 years ago, 733 KBDownload
    • Fixes a problem with icon caching that could occur if you did a new installation of version 1.6 rather than upgrading from a previously installed version.
  • 1.65 years ago, 711 KBDownload
    • Icon changes to reflect that Raindrop.io has changed its logo
    • Added requested support for the NAVER Whale Browser
    • Fixed a bug that could prevent the authentication mechanism from working if you tried to add a bookmark (not search) the first time you used the workflow