Commit Graph

23 Commits

Author SHA1 Message Date
Holger Rapp
0c63f205aa Added basic support for the token. No documentation yet, but 16 new tests 2012-01-11 19:17:13 +01:00
Holger Rapp
1653eb89ea UltiSnips loads in python3 now, but does not work so far 2012-01-10 14:16:25 +01:00
Holger Rapp
3237960a75 Move python online commands into vim functions for better profiling 2011-12-29 21:05:19 +01:00
Holger Rapp
83de7a3e66 Fixed the problem that you could not switch windows/tabs while inside a snippet 2011-06-28 22:48:05 +02:00
Holger Rapp
9e712a9a39 Removed UltiSnipsReset. It is no longer needed 2011-04-28 08:27:09 +02:00
rygwdn@gmail.com
ad84c346d0 - extracted and cleaned up searching for snippets files
- cleaned up UltiSnipsEdit by rewriting in python reusing existing code
2011-04-27 15:26:12 -03:00
rygwdn@gmail.com
dbeecdbe24 use consistent spacing in vim file 2011-04-27 12:37:07 -03:00
Holger Rapp
a63c3f9a18 Improvements to UltiSnipsEdit command by jmcantrell which partially fixes bug 748433 2011-04-09 17:58:30 +02:00
Holger Rapp
8513aa48d8 Added a new variable for snippet directory names. UltiSnips directories can be excluded to not make the shipped plugins available 2011-03-31 07:40:56 +02:00
rygwdn@gmail.com
30738b2176 Use faster, cleaner method for modifying the path. 2011-02-04 20:02:30 -04:00
rygwdn@gmail.com
98b396ff24 Fixes Bug #427676.
- Adds the idea of anonymous snippets with new method on SnippetManager to expand a snippet without adding it.
- Adds two new functions for adding new snippets, and expanding anonymous snippets.
- Adds tests for the above functionality.
2010-12-18 13:07:46 -04:00
Holger Rapp
c095147fa1 Added commands UltiSnipsReset and UltiSnipsEdit by JCEB 2010-09-22 13:01:04 +02:00
Holger Rapp
5aac3f5836 Implemented a fix for select mode mappings along the lines of the suggestions by Ryan. Added tests. Documentation is still missing 2010-08-20 09:32:12 +02:00
Holger Rapp
b437f30fc7 Applied patch from Chris Chambers 2010-07-12 14:52:12 +02:00
Holger Rapp
5d116bac33 Merged with clearsnippets branch from Michael Henry. Only very minor changes on my part 2009-10-13 09:56:12 +02:00
Michael Henry
9e6b3737f8 Added <silent> to mappings to remove the distraction in the status line. 2009-09-17 05:53:25 -04:00
Michael Henry
99e8842ca5 A "clearsnippets" feature
=========================

It's difficult for the user to control which of the default
bundled snippets are active in his environment.  The
'runtimepath' variable must be set to the root of the ultisnips
installation, which brings in all of the bundled snippets.
Though the user may individually override the definition of the
bundled snippets using the "!" flag, the method has a couple of
problems:

- There's no way to remove a snippet, only to override it (and
  each snippet must be overridden individually).
- The "!" flag currently doesn't remove the overridden snippets
  from the "list snippets" command.

It might be considered a feature that "!" doesn't actually
remove the snippets from the "list snippets" command, though
perhaps that's an unintended effect.  In any case, it would be
more convenient to allow the user to selectively remove the
bundled snippets from his environment.

A patch is provided in the following branch to address these problems:
http://code.launchpad.net/~drmikehenry/ultisnips/clearsnippets

The branch's primary purpose is the addition of a
"clearsnippets" command that may be placed in a user's
~/.vim/UltiSnips/ft.snippets file.  The user may clear all
lower-priority snippet for that file type with the line:

  clearsnippets

Alternatively, he may clear individual snippets by listing their
triggers:

  clearsnippets trigger1 trigger2

A few changes were made to the testing system as part of the
incorporation of this new feature.  These changes include:

- The "extends" directive is now supported on multiple lines
  throughout file.

- A completely empty .snippets file is now possible.

- The test.py scripts now handles most of the vim setup,
  simplifying the running of the tests.  The invocation of Vim
  now reduces to:

    vim -u NONE

  Instructions for running the tests are included at top of
  test.py, where they should be more visible to interested
  users; UltiSnips.vim now just points to test.py's
  instructions.

- A new function vim_quote() encodes an arbitrary string into a
  singly-quoted Vim string, with embedded quotes escaped.
- SnippetsFileParser() now allows file_data to be passed
  directly for unit testing, avoiding the need to create files
  in the filesystem for test purposes.
- A new _error() function reports errors to the user.  At
  runtime, this function uses :echo_err in general, but also can
  append error text to current buffer to check for expected
  errors during unit tests.
- Added error checks to snippets file parsing, along with unit
  tests for the parsing.
- Increased retries from 2 to 4 (on my system, occasionally the
  timing still causes tests to fail).
2009-09-08 20:15:10 -04:00
Holger Rapp
de9e35b8f7 Fixed stupid bug introduced in last revision 2009-08-16 18:50:14 +02:00
Holger Rapp
cb458a0ce7 Attemp to work around SuperTabs <tab> claiming when installed in the home vim folder 2009-07-27 09:51:09 +02:00
Holger Rapp
2f28d0ebb5 Fixed bug #404822 with a patch by jceb. 2009-07-26 17:42:40 +02:00
Holger Rapp
d0a50ae9d2 Made trigger keys configurable. Added support for setting forward jump and expand to the same key 2009-07-21 10:21:05 +02:00
Holger Rapp
318b2726ae Fixed bug 400105 and 400114 2009-07-16 10:16:30 +02:00
Holger Rapp
86e7b3a1b5 The project now has a name: UltiSnips 2009-07-10 12:47:54 +02:00