mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-03 18:35:46 +01:00
Add :verbose.
This commit is contained in:
@@ -794,6 +794,30 @@ const liberator = (function () //{{{
|
|||||||
literal: 0
|
literal: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
|
commands.add(["verb[ose]"],
|
||||||
|
"Execute a command with 'verbose' set",
|
||||||
|
function (args)
|
||||||
|
{
|
||||||
|
let vbs = options.get("verbose");
|
||||||
|
let value = vbs.value;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
vbs.set(args.count > -1 ? args.count : 1);
|
||||||
|
liberator.execute(args[0], null, true);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
vbs.set(value);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
argCount: "+",
|
||||||
|
completer: function (context) completion.ex(context),
|
||||||
|
count: true,
|
||||||
|
literal: 0
|
||||||
|
});
|
||||||
|
|
||||||
commands.add(["ve[rsion]"],
|
commands.add(["ve[rsion]"],
|
||||||
"Show version information",
|
"Show version information",
|
||||||
function (args)
|
function (args)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Muttator configuration file
|
" Language: Muttator configuration file
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2009 Aug 3
|
" Last Change: 2009 Aug 23
|
||||||
|
|
||||||
" TODO: make this muttator specific - shared liberator config?
|
" TODO: make this muttator specific - shared liberator config?
|
||||||
|
|
||||||
@@ -31,8 +31,8 @@ syn keyword muttatorCommand ab[breviate] ab[clear] addo[ns] addr[essbook] bN[ext
|
|||||||
\ 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]
|
\ 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]
|
\ 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] tbh[ide] tbs[how] tbt[oggle] time tn[ext] toolbarh[ide] toolbars[how]
|
\ 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]
|
\ toolbart[oggle] tp[revious] una[bbreviate] unl[et] unm[ap] verb[ose] ve[rsion] vie[wsource] viu[sage] vm[ap] vmapc[lear]
|
||||||
\ vu[nmap] w[rite] zo[om]
|
\ vno[remap] vu[nmap] w[rite] zo[om]
|
||||||
\ contained
|
\ contained
|
||||||
|
|
||||||
syn match muttatorCommand "!" contained
|
syn match muttatorCommand "!" contained
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
(this might change again, as this is REALLY inconsistent, and i don't
|
(this might change again, as this is REALLY inconsistent, and i don't
|
||||||
know if I like copying bugs)
|
know if I like copying bugs)
|
||||||
|
|
||||||
|
* add [c]:verbose[c]
|
||||||
* add [c]:window[c] to run a command in a new window
|
* add [c]:window[c] to run a command in a new window
|
||||||
* add ! version of :delbmarks to delete all bookmarks.
|
* add ! version of :delbmarks to delete all bookmarks.
|
||||||
* new "t" option for 'complete' to also switch to open tabs with :open
|
* new "t" option for 'complete' to also switch to open tabs with :open
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: VIMperator configuration file
|
" Language: VIMperator configuration file
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2009 Aug 10
|
" Last Change: 2009 Aug 23
|
||||||
|
|
||||||
" TODO: make this vimperator specific - shared liberator config?
|
" TODO: make this vimperator specific - shared liberator config?
|
||||||
|
|
||||||
@@ -33,8 +33,8 @@ syn keyword vimperatorCommand ab[breviate] ab[clear] addo[ns] bN[ext] b[uffer] b
|
|||||||
\ 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]
|
\ 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
|
\ tabdu[plicate] 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]
|
\ 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]
|
\ undoa[ll] unl[et] unm[ap] verb[ose] ve[rsion] vie[wsource] viu[sage] vm[ap] vmap[clear] vno[remap] vu[nmap] w[rite] wc[lose]
|
||||||
\ winc[lose] wind[ow] wine[dit] wo[pen] wq wqa[ll] xa[ll] zo[om]
|
\ win[open] winc[lose] wind[ow] wine[dit] wo[pen] wq wqa[ll] xa[ll] zo[om]
|
||||||
\ contained
|
\ contained
|
||||||
|
|
||||||
syn match vimperatorCommand "!" contained
|
syn match vimperatorCommand "!" contained
|
||||||
|
|||||||
@@ -268,6 +268,7 @@ section::Ex{nbsp}commands[ex-cmd-index,:index]
|
|||||||
||[c]:undoall[c]|| Undo closing of all closed tabs +
|
||[c]:undoall[c]|| Undo closing of all closed tabs +
|
||||||
||[c]:unlet[c]|| Delete a variable +
|
||[c]:unlet[c]|| Delete a variable +
|
||||||
||[c]:unmap[c]|| Remove a mapping +
|
||[c]:unmap[c]|| Remove a mapping +
|
||||||
|
||[c]:verbose[c]|| Execute a command with 'verbose' set +
|
||||||
||[c]:version[c]|| Show version information +
|
||[c]:version[c]|| Show version information +
|
||||||
||[c]:viewsource[c]|| View source code of current document +
|
||[c]:viewsource[c]|| View source code of current document +
|
||||||
||[c]:viusage[c]|| List all mappings with a short description +
|
||[c]:viusage[c]|| List all mappings with a short description +
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ ________________________________________________________________________________
|
|||||||
Redraws the screen. Useful to update the screen halfway executing a script or function.
|
Redraws the screen. Useful to update the screen halfway executing a script or function.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|:norm| |:normal|
|
|:norm| |:normal|
|
||||||
||:norm[al][!] {commands}|| +
|
||:norm[al][!] {commands}|| +
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
@@ -55,6 +56,14 @@ history.
|
|||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|:verb| |:verbose +
|
||||||
|
||:[count]verb[ose] {command}||
|
||||||
|
________________________________________________________________________________
|
||||||
|
Execute a command with 'verbose' set to [count]. If [count] is not specified
|
||||||
|
then 1 is used as the value.
|
||||||
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|:ve| |:version| +
|
|:ve| |:version| +
|
||||||
||:ve[rsion][!]||
|
||:ve[rsion][!]||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Xulmus configuration file
|
" Language: Xulmus configuration file
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2009 Aug 3
|
" Last Change: 2009 Aug 23
|
||||||
|
|
||||||
" TODO: make this xulmus specific - shared liberator config?
|
" TODO: make this xulmus specific - shared liberator config?
|
||||||
|
|
||||||
@@ -35,8 +35,8 @@ syn keyword xulmusCommand ab[breviate] ab[clear] addo[ns] bN[ext] b[uffer] ba[ck
|
|||||||
\ 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]
|
\ 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 tbh[ide] tbs[how]
|
\ 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]
|
\ 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]
|
\ unm[ap] verb[ose] ve[rsion] vie[wsource] viu[sage] vm[ap] vmap[clear] vno[remap] vol[ume] vu[nmap] w[rite] wc[lose]
|
||||||
\ winc[lose] wine[dit] wo[pen] wq wqa[ll] xa[ll] zo[om]
|
\ win[open] winc[lose] wine[dit] wo[pen] wq wqa[ll] xa[ll] zo[om]
|
||||||
\ contained
|
\ contained
|
||||||
|
|
||||||
syn match xulmusCommand "!" contained
|
syn match xulmusCommand "!" contained
|
||||||
|
|||||||
@@ -314,6 +314,7 @@ section::Ex{nbsp}commands[ex-cmd-index,:index]
|
|||||||
||[c]:undoall[c]|| Undo closing of all closed tabs +
|
||[c]:undoall[c]|| Undo closing of all closed tabs +
|
||||||
||[c]:unlet[c]|| Delete a variable +
|
||[c]:unlet[c]|| Delete a variable +
|
||||||
||[c]:unmap[c]|| Remove a mapping +
|
||[c]:unmap[c]|| Remove a mapping +
|
||||||
|
||[c]:verbose[c]|| Execute a command with 'verbose' set +
|
||||||
||[c]:version[c]|| Show version information +
|
||[c]:version[c]|| Show version information +
|
||||||
||[c]:viewsource[c]|| View source code of current document +
|
||[c]:viewsource[c]|| View source code of current document +
|
||||||
||[c]:viusage[c]|| List all mappings with a short description +
|
||[c]:viusage[c]|| List all mappings with a short description +
|
||||||
|
|||||||
@@ -55,6 +55,14 @@ history.
|
|||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|:verb| |:verbose +
|
||||||
|
||:[count]verb[ose] {command}||
|
||||||
|
________________________________________________________________________________
|
||||||
|
Execute a command with 'verbose' set to [count]. If [count] is not specified
|
||||||
|
then 1 is used as the value.
|
||||||
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|:ve| |:version| +
|
|:ve| |:version| +
|
||||||
||:ve[rsion][!]||
|
||:ve[rsion][!]||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|||||||
Reference in New Issue
Block a user