aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-06-10 12:21:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-06-10 12:21:59 -0300
commit14472f217512b16fb9527502224df9aba7e80ed5 (patch)
tree4aff5899abfe1764a8a9e608389d7252355033fb
parentc6654d4804427a8fc2f0576c3fca96f4f617c323 (diff)
downloadvimperator-14472f217512b16fb9527502224df9aba7e80ed5.tar.gz
vimperator-14472f217512b16fb9527502224df9aba7e80ed5.tar.bz2
Copy page as HTML link
-rw-r--r--vimperatorrc.dot.link3
1 files changed, 3 insertions, 0 deletions
diff --git a/vimperatorrc.dot.link b/vimperatorrc.dot.link
index 38c5a0a..cd9a409 100644
--- a/vimperatorrc.dot.link
+++ b/vimperatorrc.dot.link
@@ -30,6 +30,9 @@ map yr :js util.copyToClipboard('[' + content.document.location + ' ' + content.
" Copy page for sharing
map ys :js util.copyToClipboard(content.document.title + ' - ' + content.document.location, true)<cr>
+" Copy page as HTML link
+map yh :js util.copyToClipboard('<a href="' + content.document.location + '">' + content.document.title + '</a>', true)<cr>
+
" Open a new tab or the homepage
map e :tabopen about:newtab<cr>
map h gH