URL Mangler
VS Code extension that formats highlighted URLs in the text editor.
Features
Recognises URLs for:
- Confluence
- Javadoc URLs (handling triggers when the url contains 'javadoc')
- JIRA
- SharePoint URLs
- And can be used on other sites. YMMV.
Detection of:
- URL fragments which link to a section within the page. The section title is extracted as part of the display name.
Extracts display names to the following formats:
Format |
Pattern |
Comments |
Display name only |
{display name} |
Extracts just the display name only without the URL |
HTML href |
<a href="{display name}">{url}</a> |
Extracts as a HTML <a> anchor tag. Note this is plain text, not text/html. See Known Issues section below. |
JIRA text syntax |
[{display name}\|{url}] |
Extracts to JIRA's text syntax |
Markdown |
[{display name}](https://github.com/andcho09/MangleUrl/blob/HEAD/{url}) |
Extracts to Markdown syntax |
Known Issues
HTML href output
The HTML href output format updates the clipboard with text/plain content. This should be text/html but VS Code's Clipboard API only allows you to write plain text. This could change if issue 141704 is accepted although 163240 was closed because of incomplete browser compatibility for Clipboard#write.
Release Notes
0.0.5 - 2023-09-20
Decode URI components, e.g. %3A = : , %28 = (
0.0.4 - 2023-08-01
Added detection of Confluence URLs in /viewpage.action?spaceKey=...&title=... format.
0.0.3 - 2023-07-30
Added detection and handling of:
- Confluence server URLs
- Javadoc URLs (handling triggers when the url contains 'javadoc')
- SharePoint URLs
0.0.2 - 2023-07-15
Initial release onto VS Code Marketplace
| |