Mercurial > dotfiles
changeset 175:095fb39b2096
Merged changes.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 10 Jul 2014 11:05:19 -0700 |
parents | 393449253540 (current diff) 7b34721d0d3d (diff) |
children | c6a072353606 |
files | vimperatorrc |
diffstat | 1 files changed, 17 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vimperatorrc Thu Jul 10 10:58:36 2014 -0700 +++ b/vimperatorrc Thu Jul 10 11:05:19 2014 -0700 @@ -43,7 +43,7 @@ nnoremap <leader>b :downloads<cr> " Super minimal UI -set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs +"set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs " Websites with useful keyboard shortcuts already ignorekeys add -except=:,J,K,b fastmail.fm @@ -51,4 +51,20 @@ 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 <silent> <F2> :js toggle_ui()<CR> + +: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