In Firefox 56, how can I quickly copy a URL in the markdown format?
[title](url)
In theory, VimFx should work, but it doesn't, so I either want to find what's wrong or another method to do this.
In Firefox 56, how can I quickly copy a URL in the markdown format?
[title](url)
In theory, VimFx should work, but it doesn't, so I either want to find what's wrong or another method to do this.
[title](url)
?You can use the Copy as Markdown extension.
Copy as Markdown is a browser extension helps you copy the following things as Markdown to your system clipboard:
- ☑️ Current Tab as Link
- ☑️ A Link in the Page
- ☑️ An Image in the Page
- ☑️ An Image that is wrapped with a Link
- ☑️ All Tabs as a List of Links
- ☑️ Highlighted Tabs as a List of Links
Source chitsaou/copy-as-markdown: Copying Link, Image and Tab(s) as Markdown Much Easier.
Screenshot:
Review:
You can save the following script as bookmark
javascript:(function(){%20window.prompt("Press%20Ctrl+C%20then%20Enter%20to%20close%20the%20dialog",'['%20+%20document.title%20+%20']('%20+%20document.location.href%20+%20')');%20})();
then assign a keyword to it (like c
). Now every time you want to copy just select the address bar, press c and Enter. This doesn't need any add-on
You can also open the console with F12 then run this
window.prompt("Press Ctrl+C then Enter to close the dialog", '[' + document.title + '](' + document.location.href + ')');
Features:
You can read more at its wiki. It isn't compatible with Firefox Quantum unfortunately.
Copy URL To Clipboard is a good replacement for Firefox Quantum.
You can assign shortcuts in the addon page
There are other similar addons (Keyboard Control for Firefox, Text Linky Tool, Format Link), but their HTML output is just the code, not true hyperlink.
The awesome Tridactyl
extension has the keybinding ym
for "yank markdown", which does exactly this. It might be overkill for this single piece of functionality, but since the original question mentions VimFX
, people here might also be interested in the other features it provides.