An Alfred workflow to paste beautiful markdown links. It works especially well when formatting Jira, GitHub, and GitLab links.
https://github.com/xavdid/typed-install/pull/3
becomes
[xavdid/typed-install#3](https://github.com/xavdid/typed-install/pull/3)
With a link on your clipboard, type ;pr
. Your cursor will type a nice markdown link! The trigger shortcut is configurable in the workflow's settings:
You can also have a Jira project tag on the clipboard. Super Paste-ing ABC-123
results in [ABC-123](https://test.atlassian.net/browse/ABC-123)
. The exact Jira url is configurable.
If your clipboard doesn't have a link on it, the text is pasted normally.
See releases for the latest .alfredworkflow
file. Download that, then double click on it to open the file in Alfred.
Pasting a link from the following sites results in "smart" behavior:
Because Super Paste
is a Python script under the hood, configuration also requires a writing a bit of Python. To edit that file:
- Install the workflow (see installation)
- Invoke Alfred and type
?super
; this will bring you to the workflow's settings - Right-click on the workflow and click
Open in Finder
(screenshot) - Open the
config.py
file in an editor of your choice. - Read through that file - it tells you exactly how to alter it and what the functions expect you to return.
- ❗ IMPORTANT: after saving your edits to the file, copy the entire thing and save it somewhere else (Dropbox, a Gist, etc). Every time you re-install the workflow, that file gets overwritten with the default. Saving the edited
config.py
file means you'll be able to easily repeat these steps to restore your configuration after updates.
- Update the
version
key in theplist
(towards the bottom) - Update code w/ changes
- Once done, update the
CHANGELOG.md
- run
./bin/release
- push!