All Projects → pnlng → alfred-url-actions

pnlng / alfred-url-actions

Licence: MIT license
An Alfred workflow that fetches the URL and title of your browser's current tab, and does things with them.

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects
applescript
352 projects

Projects that are alternatives of or similar to alfred-url-actions

Chrome Bookmarks Alfred Workflow
Chrome/Canary/Chromium/Microsoft Edge bookmarks search workflow for Alfred
Stars: ✭ 241 (+372.55%)
Mutual labels:  alfred-workflow
alfred-anki
Create New Cards into any decks with any "Note Type".
Stars: ✭ 42 (-17.65%)
Mutual labels:  alfred-workflow
alfred-postcss-workflow
Alfred App Workflow for https://www.postcss.parts
Stars: ✭ 14 (-72.55%)
Mutual labels:  alfred-workflow
Alfred Web Search Suggest
Alfred search suggest workflow for various popular websites.
Stars: ✭ 249 (+388.24%)
Mutual labels:  alfred-workflow
alfred-workflow-zoom-meetings
Join a Zoom meeting without the link opening in your browser.
Stars: ✭ 45 (-11.76%)
Mutual labels:  alfred-workflow
Douban-Movie-Workflow
Alfred的豆瓣电影搜索插件
Stars: ✭ 41 (-19.61%)
Mutual labels:  alfred-workflow
Google Alfred3 Workflow
🎉 The missing Alfred 3 Workflow for searching google.
Stars: ✭ 241 (+372.55%)
Mutual labels:  alfred-workflow
alfred-craftdocs
Note searching for Craft Docs using Alfred
Stars: ✭ 38 (-25.49%)
Mutual labels:  alfred-workflow
Alfred-Colors-workflow
hex <=> rgb <=> hsl
Stars: ✭ 28 (-45.1%)
Mutual labels:  alfred-workflow
alfred-deepl
Utilize DeepL api translator.
Stars: ✭ 19 (-62.75%)
Mutual labels:  alfred-workflow
Alfred Searchio
Alfred workflow to auto-suggest search results from multiple search engines and languages.
Stars: ✭ 250 (+390.2%)
Mutual labels:  alfred-workflow
eudic tools
🔍📚
Stars: ✭ 29 (-43.14%)
Mutual labels:  alfred-workflow
WinPopclip
Popclip alternative for Windows
Stars: ✭ 76 (+49.02%)
Mutual labels:  popclip
Alfred Repos
Browse, search and open Git repositories in Alfred
Stars: ✭ 244 (+378.43%)
Mutual labels:  alfred-workflow
alfred-app
A collection of Themes and Workflows for Alfred.
Stars: ✭ 48 (-5.88%)
Mutual labels:  alfred-workflow
Alfred Jira
Alfred 3 (or Alfred 2) workflow for interacting with JIRA.
Stars: ✭ 242 (+374.51%)
Mutual labels:  alfred-workflow
alfred-figlet
🔠 Alfred 3 workflow to asciify plain text using figlet.js
Stars: ✭ 16 (-68.63%)
Mutual labels:  alfred-workflow
alfred-network-location
List, filter and activate network locations from within Alfred
Stars: ✭ 31 (-39.22%)
Mutual labels:  alfred-workflow
alfred-arxiv-workflow
🔎 Alfred workflow to search arxiv.org items
Stars: ✭ 23 (-54.9%)
Mutual labels:  alfred-workflow
AlfredWorkflow YoudaoTranslate
alfred workflow,有道翻译
Stars: ✭ 20 (-60.78%)
Mutual labels:  alfred-workflow

URL Actions

URL Actions is an Alfred workflow that fetches the URL and title of your browser's current tab (compatible with Firefox, Safari, Chrome, and pretty much everything else), and does things with them. For example, it can

  • Copy link in Markdown
  • Add a task to OmniFocus Pro
  • Optionally remove URL query parameters

The actions are also customizable. It can

  • Open custom URLs
  • Copy custom strings to clipboard

An optional PopClip extension is also available, if one is inclined to trigger the workflow from the mouse.

Download

Screenshots

Alfred OmniFocus quick entry

macOS notification

Contents

Usage

Select the desired URL (⌘L to get the URL of the current tab in a browser). Fire up the workflow's associated hotkey, which is ⇧^C by default.

  • Pressing will either copy the formatted string or open the URL scheme action.
  • Pressing ⌘↵ will remove query parameters from the URL.
    • Example: https://www.alfredapp.com/?param=something becomes https://www.alfredapp.com/

PopClip

Alternatively, if you use PopClip, you trigger Alfred through the PopClip extension.

  • Note: The extension triggers Alfred 4 by default. If you use other versions of Alfred, you would need to modify alfred.applescript and Bundle Identifier in Config.plist, and package the extension yourself.

Configuration

Variables

See here for a quick tutorial on how to configure variables in Alfred.

  • CLEAN_AMAZON - Default: true
    • The workflow removes tracking tokens from Amazon URLs if this variable is set to true.
    • To disable the feature, set the variable to false.
  • UPDATE_FREQUENCY - Default: 7
    • Set once how many days the workflow should check for updates
    • Updates done through OneUpdater
  • CUSTOM_ACTIONS_FILE - Default: null
    • The name of a JSON file in the workflow data directory supplying custom actions that override the default actions.
  • CUSTOM_ACTIONS - Default: null
    • A string in JSON format supplying custom actions that override the default actions.
    • If both CUSTOM_ACTIONS and CUSTOM_ACTIONS_FILE are defined, only the CUSTOM_ACTIONS_FILE will be used.

Custom Actions

You can supply custom actions that override the default actions in one of the following ways.

  1. Put a JSON file in the workflow data directory (accessible via the keyword urlact). Let the value of CUSTOM_ACTIONS_FILE be the name of the file.
  2. Let the value of CUSTOM_ACTIONS be a JSON string.

For a template, see actions_template.json.

Example:

[
  {
    "action_title": "Copy as Markdown link",
    "output": "[{title}]({url})"
  },
  {
    "action_title": "Add to OmniFocus",
    "action_subtitle": "",
    "output": "omnifocus:///add?name={title}&note={url}",
    "encode": true
  }
]

Variables:

  • {title}
  • {url}

Attributes:

  • action_title: Action title shown in Alfred.
  • action_subtitle: (Optional) Action subtitle shown in Alfred. If unspecified, the workflow will display the formatted output in this field.
  • output: Desired output of the action.
  • encode: (Optional) Default false. Whether to encode the title of the webpage. This is useful when the action is to open an URL scheme.

_Note: Currently, if the output matches the regex ^.+:///._, the workflow will open the URL. Conversely, if the output doesn't match the regex, the workflow will copy the output to clipboard.*

Alternatives

Copying URLs

Fallroot's Copy URL is a great workflow for formatting an URL in various ways. It can get the current tab title and URL from Safari and Chrome. Alas, it does not support Firefox.

Adding to OmniFocus

There is a workflow called Create OmniFocus Tasks by Aaron Hockley. It's hosted here on Dropbox, archived here on GitHub, and is no longer actively maintained.

If you use only Safari or Chrome, and do not need to copy links in Markdown or clean Amazon URLs, this workflow might be the easiest way to add an URL and the associated page title to OmniFocus.

Browser Specific

For maximal scriptability in Firefox, checkout deanishe's Firefox Assistant for Alfred.

There are a few browser specific tools that can send the frontmost web page and URL to OmniFocus.

Browser Support

  • Firefox
  • Chrome
  • Safari
  • Brave
  • Opera
  • Vivaldi ... probably any browser, really.

Acknowledgements

This workflow is inspired by these articles and projects.

This workflow is especially indebted to:

  • The AwGo library by deanishe
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].