diff options
author | Adrian Kummerlaender | 2015-08-23 21:55:39 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2015-08-23 21:55:39 +0200 |
commit | 83856240db0d9a815a7bdf8a57356aa573689ab2 (patch) | |
tree | 3a18ad7a9c6ea212320220b6d6ce644331f53719 | |
parent | 9fd6c934d86bbd1f3195c3887d460c5311caa9f7 (diff) | |
download | dotfiles-83856240db0d9a815a7bdf8a57356aa573689ab2.tar dotfiles-83856240db0d9a815a7bdf8a57356aa573689ab2.tar.gz dotfiles-83856240db0d9a815a7bdf8a57356aa573689ab2.tar.bz2 dotfiles-83856240db0d9a815a7bdf8a57356aa573689ab2.tar.lz dotfiles-83856240db0d9a815a7bdf8a57356aa573689ab2.tar.xz dotfiles-83856240db0d9a815a7bdf8a57356aa573689ab2.tar.zst dotfiles-83856240db0d9a815a7bdf8a57356aa573689ab2.zip |
Add reader-mode toggle shortcut
-rw-r--r-- | pentadactyl/.pentadactylrc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pentadactyl/.pentadactylrc b/pentadactyl/.pentadactylrc index 37dc661..3e5ee73 100644 --- a/pentadactyl/.pentadactylrc +++ b/pentadactyl/.pentadactylrc @@ -32,3 +32,12 @@ hi -link=s_normal,s_greenfont,s_grayback Hint hi HintElem background:#a5a5a5; hi Hint[active] background:#aadb0f;color:#161616; hi HintActive background:#aadb0f; + +command! reader -js <<EOF +if ( buffer.URL.spec.startsWith('about:reader?') ) { + dactyl.execute('back') +} else { + dactyl.open('about:reader?url=' + encodeURIComponent(buffer.URL.spec)) +} +EOF +map -builtin -ex <F9> :reader |