xavdid / super_paste

An Alfred Workflow to paste links as beautifully-formatted markdown.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Super Paste

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)

Usage

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.

Install

See releases for the latest .alfredworkflow file. Download that, then double click on it to open the file in Alfred.

Supported Sites

Pasting a link from the following sites results in "smart" behavior:

Configuration

Because Super Paste is a Python script under the hood, configuration also requires a writing a bit of Python. To edit that file:

  1. Install the workflow (see installation)
  2. Invoke Alfred and type ?super; this will bring you to the workflow's settings
  3. Right-click on the workflow and click Open in Finder (screenshot)
  4. Open the config.py file in an editor of your choice.
  5. Read through that file - it tells you exactly how to alter it and what the functions expect you to return.
  6. 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.

Contributing

Development & Releases

  1. Update the version key in the plist (towards the bottom)
  2. Update code w/ changes
  3. Once done, update the CHANGELOG.md
  4. run ./bin/release
  5. push!

About

An Alfred Workflow to paste links as beautifully-formatted markdown.


Languages

Language:Python 97.3%Language:Shell 2.7%