# HG changeset patch # User Ludovic Chabant # Date 1410912066 25200 # Node ID 1ba0daaa8e4e703291f19266c0e1dfa50aa73ce3 # Parent 738c1a3ad7867047dd8faa473f56d1c20128c79d Start using Pentadactyl instead of Vimperator. diff -r 738c1a3ad786 -r 1ba0daaa8e4e install.cmd --- a/install.cmd Thu Sep 11 23:14:59 2014 -0700 +++ b/install.cmd Tue Sep 16 17:01:06 2014 -0700 @@ -36,11 +36,11 @@ copy "%CWD%git\gitconfig" "%userprofile%\.gitconfig" :: Web Browser -if exist "%userprofile%\_vimperatorrc" ( - set /P confirm=Will delete existing "%userprofile%\_vimperatorrc". OK with that? Press CTRL-C to abort. - del /Q "%userprofile%\_vimperatorrc" +if exist "%userprofile%\_pentadactylrc" ( + set /P confirm=Will delete existing "%userprofile%\_pentadactylrc". OK with that? Press CTRL-C to abort. + del /Q "%userprofile%\_pentadactylrc" ) -echo source %CWD:\=/%vimperatorrc > "%userprofile%\_vimperatorrc" +echo source %CWD:\=/%pentadactylrc > "%userprofile%\_pentadactylrc" :: Console 2 if exist "%appdata%\Console\console.xml" ( diff -r 738c1a3ad786 -r 1ba0daaa8e4e install.sh --- a/install.sh Thu Sep 11 23:14:59 2014 -0700 +++ b/install.sh Tue Sep 16 17:01:06 2014 -0700 @@ -27,5 +27,5 @@ # WEB BROWSER # ----------- -ln -s "$CWD/vimperatorrc" "$HOME/.vimperatorrc" +ln -s "$CWD/pentadactylrc" "$HOME/.pentadactylrc" diff -r 738c1a3ad786 -r 1ba0daaa8e4e pentadactylrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pentadactylrc Tue Sep 16 17:01:06 2014 -0700 @@ -0,0 +1,58 @@ +" 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 + +" Quickly open some dialogs +nmap -builtin ,b :downloads + +set defsearch=duckduckgo + +" Super minimal UI +"set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs + +" Websites with useful keyboard shortcuts already +set passkeys+=fastmail.fm:jkx.rupn +set passkeys+=feedly.com:jkgv + +" vim: ft=vim diff -r 738c1a3ad786 -r 1ba0daaa8e4e uninstall.cmd --- a/uninstall.cmd Thu Sep 11 23:14:59 2014 -0700 +++ b/uninstall.cmd Tue Sep 16 17:01:06 2014 -0700 @@ -7,3 +7,5 @@ del "%userprofile%\_vimrc" del "%userprofile%\mercurial.ini" del "%userprofile%\.gitconfig" +del "%userprofile%\_pentadactylrc" + diff -r 738c1a3ad786 -r 1ba0daaa8e4e uninstall.sh --- a/uninstall.sh Thu Sep 11 23:14:59 2014 -0700 +++ b/uninstall.sh Tue Sep 16 17:01:06 2014 -0700 @@ -6,4 +6,5 @@ rm $HOME/.vimrc rm $HOME/.hgrc rm $HOME/.gitconfig +rm $HOME/.pentadactylrc diff -r 738c1a3ad786 -r 1ba0daaa8e4e vimperatorrc --- a/vimperatorrc Thu Sep 11 23:14:59 2014 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ -" Config for Vimperator - -let mapleader="," - -" Scroll faster -nnoremap h 3h -nnoremap j 3j -nnoremap k 3k -nnoremap l 3l - -" Scroll easier -nnoremap d -nnoremap e - -" Close tab with `x` since `d` is for scrolling down now -nnoremap x :bd - -" Change tabs without awkward `CTRL` combinations -nnoremap J :tabprevious -nnoremap K :tabnext - -" Reorder tabs -nnoremap > :tabmove +1 -nnoremap < :tabmove -1 - -"New tab using the old classic way -nnoremap :tabnew - -" Use `i` to get into a persistent insert mode, -" and `I` for the quick one. -nnoremap i -nnoremap I i - -" Shortcuts for common extensions -nnoremap f i -nnoremap p -nnoremap b I - -" Quickly hide search highlighting -nnoremap :noh - -" Quickly open some dialogs -nnoremap b :downloads - -" Super minimal UI -"set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs - -" Websites with useful keyboard shortcuts already -ignorekeys add -except=:,J,K,b fastmail.fm -ignorekeys add -except=:,J,K,b feedly.com -ignorekeys add -except=:,J,K,b mnmlrdr.com -ignorekeys add -except=:,J,K,b newsblur.com - -" The new Firefox fucked up vimperator's ability to hide -" things. Let's do it ourselves for now. -map :js toggle_ui() - -:js << EOF -function toggle_ui() { - var nb = document.getElementById('nav-bar'); - nb.style.visibility = (nb.style.visibility == '') ? 'collapse' : ''; - nb.style.overflow = (nb.style.height == '') ? '' : 'hidden'; - - var tb = document.getElementById('TabsToolbar'); - tb.style.visibility = (tb.style.visibility == '') ? 'hidden' : ''; - } -toggle_ui(); -EOF - -" vim: ft=vim