mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-04 01:15:56 +01:00
Add :verbose.
This commit is contained in:
@@ -794,6 +794,30 @@ const liberator = (function () //{{{
|
||||
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]"],
|
||||
"Show version information",
|
||||
function (args)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Muttator configuration file
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Last Change: 2009 Aug 3
|
||||
" Last Change: 2009 Aug 23
|
||||
|
||||
" 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]
|
||||
\ 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]
|
||||
\ 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]
|
||||
\ toolbart[oggle] tp[revious] una[bbreviate] unl[et] unm[ap] verb[ose] ve[rsion] vie[wsource] viu[sage] vm[ap] vmapc[lear]
|
||||
\ vno[remap] vu[nmap] w[rite] zo[om]
|
||||
\ contained
|
||||
|
||||
syn match muttatorCommand "!" contained
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
(this might change again, as this is REALLY inconsistent, and i don't
|
||||
know if I like copying bugs)
|
||||
|
||||
* add [c]:verbose[c]
|
||||
* add [c]:window[c] to run a command in a new window
|
||||
* add ! version of :delbmarks to delete all bookmarks.
|
||||
* new "t" option for 'complete' to also switch to open tabs with :open
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: VIMperator configuration file
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Last Change: 2009 Aug 10
|
||||
" Last Change: 2009 Aug 23
|
||||
|
||||
" 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]
|
||||
\ 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]
|
||||
\ 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] wind[ow] wine[dit] wo[pen] wq wqa[ll] xa[ll] zo[om]
|
||||
\ 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]
|
||||
\ win[open] winc[lose] wind[ow] wine[dit] wo[pen] wq wqa[ll] xa[ll] zo[om]
|
||||
\ 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]:unlet[c]|| Delete a variable +
|
||||
||[c]:unmap[c]|| Remove a mapping +
|
||||
||[c]:verbose[c]|| Execute a command with 'verbose' set +
|
||||
||[c]:version[c]|| Show version information +
|
||||
||[c]:viewsource[c]|| View source code of current document +
|
||||
||[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.
|
||||
________________________________________________________________________________
|
||||
|
||||
|
||||
|:norm| |:normal|
|
||||
||: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[rsion][!]||
|
||||
________________________________________________________________________________
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Xulmus configuration file
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Last Change: 2009 Aug 3
|
||||
" Last Change: 2009 Aug 23
|
||||
|
||||
" 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]
|
||||
\ 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] vol[ume] vu[nmap] w[rite] wc[lose] win[open]
|
||||
\ winc[lose] wine[dit] wo[pen] wq wqa[ll] xa[ll] zo[om]
|
||||
\ unm[ap] verb[ose] 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
|
||||
|
||||
@@ -314,6 +314,7 @@ section::Ex{nbsp}commands[ex-cmd-index,:index]
|
||||
||[c]:undoall[c]|| Undo closing of all closed tabs +
|
||||
||[c]:unlet[c]|| Delete a variable +
|
||||
||[c]:unmap[c]|| Remove a mapping +
|
||||
||[c]:verbose[c]|| Execute a command with 'verbose' set +
|
||||
||[c]:version[c]|| Show version information +
|
||||
||[c]:viewsource[c]|| View source code of current document +
|
||||
||[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[rsion][!]||
|
||||
________________________________________________________________________________
|
||||
|
||||
Reference in New Issue
Block a user