Tue Mar 24 19:35:22 EDT 2009  steffen.sier...@gmail.com
  * generalized some completion code and added customizable completion function 
to Vim Minibuffer module
  Ignore-this: 15e9ba316258d97ee574efd704975643
  
  Using these completion functions it is possible to configure Minibuffer 
completion
  to:
      - use case insensitive or case sensitive matching
      - use prefix or infix match
      - define how to find completion values (buffer names, file names, 
predefined...)
      - enable/disable Tab-based run through possible matches
  
  An example replacing ex-cmd "b" (for switching buffers) with infix matching, 
case insensitive,
   Tab based match run auto completion in yi.hs
  
   ...
  v_ex_cmds = exCmds [("b", 
                       withEditor . switchToBufferWithNameE,
                       Just $ exHistInfixComplete' True matchingBufferNames)]
   ...
  

    M ./Yi/Completion.hs -6 +9
    M ./Yi/Keymap/Vim.hs -19 +43
    M ./Yi/TextCompletion.hs -16 +21

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to