vimperator / vimperator-labs

Vimperator
http://vimperator.org
Other
1.19k stars 194 forks source link

:set tabnumbers broken (includes workaround) #785

Open sandwm opened 7 years ago

sandwm commented 7 years ago
Issue type:
Version:
Vimperator: 3.16.0 (created: 2017/02/01 00:55:15)
Firefox:    Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0
Description:

:set tabnumbers does not work. Instead it only creates some black or grey boxes next to the tabs. This happens with the default and the compact theme included in Firefox. Seeing as vimperator won't work in Firefox 57+, I don't really expect a bug fix, but I wanted to share my workaround anyway, in case somebody has the same issue.

Workaround:

In .vimperatorrc:

" show numbers on tabs
" broken
"set tabnumbers

" workaround
" default theme:
style -name fix-tabnumbers-default chrome://browser/content/browser.xul .tabbrowser-tab { counter-increment: tabnumber; } .tab-background-end::after { content: counter(tabnumber); }
styledisable -name=fix-tabnumbers-default
" compact theme:
style -name fix-tabnumbers-compact chrome://browser/content/browser.xul .tabbrowser-tab { counter-increment: tabnumber; } .tab-stack::after { content: counter(tabnumber); position: absolute; top: 0px; color: black; text-shadow: 1px 0 white, 0 1px white; }

Use styledisable to disable the one you don't need. The one for the compact theme is a bit ugly, but the best I could get.