aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-04-08 18:53:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-04-08 18:53:51 -0300
commit343f2329f35fc164946c4dda0819ba53414c3bdf (patch)
treed69fd8c367bc09d471f9d7dfe51242bd8dd1a386
parent048cec347545feb941359d1f15bfc53a0811a8f0 (diff)
downloadpentadactyl-343f2329f35fc164946c4dda0819ba53414c3bdf.tar.gz
pentadactyl-343f2329f35fc164946c4dda0819ba53414c3bdf.tar.bz2
More link copy commands
-rw-r--r--pentadactylrc.dot.link9
1 files changed, 9 insertions, 0 deletions
diff --git a/pentadactylrc.dot.link b/pentadactylrc.dot.link
index 9294509..8921d6f 100644
--- a/pentadactylrc.dot.link
+++ b/pentadactylrc.dot.link
@@ -21,6 +21,15 @@ set go+=n
" Thanks to https://github.com/laurentb/public-dotfiles/blob/master/desktop/.pentadactyl/main.penta
command yt :yank :echo document.title.replace(/ - Firefox$/, '');
+" Copy page as a Markdown link
+command ymark :yank :echo '[' + document.title.replace(/ - Firefox$/, '') + '](' + buffer.URL + ')';
+
+" Copy page as a Trac wiki link
+command ytrac :yank :echo '[' + buffer.URL + ' ' + document.title.replace(/ - Firefox$/, '') + ']';
+
+" Copy page for sharing
+command yshare :yank :echo document.title.replace(/ - Firefox$/, '') + ' - ' + buffer.URL;
+
" Open a new tab or the homepage
map e :tabopen about:newtab <CR>
map h gH