# HG changeset patch # User Ludovic Chabant # Date 1429659018 25200 # Node ID 9056a39ef016623cc8a9144e882e4bca142119c4 # Parent 875857ed800453572642c409381c62d471afb063 Move `pentadactylrc` to a subfolder, update install scripts. diff -r 875857ed8004 -r 9056a39ef016 install.cmd --- a/install.cmd Mon Apr 20 09:36:49 2015 -0700 +++ b/install.cmd Tue Apr 21 16:30:18 2015 -0700 @@ -47,7 +47,8 @@ set /P confirm=Will delete existing "%userprofile%\_pentadactylrc". OK with that? Press CTRL-C to abort. del /Q "%userprofile%\_pentadactylrc" ) -echo source %CWD:\=/%pentadactylrc > "%userprofile%\_pentadactylrc" +echo set runtimepath=~/.pentadactyl,%CWD:\=/%pentadactyl > "%userprofile%\_pentadactylrc" +echo source %CWD:\=/%pentadactyl/pentadactylrc >> "%userprofile%\_pentadactylrc" :: Console 2 if exist "%appdata%\Console\console.xml" ( diff -r 875857ed8004 -r 9056a39ef016 install.sh --- a/install.sh Mon Apr 20 09:36:49 2015 -0700 +++ b/install.sh Tue Apr 21 16:30:18 2015 -0700 @@ -38,7 +38,8 @@ # WEB BROWSER # ----------- -ln -s "$CWD/pentadactylrc" "$HOME/.pentadactylrc" +echo set runtimepath=~/.pentadactyl,$CWD/pentadactyl > "$HOME/.pentadactylrc" +echo source "$CWD/pentadactyl/pentadactylrc" >> "$HOME/.pentadactylrc" # TMUX # ---- diff -r 875857ed8004 -r 9056a39ef016 pentadactyl/pentadactylrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pentadactyl/pentadactylrc Tue Apr 21 16:30:18 2015 -0700 @@ -0,0 +1,103 @@ +" Config for Pentadactyl + +" Scroll faster +nmap -builtin h 3h +nmap -builtin j 3j +nmap -builtin k 3k +nmap -builtin l 3l + +" Scroll easier +nmap -builtin d +nmap -builtin e + +" Close tab with `x` since `d` is for scrolling down now +nmap -builtin x :bd + +" Don't close the window with the last tab. +set! browser.tabs.closeWindowWithLastTab=false + +" Change tabs without awkward `CTRL` combinations +nmap -builtin J :tabprevious +nmap -builtin K :tabnext + +" Reorder tabs +nmap -builtin > :tabmove! +1 +nmap -builtin < :tabmove! -1 + +"New tab using the old classic way +nmap -builtin :tabnew + +" Use `i` to get into pass-through mode, +" `I` for temporary pass-through mode, +" and `c` for the 'caret' mode. +nmap -builtin i +nmap -builtin I +nmap -builtin c i + +" Shortcuts for common extensions +nmap -builtin ,f i +nmap -builtin ,p +nmap -builtin ,b I + +" Use and quickly hide search highlighting +set hlfind +nmap -builtin , :noh + +" Aw come on, copy/pasting is ridiculous by default. +map -builtin -modes=i,c,v +map -builtin -modes=i,c +map -builtin -modes=i,c + +" Quickly open some dialogs +nmap -builtin ,b :downloads + +" On keyboards like the Leopold FC660C, for some obscure reason, the +" key sends the ID. WTF. +noremap + +" DDG FTW +set defsearch=duckduckgo + +" Super minimal UI +"set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs + +" Websites with useful keyboard shortcuts already +set passkeys+=fastmail.com:jkomxeyga#.rupn,/,m,c,a +set passkeys+=feedly.com:jkgvnpm +set passkeys+=feedbin.com:hjklesmvVFcf123456789rgAa?,/ +set passkeys+=groups.google.com:jkuonp + +" Plugins +loadplugins '\.(js|penta)$' +set pintaboardToken="ludovicchabant:04A05605C553E70CDA2A" + +javascript < 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 feedbinScrollUp() +nmap -builtin -js feedbinScrollDown() + +" vim: ft=vim diff -r 875857ed8004 -r 9056a39ef016 pentadactylrc --- a/pentadactylrc Mon Apr 20 09:36:49 2015 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -" Config for Pentadactyl - -" Scroll faster -nmap -builtin h 3h -nmap -builtin j 3j -nmap -builtin k 3k -nmap -builtin l 3l - -" Scroll easier -nmap -builtin d -nmap -builtin e - -" Close tab with `x` since `d` is for scrolling down now -nmap -builtin x :bd - -" Don't close the window with the last tab. -set! browser.tabs.closeWindowWithLastTab=false - -" Change tabs without awkward `CTRL` combinations -nmap -builtin J :tabprevious -nmap -builtin K :tabnext - -" Reorder tabs -nmap -builtin > :tabmove! +1 -nmap -builtin < :tabmove! -1 - -"New tab using the old classic way -nmap -builtin :tabnew - -" Use `i` to get into pass-through mode, -" `I` for temporary pass-through mode, -" and `c` for the 'caret' mode. -nmap -builtin i -nmap -builtin I -nmap -builtin c i - -" Shortcuts for common extensions -nmap -builtin ,f i -nmap -builtin ,p -nmap -builtin ,b I - -" Use and quickly hide search highlighting -set hlfind -nmap -builtin , :noh - -" Aw come on, copy/pasting is ridiculous by default. -map -builtin -modes=i,c,v -map -builtin -modes=i,c -map -builtin -modes=i,c - -" Quickly open some dialogs -nmap -builtin ,b :downloads - -" On keyboards like the Leopold FC660C, for some obscure reason, the -" key sends the ID. WTF. -noremap - -" DDG FTW -set defsearch=duckduckgo - -" Super minimal UI -"set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs - -" Websites with useful keyboard shortcuts already -set passkeys+=fastmail.com:jkomxeyga#.rupn,/,m,c,a -set passkeys+=feedly.com:jkgvnpm -set passkeys+=feedbin.com:hjklesmvVFcf123456789rgAa?,/ -set passkeys+=groups.google.com:jkuonp - -" Website-specific groups -" Feedbin -group! feedbin -loc feedbin.com -javascript < 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 feedbinScrollUp() -nmap -builtin -js feedbinScrollDown() - -" vim: ft=vim