Commit Graph

215 Commits

Author SHA1 Message Date
Holger Rapp
94ee96cb31 Added vim module into imported python modules for python interpolation. box and bbox are now in the all.snippets and use the comment leader extracted from the commentstring option 2009-07-16 15:51:15 +02:00
Holger Rapp
8e46b5ba11 Beginning of recursive snippet expansion. This still has more bugs than a dog has fleas 2009-07-16 14:10:59 +02:00
Holger Rapp
318b2726ae Fixed bug 400105 and 400114 2009-07-16 10:16:30 +02:00
Holger Rapp
717ae7586c Fixed a stupid bug where == and bzr commit -m "Fixed a stupid bug where == and boxes -d shell= were used. Instead it should have been is and is not"= were used. Instead it should have been is and is not 2009-07-15 17:40:24 +02:00
Holger Rapp
001bb70975 Added support for vimscript interpolation 2009-07-15 16:28:33 +02:00
Holger Rapp
8b2c8274ec Removed an unneeded debug output 2009-07-13 12:29:55 +02:00
Holger Rapp
79d342ddb4 Added support for interpolated python code 2009-07-13 11:36:13 +02:00
Holger Rapp
53f464e3a0 Fixed a bug with indenting in snippets. Autoindent is now supported 2009-07-12 17:23:39 +02:00
Holger Rapp
ba6e0662b5 Added the possibility to backspace over newlines in tabstops 2009-07-10 18:34:46 +02:00
Holger Rapp
86e7b3a1b5 The project now has a name: UltiSnips 2009-07-10 12:47:54 +02:00
Holger Rapp
5db7148f77 children -> childs everywhere 2009-07-10 12:29:40 +02:00
Holger Rapp
3bcbdac872 - Fixed a bug in parsing of definition files
- implemented shell code interpolation
- implemented multiline tabstop selection (needed for shell code interpolation)
2009-07-10 12:06:58 +02:00
Holger Rapp
8d9c04c675 Fixed a corner case in jumping: When a TS was selected and the next one was jumped too and was a TS with zero lenght, the cursor moved one too far 2009-07-10 09:35:21 +02:00
Holger Rapp
8a978ccdfc Got Rid of _parse function. Parsing is now done in constructor of SnippetInstance 2009-07-10 09:02:55 +02:00
Holger Rapp
bdb61f9b80 Very minor refactoring 2009-07-10 08:58:18 +02:00
Holger Rapp
4cdf05d79c All tests pass again 2009-07-10 08:49:53 +02:00
Holger Rapp
ade790cc60 Nearly fixed all bugs with Tab in DefText 2009-07-10 08:46:49 +02:00
Holger Rapp
447b800f70 Some bugs remain with tabstops in default text 2009-07-09 17:49:59 +02:00
Holger Rapp
307d822ffa Halfway through with tabstop in default text 2009-07-09 17:04:57 +02:00
Holger Rapp
ccfa5d7a73 Expand is now <tab>, forward is <c-j> and backwards is <c-k> 2009-07-09 15:30:23 +02:00
Holger Rapp
82dffc5e1c A little more cleanup in TextObjects 2009-07-09 14:35:52 +02:00
Holger Rapp
7953717f93 Got rid of ChangeableText. Cleaned TextObjects up a little 2009-07-09 14:33:06 +02:00
Holger Rapp
4acf520a94 Range is now Span 2009-07-09 14:24:43 +02:00
Holger Rapp
5935131a2a Moved tab_selected also into SnippetManager 2009-07-09 14:17:35 +02:00
Holger Rapp
86a400df80 Input is now complelty handled in the SnippetManager 2009-07-09 14:13:13 +02:00
Holger Rapp
493c628346 chars_added was moved to SnipperManager 2009-07-09 14:06:37 +02:00
Holger Rapp
514e646491 TextObject.update() no longer takes arguments 2009-07-09 13:53:49 +02:00
Holger Rapp
0c3530ff29 Some refactoring 2009-07-09 13:49:15 +02:00
Holger Rapp
b7df58eab7 Removed some unneded cursor jumping 2009-07-09 10:44:57 +02:00
Holger Rapp
3b921ca515 Fixed a bug that prevented newlines in the first column in snippets 2009-07-09 10:43:45 +02:00
Holger Rapp
130706b915 TextObjects.py no longer needs the vim module. Now the VimBuffer also needs removing 2009-07-09 10:20:25 +02:00
Holger Rapp
384a8d563a Got rid of the unintuitive accept_input variable. We now keep track of the current tabstop 2009-07-09 08:23:39 +02:00
Holger Rapp
920f6f6dbe If a snippet doesn't define a zero Tabstop, it is now automatically added at it's end after parsing 2009-07-09 08:10:46 +02:00
Holger Rapp
448a0a30b9 there is now only one snippet active at all times, we no longer need an array for the current snippets 2009-07-09 07:55:25 +02:00
Holger Rapp
e0f689df41 Tab selection no longer takes place inside TabStop 2009-07-09 07:50:48 +02:00
Holger Rapp
4ae53348f7 Packaged all Files into one Module 2009-07-08 09:57:55 +02:00
Holger Rapp
d25ffbe78d Removed two unneeded properties 2009-07-07 22:32:28 +02:00
Holger Rapp
2d6c5d8a76 Refactored the code in different files. This makes Stuff a bit more Readable 2009-07-07 22:28:09 +02:00
Holger Rapp
5dba8710f7 Added tests for tabstops in tabstops 2009-07-07 10:27:05 +02:00
Holger Rapp
c7da6bde0c Pimped python snippets a bit 2009-07-06 23:09:53 +02:00
Holger Rapp
ddd4a574f4 Added support for transformations in default text of tabstops 2009-07-06 21:45:30 +02:00
Holger Rapp
97315a1add Added tests for transformations in tabstop default texts. Fixed a todo in the code 2009-07-06 21:16:02 +02:00
Holger Rapp
ee882dd769 Fully implemented backspacing while tab is selected 2009-07-06 18:34:12 +02:00
Holger Rapp
8c8f3b9769 A first attempt to add the feature to backspace a default text away 2009-07-06 17:44:04 +02:00
Holger Rapp
fdc3c17d3f Fixed the annoying bug when directly escaping after selecting a tabstop 2009-07-06 16:55:48 +02:00
Holger Rapp
02684225a8 Added tests for leaving snippets above or below 2009-07-06 16:43:24 +02:00
Holger Rapp
d8cd3f3d08 Snippets are now dropped when cursor reached /bin/zsh 2009-07-06 11:47:27 +02:00
Holger Rapp
892db435f0 Snippet was not poppoed if it didn't contain a zero tabstop at its end 2009-07-06 11:38:19 +02:00
Holger Rapp
52a91f17fe Only jump to the end of a snippet when there is no Zero Tabstop defined 2009-07-06 11:35:18 +02:00
Holger Rapp
531a9c174d Fixed a bug with indented single line snippets. A new line was added after them before 2009-07-06 10:40:07 +02:00
Holger Rapp
657af1a9cb Added support for exiting snippet if moved out left or right 2009-07-06 10:31:12 +02:00
Holger Rapp
8c9b393fce Change detection no longer needs to cache the complete buffer, only one char. Renamed Cursor to VimState because it also trackes BufferChanges 2009-07-06 08:22:46 +02:00
Holger Rapp
bf5b4c8290 Tabstops no longer receive text when user moved the cursor while inputting. 2009-07-05 22:25:01 +02:00
Holger Rapp
4a3821059d Further refactored test by replacing cmd function through keys variable 2009-07-05 18:46:08 +02:00
Holger Rapp
58731e251d Removed escape function int tests, added a constant for it 2009-07-05 13:20:58 +02:00
Holger Rapp
e5715d8d5e Removed some oververbose debug output 2009-07-05 00:26:19 +02:00
Holger Rapp
f1f5bb1518 Snippet updates 2009-07-04 23:32:37 +02:00
Holger Rapp
87b0c199ae A slight optimization 2009-07-04 23:15:37 +02:00
Holger Rapp
f308e96832 Fixed a bug when tabstops were behind mirrors 2009-07-04 23:01:23 +02:00
Holger Rapp
4eae66c1b8 Added support for multiple defined triggers 2009-07-04 21:58:13 +02:00
Holger Rapp
0aa37bf1f7 Added support for proper indenting 2009-07-04 17:59:50 +02:00
Holger Rapp
22cc4e7f45 All snippets are dropped when user exits out to normal mode with <Esc>. Changed how tab behaves at the end of all triggers 2009-07-04 17:36:06 +02:00
Holger Rapp
b5a2e14c32 Removed a wrong TODO and fixed a mapping 2009-07-04 16:13:51 +02:00
Holger Rapp
bf35ed08fb Added support for proper startup and support for working with supertab 2009-07-04 16:08:14 +02:00
Holger Rapp
b0653645e9 Added missing files 2009-07-04 12:15:12 +02:00