-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to copy link with title in markdown format? #906
Comments
You can steal this custom command: vimfx.addCommand({
name: 'copy_markdown',
description: 'Copy as markdown link',
category: 'location',
}, ({vim}) => {
let url = vim.window.gBrowser.selectedBrowser.currentURI.spec
let title = vim.window.gBrowser.selectedBrowser.contentTitle
let fmt = "["+title+"]("+url+")"
gClipboardHelper.copyString(fmt)
vim.notify("Copied String: "+ fmt)
}); |
It doesn't change how Testing on this very page:
I've edited the Custom Commands. |
The tutorial you link to says:
And the above link goes to:
Is that what you're looking for? |
The new command doesn't appear in the panel until I restart Firefox. It works, thanks. |
Ahw, sad to hear it's working so badly for you :( I hope you'll figure it out. |
I really like to have this worked. Do you know where should I investigate this? |
If I were you I wouldn't spend time on this. VimFx is dead. |
If you're still sad for its death, then let me be sad with you. If you're now feeling thankful for what it had brought to you, then let me share feeling 😄
Another question: would you think it's worth to keep using the old Firefox? I miss this add-on and Tree Style Tab. The new TST addon can't move top tab bar to side bar and semi-hide it, without having the userChrome.css customized. But it is not guaranteed to work in future versions and "may lead to hard-to-diagnose bugs or crashes".
|
I'd like to have
[title](url)
be copied instead of bareurl
whenyy
is pressed. Any thoughts?Edit: I have asked this on Super User
The text was updated successfully, but these errors were encountered: