Commit Graph

993 Commits

Author SHA1 Message Date
Johann Klähn
f2009bd724 fix property and slotted class python snippets
• `rwprop` did not work at all for me (messed up expansion)
  and did not honor `ultisnips_python_quoting_style`.
• slotclass assigns to variables beginning with an underscore
  in its init function and thus the slots have to begin
  with an underscore too.
2013-07-03 21:21:48 +02:00
Holger Rapp
5a9233f56c Merge pull request #87 from AntoineD/master
Add pudb python debugger snippet.
2013-07-02 21:42:47 -07:00
AntoineD
0689dc03b2 Add pudb python debugger snippet 2013-07-03 04:08:17 +02:00
Holger Rapp
e2ef47623e Merge pull request #85 from pjfoley/hotfix/init_edge_case
Hotfix/init edge case for puppet snippets.
2013-06-30 05:56:22 -07:00
Holger Rapp
552122de58 Fixes bug 1191617. Improves testing.
Overtypes triggers, so that text objects are properly killed, also
changes test.py to pass python values using a temp file and :pyfile
instead of typing it out using << EOF.
2013-06-29 15:45:48 +02:00
Holger Rapp
5a3190e65c Fixed b1191617. 2013-06-29 15:44:02 +02:00
Peter Foley
fe4f784720 Fixed edge case with multiple init directories
In the instance of calling the class snippet within a puppet file
located in
/home/pjfoley/puppet/modules/profile/manifests/server/init/init.pp

I would expect the return value to be "profile::server::init", it
currently returns "profile::server" which is missing a module path
layer.
2013-06-29 22:54:26 +10:00
Peter Foley
c5af015eb2 Merge branch 'hotfix/module_name' into hotfix/init_edge_case
Conflicts:
	UltiSnips/puppet.snippets
2013-06-29 22:33:08 +10:00
Peter Foley
d2b3d690d1 Fixed edge case in function for base class name
In the instance of calling the class snippet within a puppet file
located in /home/pjfoley/puppet/modules/profile/manifests/init.pp

I would expect the return value to be "profile", it currently returns
"profile::"

The extra "::" is a bug and puppet compilation fails with the message
"Syntax error at ':'
2013-06-29 22:17:02 +10:00
Peter Foley
5263affdde Fixed edge case in function for base class name
In the instance of calling the class snippet within a puppet file
located in /home/pjfoley/puppet/modules/profile/manifests/init.pp

I would expect the return value to be "profile", it currently returns
"profile::"

The extra "::" is a bug and puppet compilation fails with the message
"Syntax error at ':'
2013-06-29 16:54:05 +10:00
Holger Rapp
bd18cd76d7 Merge pull request #82 from pjfoley/feature/function_snippets
Added Puppet Function Snippets
2013-06-28 05:32:09 -07:00
Holger Rapp
a12146a9c6 Merge pull request #81 from pjfoley/feature/puppet_rearrange
Cosmetic changes to puppet.snippets file to make things easier to find
2013-06-23 21:10:18 -07:00
Peter Foley
86b126f8c1 Merge remote-tracking branch 'upstream/master' into feature/function_snippets
Conflicts:
	UltiSnips/puppet.snippets
2013-06-24 02:11:41 +10:00
Peter Foley
78b53f9d6c Removed empty lines in the section block comments 2013-06-23 19:53:09 +10:00
Peter Foley
e2eb0a02bc Added puppet function snippets 2013-06-23 17:37:43 +10:00
Peter Foley
0a3c7288ad Re-arranged Types section so it is alphabetized 2013-06-23 16:03:30 +10:00
Peter Foley
086e367196 Re-arranged Lanugage section so it is alphabetized 2013-06-23 16:00:15 +10:00
Peter Foley
853eed2242 Removed superfluous line in the snippet 2013-06-23 15:58:53 +10:00
Peter Foley
fa1bcda166 Comment blocks with link to Puppet doco 2013-06-23 15:33:39 +10:00
Holger Rapp
b03bb13423 TestCase for b1191617 and slightly more stable way to execute python in test cases. 2013-06-21 22:12:39 +02:00
Holger Rapp
3b2eb436b7 Buffer local overwrite for snippet directory. Patch by jszakmeister. 2013-06-19 08:00:52 +02:00
Holger Rapp
291a0804a7 Merge pull request #71 from lazerscience/master
Adding ipdb snippet
2013-06-18 13:36:18 -07:00
Holger Rapp
cfc0260817 Merge pull request #75 from ravl1084/testing
Add snippet for ledger and BibLaTeX
2013-06-18 13:35:27 -07:00
Holger Rapp
313d63c5b1 Merge pull request #80 from pjfoley/patch-1
Missing Curly Brace in Puppet Snippet File
2013-06-18 13:34:10 -07:00
pjfoley
58628e2d29 Updated to also correctly specify the user type 2013-06-17 19:36:05 +10:00
pjfoley
26d784d36c Missing closing curly brace 2013-06-17 19:31:13 +10:00
Holger Rapp
38de6a8821 do not expand tabs in snippet files. 2013-06-10 18:34:38 +02:00
Holger Rapp
5d6f72949d Added UltiSnips_SnippetsInCurrentScope(). Patch by Jorge (skeept) 2013-06-10 18:27:48 +02:00
Rene Vergara
2a1a32031d Corrects formatting of snippets
Signed-off-by: Rene Vergara <rene.a.vergara@gmail.com>
2013-05-26 15:48:58 -05:00
Holger Rapp
b272949b51 Improvements to the puppet snippets by Nikola Petrov. 2013-05-17 06:57:22 +02:00
Holger Rapp
064dfac638 Fold markers snippets in all.snippets. Patch by Von Welch. 2013-05-17 06:43:46 +02:00
Rene Vergara
91bc8d43e2 Add snippet for ledger
Signed-off-by: Rene Vergara <rene.a.vergara@gmail.com>
Add a snippet to enter a transaction into a ledger file to be
used with the ledger accounting tool.

Recommend to use the vim-ledger plugin for filetype detection.
2013-04-28 11:03:36 -05:00
Rene Vergara
ed78c4db70 Add BibLaTeX snippets and parenthesis snippet
Signed-off-by: Rene Vergara <rene.a.vergara@gmail.com>
Add a snippet for BibLaTeX for book, inbook, online and article.

Add a snippet for LaTeX to enter a parenthesis pair.
2013-04-28 11:01:16 -05:00
Holger Rapp
015c78cba2 ipdb snippet. 2013-04-24 07:05:16 +02:00
Rene Vergara
2c11008df9 Merge branch 'master' into testing 2013-04-23 20:10:20 -05:00
Bernhard Vallant
b713714588 Correcting set_trace() statement 2013-04-23 16:05:33 +03:00
Bernhard Vallant
8e4036f49f Adding ipdb snippet
ipdb is not in the standard library, but every descent developer should use it...
2013-04-23 16:01:34 +03:00
Holger Rapp
3479a918bd Puppet style fixes by JHaals 2013-04-22 19:45:54 +02:00
Holger Rapp
4cc1996f6c Improvements to the tex snippets by rene vergara. 2013-04-22 07:22:38 +02:00
Rene Vergara
fff985021c Correct the ref snippet and add package snippet 2013-04-21 18:21:36 -05:00
Holger Rapp
61291ecd83 Completion for UltiSnipsEdit. Patch by Zhao Cai. 2013-04-21 17:18:14 +02:00
Holger Rapp
40af7c8480 Fixes to eruby snippets by jinzhu. 2013-04-17 06:52:50 +02:00
Holger Rapp
2049a50c35 if, ife and ifee snippets for python by Josh Strater. 2013-04-17 06:50:40 +02:00
Holger Rapp
997294adc5 Small fixes and new c-sharp (cs) snippets by Matthew Strawbridge. 2013-04-15 07:19:07 +02:00
Holger Rapp
e10285b382 Fix for bug 1073816 and some improvements to debug utilities. 2013-04-14 13:09:33 +02:00
Holger Rapp
9333a5112b Enhancements to shell code intepolation: Try hard to find a directory where we actually can execute something. Patch by Keith Welch. 2013-04-12 06:55:37 +02:00
Holger Rapp
969b3a0164 Fixes to puppet snippets by javipolo. 2013-04-12 06:45:29 +02:00
Holger Rapp
c9bd9e96ee Fixed * -> |. 2013-04-01 16:20:24 +02:00
Holger Rapp
79b4baa3ac Added a section about other plugins UltiSnips plays well with and linked to Stanislav's work. 2013-03-25 09:07:49 +01:00
Holger Rapp
68361f3ca3 OCaml snippets by Rudi Grinberg. 2013-03-25 08:58:55 +01:00