diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-04-08 18:53:51 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-04-08 18:53:51 -0300 |
commit | 343f2329f35fc164946c4dda0819ba53414c3bdf (patch) | |
tree | d69fd8c367bc09d471f9d7dfe51242bd8dd1a386 | |
parent | 048cec347545feb941359d1f15bfc53a0811a8f0 (diff) | |
download | pentadactyl-343f2329f35fc164946c4dda0819ba53414c3bdf.tar.gz pentadactyl-343f2329f35fc164946c4dda0819ba53414c3bdf.tar.bz2 |
More link copy commands
-rw-r--r-- | pentadactylrc.dot.link | 9 |
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 |