aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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