{"id":19638978,"url":"https://github.com/savetheclocktower/hyperlink-helper","last_synced_at":"2026-05-15T02:52:25.341Z","repository":{"id":66380760,"uuid":"111363079","full_name":"savetheclocktower/hyperlink-helper","owner":"savetheclocktower","description":"Atom package that wraps selected text in a hyperlink using a URL copied to the clipboard.","archived":false,"fork":false,"pushed_at":"2017-11-28T04:20:50.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T17:55:15.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/savetheclocktower.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-20T04:50:29.000Z","updated_at":"2017-11-20T04:55:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e2e6f6c5-5b00-44e2-adaf-97e11d09f8cb","html_url":"https://github.com/savetheclocktower/hyperlink-helper","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savetheclocktower%2Fhyperlink-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savetheclocktower%2Fhyperlink-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savetheclocktower%2Fhyperlink-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savetheclocktower%2Fhyperlink-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savetheclocktower","download_url":"https://codeload.github.com/savetheclocktower/hyperlink-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240942723,"owners_count":19882265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T12:43:25.238Z","updated_at":"2026-05-15T02:52:25.334Z","avatar_url":"https://github.com/savetheclocktower.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyperlink Helper\n\nAn [Atom](https://atom.io) package for wrapping selected text in a hyperlink. The URL for the hyperlink comes from your clipboard.\n\nInspired by the [similar bundle for TextMate](https://github.com/textmate/hyperlink-helper.tmbundle).\n\n![demo](https://user-images.githubusercontent.com/3450/33003641-997ee3e4-cd81-11e7-8a84-96e71be21404.gif)\n\n## Usage\n\nIn a supported language, highlight the text you want to use as the anchor text, and invoke the **Hyperlink Helper: Insert** command (by default mapped to \u003ckbd\u003eCtrl-Alt-L\u003c/kbd\u003e, or \u003ckbd\u003eCtrl-Opt-L\u003c/kbd\u003e on OS X).\n\nIf your clipboard holds a piece of text that could plausibly be a URL, it'll be used as the `href` for the link. The hyperlink will get inserted as a snippet, and the URL will be highlighted in case you need to type in something. Pressing \u003ckbd\u003eTab\u003c/kbd\u003e will move the cursor to the end of the hyperlink.\n\n### Supported formats\n\nHTML and Markdown are supported out of the box. The package makes an intelligent guess as to which format to use: if the language scope is `source.gfm` or contains the string `markdown`, it'll use the Markdown anchor syntax. Otherwise it'll assume HTML.\n\n### Defining custom formats\n\nIf you need to write in a markup language that uses a different syntax for anchors (Textile, BBCode, JIRA, whatever), you can use [scoped settings](http://flight-manual.atom.io/behind-atom/sections/scoped-settings-scopes-and-scope-descriptors/) to tell Hyperlink Helper about that format.\n\nTo illustrate, here's the built-in format string for HTML:\n\n```\n\u003ca href=\"{{url}}\"\u003e{{text}}\u003c/a\u003e\n```\n\nNothing fancy is going on here. Any occurrence of `{{text}}` in the string will be replaced with the anchor text. Any occurrence of `{{url}}` will be replaced with the URL.\n\nHere's what a format string for Textile would look like:\n\n```\n\"{{text}}\":{{url}}\n```\n\nAnd to define it in Textile files, you'd add this to your `config.cson`:\n\n```cson\n\".text.html.textile\":\n  \"hyperlink-helper\":\n    format: \"\\\"{{text}}\\\":{{url}}\"\n```\n\nIn other words, the command will use any `hyperlink-helper.format` config value it finds for the specific scope. This will supersede the \"guessing\" behavior [described above](#supported-formats), so you **should not** set this key globally in your `config.cson`. Even defining the key for a broad scope selector like `.text` or `.source` is probably not wise.\n\n### Commands\n\nCommand                | Description\n-----------------------|--------------\n`hyperlink-helper:insert` | Inserts an anchor tag using the selected text as the anchor text and the clipboard contents as the URL.\n\n### Keybindings\n\nCommand            | Linux  | OS X  | Windows\n-------------------|--------|-------|----------\n`hyperlink-helper` | \u003ckbd\u003eCtrl-Alt-L\u003c/kbd\u003e | \u003ckbd\u003eCtrl-Opt-L\u003c/kbd\u003e | \u003ckbd\u003eCtrl-Alt-L\u003c/kbd\u003e\n\nCustom keybindings can be added by referencing the above commands.  To learn more, visit the [Using Atom: Basic Customization](https://atom.io/docs/latest/using-atom-basic-customization#customizing-key-bindings) or [Behind Atom: Keymaps In-Depth](https://atom.io/docs/latest/behind-atom-keymaps-in-depth) sections in the flight manual.\n\n## TODO\n\n* Possibly add more formats to the built-in guessing if it turns out I've underestimated the popularity of, say, Textile.\n* Insert a modified snippet if the selection is empty so that the anchor text gets its own tab stop.\n\n## License\n\n[MIT License](http://opensource.org/licenses/MIT) - see the [LICENSE](https://github.com/savetheclocktower/hyperlink-helper/blob/master/LICENSE.md) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavetheclocktower%2Fhyperlink-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavetheclocktower%2Fhyperlink-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavetheclocktower%2Fhyperlink-helper/lists"}