1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 01:57:59 +01:00

Add :toolbar* commands to Vim RC file highlighters.

This commit is contained in:
Doug Kearns
2009-07-23 00:30:24 +10:00
parent 842dd61f4c
commit 8db6944017
8 changed files with 46 additions and 19 deletions

View File

@@ -675,13 +675,13 @@ const liberator = (function () //{{{
});
}
tbcmd(["toolbarshow", "tbshow"], "Show the named toolbar",
tbcmd(["toolbars[how]", "tbs[how]"], "Show the named toolbar",
function (toolbar) toolbar.collapsed = false,
function (item) item.item.collapsed);
tbcmd(["toolbarhide", "tbhide"], "Hide the named toolbar",
tbcmd(["toolbarh[ide]", "tbh[ide]"], "Hide the named toolbar",
function (toolbar) toolbar.collapsed = true,
function (item) !item.item.collapsed);
tbcmd(["toolbartoggle", "tbtoggle"], "Toggle the named toolbar",
tbcmd(["toolbart[oggle]", "tbt[oggle]"], "Toggle the named toolbar",
function (toolbar) toolbar.collapsed = !toolbar.collapsed);
}

View File

@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Muttator configuration file
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2009 Jul 15
" Last Change: 2009 Jul 22
" TODO: make this muttator specific - shared liberator config?
@@ -30,8 +30,9 @@ syn keyword muttatorCommand ab[breviate] ab[clear] addo[ns] addr[essbook] bN[ext
\ mno[remap] move[to] mu[nmap] nm[ap] nmapc[lear] nno[remap] no[remap] norm[al] nu[nmap] optionu[sage] pa[geinfo] pagest[yle]
\ pas pc[lose] pl[ay] pref[erences] prefs pw[d] q[uit] re[load] res[tart] run runt[ime] sav[eas] scrip[tnames] se[t]
\ setg[lobal] setl[ocal] sil[ent] so[urce] st[op] sty[le] tN[ext] t[open] tab tabN[ext] tabc[lose] tabd[o] tabfir[st]
\ tabl[ast] tabn[ext] tabp[revious] tabr[ewind] time tn[ext] tp[revious] una[bbreviate] unl[et] unm[ap] ve[rsion] vie[wsource]
\ viu[sage] vm[ap] vmapc[lear] vno[remap] vu[nmap] w[rite] zo[om]
\ tabl[ast] tabn[ext] tabp[revious] tabr[ewind] tbh[ide] tbs[how] tbt[oggle] time tn[ext] toolbarh[ide] toolbars[how]
\ toolbart[oggle] tp[revious] una[bbreviate] unl[et] unm[ap] ve[rsion] vie[wsource] viu[sage] vm[ap] vmapc[lear] vno[remap]
\ vu[nmap] w[rite] zo[om]
\ contained
syn match muttatorCommand "!" contained

View File

@@ -1,7 +1,7 @@
" Vim syntax file
" Language: VIMperator configuration file
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2009 Jul 9
" Last Change: 2009 Jul 22
" TODO: make this vimperator specific - shared liberator config?
@@ -31,9 +31,10 @@ syn keyword vimperatorCommand ab[breviate] ab[clear] addo[ns] bN[ext] b[uffer] b
\ pagest[yle] pas pc[lose] pl[ay] pref[erences] prefs pw[d] q[uit] qa[ll] qma[rk] qmarks quita[ll] re[draw] re[load]
\ reloada[ll] res[tart] run runt[ime] sav[eas] sb[ar] sb[open] sbcl[ose] scrip[tnames] se[t] setg[lobal] setl[ocal] sideb[ar]
\ sil[ent] so[urce] st[op] stopa[ll] sty[le] tN[ext] t[open] tab tabN[ext] tabc[lose] tabd[o] tabde[tach] tabdu[plicate]
\ tabe[dit] tabfir[st] tabl[ast] tabm[ove] tabn[ext] tabnew tabo[nly] tabopen tabp[revious] tabr[ewind] tabs time tn[ext]
\ tp[revious] u[ndo] una[bbreviate] undoa[ll] unl[et] unm[ap] ve[rsion] vie[wsource] viu[sage] vm[ap] vmap[clear] vno[remap]
\ vu[nmap] w[rite] wc[lose] win[open] winc[lose] wine[dit] wo[pen] wq wqa[ll] xa[ll] zo[om]
\ tabe[dit] tabfir[st] tabl[ast] tabm[ove] tabn[ext] tabnew tabo[nly] tabopen tabp[revious] tabr[ewind] tabs tbh[ide] tbs[how]
\ tbt[oggle] time tn[ext] toolbarh[ide] toolbars[how] toolbart[oggle] tp[revious] u[ndo] una[bbreviate] undoa[ll] unl[et]
\ unm[ap] ve[rsion] vie[wsource] viu[sage] vm[ap] vmap[clear] vno[remap] vu[nmap] w[rite] wc[lose] win[open] winc[lose]
\ wine[dit] wo[pen] wq wqa[ll] xa[ll] zo[om]
\ contained
syn match vimperatorCommand "!" contained

View File

@@ -140,23 +140,24 @@ standard Firefox View->Sidebar menu. Add-ons, Preferences and Downloads are
also available in the sidebar.
________________________________________________________________________________
|:tbshow| |:toolbarshow| +
section:Toolbars[toolbar]
|:tbs| |:tbshow| |:toolbars| |:toolbarshow| +
||:toolbarshow {name}||
________________________________________________________________________________
Shows the named toolbar.
________________________________________________________________________________
|:tbhide| |:toolbarhide| +
|:tbh| |:tbhide| |:toolbarh| |:toolbarhide| +
||:toolbarhide {name}||
________________________________________________________________________________
Hides the named toolbar.
________________________________________________________________________________
|:tbtoggle| |:toolbartoggle| +
|:tbt| |:tbtoggle| |:toolbart| |:toolbartoggle| +
||:toolbartoggle {name}||
________________________________________________________________________________
Toggles the named toolbar.
________________________________________________________________________________
// vim: set filetype=asciidoc:

View File

@@ -258,8 +258,8 @@ section:Ex{nbsp}commands[ex-cmd-index,:index]
||[c]:tabprevious[c]|| Switch to the previous tab or go [count] tabs back +
||[c]:tabrewind[c]|| Switch to the first tab +
||[c]:time[c]|| Profile a piece of code or run a command multiple times +
||[c]toolbarshow[c]|| Show the named toolbar +
||[c]toolbarhide[c]|| Hide the named toolbar +
||[c]toolbarshow[c]|| Show the named toolbar +
||[c]toolbartoggle[c]|| Toggle the named toolbar +
||[c]:unabbreviate[c]|| Remove an abbreviation +
||[c]:undo[c]|| Undo closing of a tab +

View File

@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Xulmus configuration file
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2009 Jul 9
" Last Change: 2009 Jul 22
" TODO: make this xulmus specific - shared liberator config?
@@ -33,9 +33,10 @@ syn keyword xulmusCommand ab[breviate] ab[clear] addo[ns] bN[ext] b[uffer] ba[ck
\ pw[d] q[uit] qa[ll] qma[rk] qmarks queue quita[ll] re[draw] re[load] reloada[ll] res[tart] run runt[ime] sav[eas] sb[ar]
\ sb[open] sbcl[ose] scrip[tnames] se[t] see[k] setg[lobal] setl[ocal] sideb[ar] sil[ent] sort[view] so[urce] st[op] stopa[ll]
\ sty[le] tN[ext] t[open] tab tabN[ext] tabc[lose] tabd[o] tabde[tach] tabdu[plicate] tabe[dit] tabfir[st] tabl[ast] tabm[ove]
\ tabn[ext] tabnew tabo[nly] tabopen tabp[revious] tabr[ewind] tabs time tn[ext] tp[revious] u[ndo] una[bbreviate] undoa[ll]
\ unl[et] unm[ap] ve[rsion] vie[wsource] viu[sage] vm[ap] vmap[clear] vno[remap] vol[ume] vu[nmap] w[rite] wc[lose] win[open]
\ winc[lose] wine[dit] wo[pen] wq wqa[ll] xa[ll] zo[om]
\ tabn[ext] tabnew tabo[nly] tabopen tabp[revious] tabr[ewind] tabs tbh[ide] tbs[how] tbt[oggle] time tn[ext] toolbarh[ide]
\ toolbars[how] toolbart[oggle] tp[revious] u[ndo] una[bbreviate] undoa[ll] unl[et] unm[ap] ve[rsion] vie[wsource] viu[sage]
\ vm[ap] vmap[clear] vno[remap] vol[ume] vu[nmap] w[rite] wc[lose] win[open] winc[lose] wine[dit] wo[pen] wq wqa[ll] xa[ll]
\ zo[om]
\ contained
syn match xulmusCommand "!" contained

View File

@@ -135,4 +135,24 @@ Open the specified display pane. {pane} is any of "service pane left", "service
pane bottom", "content pane bottom" or "right sidebar".
________________________________________________________________________________
section:Toolbars[toolbar]
|:tbs| |:tbshow| |:toolbars| |:toolbarshow| +
||:toolbarshow {name}||
________________________________________________________________________________
Shows the named toolbar.
________________________________________________________________________________
|:tbh| |:tbhide| |:toolbarh| |:toolbarhide| +
||:toolbarhide {name}||
________________________________________________________________________________
Hides the named toolbar.
________________________________________________________________________________
|:tbt| |:tbtoggle| |:toolbart| |:toolbartoggle| +
||:toolbartoggle {name}||
________________________________________________________________________________
Toggles the named toolbar.
________________________________________________________________________________
// vim: set filetype=asciidoc:

View File

@@ -304,6 +304,9 @@ section:Ex{nbsp}commands[ex-cmd-index,:index]
||[c]:tabprevious[c]|| Switch to the previous tab or go [count] tabs back +
||[c]:tabrewind[c]|| Switch to the first tab +
||[c]:time[c]|| Profile a piece of code or run a command multiple times +
||[c]toolbarhide[c]|| Hide the named toolbar +
||[c]toolbarshow[c]|| Show the named toolbar +
||[c]toolbartoggle[c]|| Toggle the named toolbar +
||[c]:unabbreviate[c]|| Remove an abbreviation +
||[c]:undo[c]|| Undo closing of a tab +
||[c]:undoall[c]|| Undo closing of all closed tabs +