Mercurial > dotfiles
changeset 256:e74cfc5d3040
Merge changes.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 06 Jan 2015 23:23:46 -0800 |
parents | 6afb75039a25 (current diff) ca28da5162f4 (diff) |
children | 3ecf32c893ab |
files | pentadactylrc |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pentadactylrc Tue Jan 06 23:21:53 2015 -0800 +++ b/pentadactylrc Tue Jan 06 23:23:46 2015 -0800 @@ -64,6 +64,31 @@ " Websites with useful keyboard shortcuts already set passkeys+=fastmail.com:jkomxeyga#.rupn,/,<S-g>m,<S-g>c,<S-g>a set passkeys+=feedly.com:jkgvnpm +set passkeys+=feedbin.com:hjklesmvVFcf123456789rgAa?<Space><Esc>,/ set passkeys+=groups.google.com:jkuonp +" Website-specific groups +" Feedbin +group! feedbin -loc feedbin.com +javascript <<EOF +function feedbinScrollUp() { + el = content.document.getElementsByClassName('entries'); + if (el != undefined && el.length > 0) { + el[0].scrollTop -= el[0].clientHeight/2; + } else { + content.console.error("Can't find the entries list. Got: ", el); + } +} +function feedbinScrollDown() { + el = content.document.getElementsByClassName('entries'); + if (el != undefined && el.length > 0) { + el[0].scrollTop += el[0].clientHeight/2; + } else { + content.console.error("Can't find the entries list. Got: ", el); + } +} +EOF +nmap -builtin -js <PageUp> feedbinScrollUp() +nmap -builtin -js <PageDown> feedbinScrollDown() + " vim: ft=vim