Michael Sanders
5a461cfb63
fixed bug when cancelling a snippet with multiple matches
2009-03-25 16:32:39 -04:00
Michael Sanders
75b87b7473
made sure g:snippets_dir is always an absolute path
2009-03-25 02:32:16 -04:00
Michael Sanders
319292a669
fixed behavior with popup menu when supertab.vim is installed
2009-03-24 15:11:40 -04:00
Michael Sanders
1e8fe57222
made it so ResetSnippets() resets g:did_ft as well
2009-03-24 14:20:52 -04:00
Michael Sanders
84321bbe17
fixed behavior when pressing <tab> when outside of a snippet & the popup menu is open
2009-03-24 14:15:26 -04:00
Michael Sanders
7372923fda
fixed bug with incorrect path to snippets
2009-03-23 13:04:09 -04:00
Michael Sanders
99653dc5d5
updated documentation
2009-03-23 10:40:52 -04:00
Michael Sanders
0f4ab5a2fb
added html helper function for closing tags
2009-03-23 10:12:09 -04:00
Michael Sanders
d78fb50bde
made convertSnip.py a bit easier to read by using raw strings
2009-03-23 01:29:56 -04:00
Michael Sanders
aa854cb971
accidentally made snippet file for *.snippet(s) snippets.snippet instead of snippet.snippet
2009-03-22 22:47:44 -04:00
Michael Sanders
bd729bb2a3
fixed typo in convertSnip.py
2009-03-22 22:44:54 -04:00
Michael Sanders
18bcca6a42
added syntax coloring for *.snippet(s) files
2009-03-22 22:43:17 -04:00
Michael Sanders
8764924dfe
Completely replaced command-based snippets with a new, easier to read/maintain syntax. Also added a python script to make it easier to migrate.
2009-03-22 22:35:03 -04:00
Michael Sanders
1c12d12862
made GetSnippets() a public function
2009-03-22 21:41:55 -04:00
Michael Sanders
899fe4f5ce
now using finddir() to find snippet directory
2009-03-22 21:10:25 -04:00
Michael Sanders
a9ae5af003
removed the slash variable since it's not used anymore
2009-03-22 21:09:15 -04:00
Michael Sanders
7e543f8f34
replaced regexes in ExtractSnips() and s:ProcessFile() with a simple fnamemodify()
2009-03-22 20:41:48 -04:00
Michael Sanders
bf7cfb1d1f
fixed bug with special characters in placeholders
2009-03-22 19:35:50 -04:00
Michael Sanders
a3e3958d30
fixed bug with special characters in snippet triggers
2009-03-22 19:17:42 -04:00
Michael Sanders
b905e94673
fixed arguments for GetSnippet()
2009-03-19 19:15:24 -04:00
Reza Jelveh
4a63cf2adc
fixed a typo in the renames
...
Signed-off-by: Michael Sanders <msanders42@gmail.com >
2009-03-20 07:07:35 +08:00
Michael Sanders
0180a85088
added support for the 'shellslash' option on Windows
2009-03-15 18:53:54 -04:00
Michael Sanders
5527548d63
added support for buffer-only snippets
2009-03-15 18:52:29 -04:00
Michael Sanders
150a65594b
removed s:Hash() since there's no need for it in Dictionaries
2009-03-15 15:47:41 -04:00
Michael Sanders
3a64f6a024
fixed a typo in vim snippets
2009-03-14 21:24:27 -04:00
Michael Sanders
713699c58a
added fix for bug with variables inside placeholders
2009-03-14 21:24:11 -04:00
Michael Sanders
c265dcb96e
fixed bug with file-based snippets
2009-03-08 21:52:11 -04:00
Michael Sanders
562d78749d
updated documentation
2009-03-08 21:50:38 -04:00
Michael Sanders
6c978f274d
refactored again; s:BuildTabStops() may actually be somewhat comprehensible now
2009-03-03 21:21:54 -05:00
Michael Sanders
392226a847
added automatic setting of g:snippet_filetype to the 'guard' snippet
2009-03-02 22:28:16 -05:00
Michael Sanders
3db3319e80
added a default "guard" snippet for checking if a snippet has been loaded more than once, and put cpp snippets in their own file"
2009-03-02 21:38:07 -05:00
Michael Sanders
4ec62447c8
rewrote and updated some of the documentation
2009-03-02 20:43:16 -05:00
Michael Sanders
e18b44e640
fixed some bugs with expanding nested snippets
2009-03-02 18:46:07 -05:00
Michael Sanders
6fa780f53e
fixed typo that prevented file-based snippets from being loaded in Windows
2009-03-02 13:33:50 -05:00
Michael Sanders
b63e39d8ed
cleaned up code dealing with triggers for dotted file types
2009-03-01 21:48:48 -05:00
Michael Sanders
a8109fa38f
fixed objc/cpp command-based snippets
2009-03-01 19:24:43 -05:00
Michael Sanders
dd8b39a9b5
fixed typo in check for file-based snippets
2009-03-01 17:24:38 -05:00
Michael Sanders
6c08f9358d
fixed bug with dotted filetypes in file-based snippets
2009-03-01 17:20:29 -05:00
Michael Sanders
3e7d478b91
fixed bug with dotted filetypes
2009-03-01 17:11:13 -05:00
Michael Sanders
8f31a3b9bf
added fix for more special characters (., ^, and $) in snippet triggers
2009-03-01 16:40:36 -05:00
Michael Sanders
f6a9e90da6
fixed another bug when expanding a nested snippet in a placeholder (one more to go
2009-02-28 21:44:40 -05:00
Michael Sanders
644556ff42
fixed a typo in the check for global file-based snippets
2009-02-28 19:12:49 -05:00
Michael Sanders
28689f37fc
updated documentation with regard to file-based snippets (still needs some work)
2009-02-28 17:07:51 -05:00
Michael Sanders
892b4a90fb
fixed bug with updating tab stops after a nested snippet is inserted
2009-02-28 16:52:33 -05:00
Martin Grenfell
b5999ba5cc
bugfix: dont source file based snippets more than once
...
Set the s:did_<filetype> flag after reading in
file based snippets. This prevents snippets getting read in more than
once.
Move the code that checks for file based snippets out of
after/plugin/snipMate.vim and into plugin/snipMate.vim. Refactor this
code into functions for readability.
Signed-off-by: meese <msanders42@gmail.com >
2009-03-01 05:44:07 +08:00
Michael Sanders
dd4836d2b2
fixed a bug with file-based snippets
2009-02-26 20:41:56 -05:00
Michael Sanders
2e150f015c
added back snip, snipp, gsnip, gsnipp, and vim snippets
2009-02-26 20:30:59 -05:00
Michael Sanders
74c848ecc4
changed all "en"s to "endifs" to hopefully make the script a bit more readable...
2009-02-26 18:28:33 -05:00
Michael Sanders
2e5caabf53
fixed some bugs, and added support for nested snippets (!)
2009-02-26 18:24:13 -05:00
Michael Sanders
8db937bb3b
fixed a bug when expanding snippets
2009-02-25 17:50:59 -05:00