1. ZyX_I
  2. aurum


ZyX_I  committed 2a747a9

@aurum/log: Now supporting more complex commands in :AuLog procinput (untested)

  • Participants
  • Parent commits cf4ca75
  • Branches default

Comments (0)

Files changed (3)

File README.markdown

View file
  • Ignore whitespace
   - Viewing working directory status ([:AuStatus](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line363-0)).
   - Commiting changes ([:AuCommit](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line99-0)), commit messages are remembered in case of 
-    rollback ([g:aurum_remembermsg](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line878-0)).
+    rollback ([g:aurum_remembermsg](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line883-0)).
   - Obtaining various URL’s out of remote repository URL (like URL of the HTML 
     version of the current file with URL fragment pointing to the current line 

File doc/aurum.txt

View file
  • Ignore whitespace
           character commands. There is a hack though that allows you to bypass 
           this problem:
             Input    Action ~
-            g, z     Waits until you input next character
-            /, ?, :  Waits until you type <CR> ("\r" or "\n") or <Esc>
+            g, z, y, `, ', m, [, ], @, q, Z
+                     Waits until you type next character
+            /, ?, :, !
+                     Waits until you type <CR> ("\r" or "\n") or <Esc>
             1-9      Waits until you type next non-digit
+            "        Waits until you type two characters
 recheight                                                  *g:aurum_recheight*
     VimL |expression| that evaluates to unsigned integer or unsigned integer. 

File plugin/aurum/log.vim

View file
  • Ignore whitespace
         if (skipped && !a:d.allowskip) || a:d.skipuntil isnot 0
-        elseif char is# 'g' || char is# 'z'
+        elseif stridx('gzy''`m[]@qZ', char)!=-1
             let a:d.skipuntil='len(a:d.input)>='.(len(a:d.input)+1)
             let a:d.allowskip=0
+        elseif char is# '"'
+            let a:d.skipuntil='len(a:d.input)>='.(len(a:d.input)+2)
+            let a:d.allowskip=1
         elseif stridx('123456789', char)!=-1
             let a:d.skipuntil='a:d.input['.len(a:d.input).':]=~#"\\D"'
             let a:d.allowskip=1
-        elseif stridx('/?:', char)!=-1
+        elseif stridx('/?:!', char)!=-1
             let a:d.skipuntil=
                         \'match(a:d.input, "[\n\r\e]", '.len(a:d.input).')!=-1'
             let a:d.allowskip=0