Copy URL

An Alfred Workflow


Short Description

You can copy browser's URL and title with various formats like markdown, anchor tag and your own.

Last Updated

12 Feb 2018

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
Yes No No No No
 

Version

0.0.4
 

Bundle ID

com.fallroot.copyurl
 

Author

screenshot

Installation

Powerpack is required.

  1. Download copyurl.alfredworkflow.
  2. Open file by double-clicking or dragging into Alfred.
  3. Open Alfred and type url.
  4. Select URL format.

You can change everything at Alfred Preferences > Workflows menu.

Add your own template

  1. Open ~/Library/Application Support/Alfred 2/Workflow Data/com.fallroot.copyurl/config.json file.
  2. Edit contents with valid JSON format.

config.json format

config.json file should be array of object is consist of format and type fields. format field should be string of combination ${url}, ${title} or JavaScript function string like below.

[
    {
        "format": "${url}",
        "title": "URL"
    },
    {
        "format": "${title}",
        "title": "Title"
    },
    {
        "format": "<a href=\"${url}\">${title}</a>",
        "title": "Anchor"
    },
    {
        "format": "[${title}](${url})",
        "title": "Markdown"
    },
    {
        "format": "function({title,url}){return title.toUpperString() + '\\n' + url}",
        "title": "Custom"
    }
]

License

MIT