Commit Graph

1026 Commits

Author SHA1 Message Date
Romain Giot
2bf3d10884 Add a documentation to the 'a' flag 2013-10-07 09:48:34 +02:00
Holger Rapp
7a6abe02ec Merge pull request #102 from phux/master
php: added __construct() snippet
2013-10-06 22:47:33 -07:00
mMontu
6d7f52bb6e Include handling for expansion from list_snippets 2013-10-05 15:59:21 -03:00
mMontu
a32473a5d4 Option for JumpTrigger only during snippet expansion 2013-10-05 13:19:20 -03:00
Holger Rapp
1097b280a3 Made detection of sh more stable. 2013-10-03 13:10:03 +02:00
Romain Giot
449255a060 Add an error message when unidecode is not installed. The message is displayed only one time 2013-10-03 09:11:36 +02:00
Jan Mollowitz
b51800cd0c php: added b flag to construct snippet 2013-10-02 22:21:02 +02:00
Romain Giot
a150220cf2 Allow to use the flag 'a' in the transformation commands.
This way, in a Latex file written with accentueted letters, the label use non accentueted letters instead of _.
2013-10-02 13:48:12 +02:00
Jan Mollowitz
839e3f3ebb php snippets: added __construct() snippet 2013-09-27 16:22:51 +02:00
Holger Rapp
88645f03ea Merge pull request #101 from ianoxley/jsfor
Javascript: remove unnecessary semicolon'.
2013-09-10 10:03:23 -07:00
Ian Oxley
421cb8a68a JSHint complained about 'Unnecessary semicolon'.
JSHint complained about the semicolons at the end of the for loop
snippets, so I've removed the semicolons after the for loop closing braces.
2013-09-10 14:59:55 +01:00
Holger Rapp
ced4f76db8 There are more than two functions now. 2013-09-10 06:29:02 +02:00
Holger Rapp
d5f4e259e5 Merge pull request #99 from amurdaca/patch-1
Javascript: Remove space between function declaration and arguments list.
2013-09-01 22:12:24 -07:00
Holger Rapp
9c8582f061 Merge pull request #97 from nulpunkt/master
Php: Make class snippet PSR-0 compliant
2013-09-01 22:08:12 -07:00
Holger Rapp
53b6d2e502 Merge pull request #95 from ianoxley/requirejs
Javascript: RequireJS snippets.
2013-09-01 22:06:25 -07:00
Antonio Murdaca
ccabc82ed4 Remove space between function declaration and arguments list (jshint complains too) 2013-08-29 18:20:38 +02:00
Ian Oxley
bc322038d2 Replaced 'RequireJS' with 'AMD'.
These snippets are more general AMD snippets, rather than being specific
to RequireJS i.e. they can be used by anyone using an AMD script loader,
not just RequireJS.
2013-08-20 11:42:10 +01:00
Jesper Skovgård Nielsen
25abb55a5e Make class snippet PSR-0 compliant
When making a file classes ViewHelper.php, you would expect the classname to be ViewHelper, not Viewhelper.
2013-08-19 11:19:54 +02:00
Ian Oxley
ccc524c2e9 Moved RequireJS snippets into javascript.snippets.
The two snippets are at the end of javascript.snippets, and the javascript_requirejs.snippets file has been deleted.
2013-08-15 16:38:09 +01:00
Ian Oxley
f8a5dfb05b requirejs JavaScript snippets.
Added 2 snippets: for the define and require functions.
2013-08-09 16:19:54 +01:00
Holger Rapp
84c36fccd8 Merge pull request #94 from jszakmeister/fix-escaping-in-list_snippets_dict
Escape apostrophes in the description inside of list_snippets_dict.
2013-08-05 20:24:35 -07:00
John Szakmeister
31f318cb7e Teach list_snippets_dict to escape apostrophes in the description.
This was discovered while trying to use
UltiSnips_SnippetsInCurrentScope() with some snippets that have
apostrophes in the description (such as printf('...', ...)).
2013-08-05 16:43:58 -04:00
Holger Rapp
4a1e5e60ff Merge pull request #93 from zenzike/master
lhashell: Initial versio.
2013-07-31 19:32:18 -07:00
Nicolas Wu
8e8a55455d Add lhaskell support 2013-07-30 09:45:20 +01:00
Holger Rapp
ce6ade8fa7 Merge pull request #91 from aschrab/html_div
html: Improve <div> snippet
2013-07-20 01:26:48 -07:00
Aaron Schrab
1ad668df2d Improve html <div> snippet
The "class" attribute is commonly set for <div>s, but the current
snippet definition makes it difficult to create any attributes other
than "id".  Setup that attribute as the id is done, so that either or
both may be easily included.
2013-07-19 18:04:27 -04:00
Holger Rapp
f3adc723ad Merge pull request #90 from vuduchild/fix_eruby_f_label_snippets
Eruby: Fixed eruby f.label snippets
2013-07-19 14:31:51 -07:00
Roy Rothenberg
9aa2582531 Fixed eruby f.label snippets 2013-07-19 18:51:40 +03:00
Holger Rapp
f2fe779a1d Merge pull request #89 from DXist/master
Python: PEP257 and PEP8 fixes.
2013-07-17 23:55:33 -07:00
Rinat Shigapov
649b00ca36 Spaces changed to tabs 2013-07-17 12:36:25 +04:00
Rinat Shigapov
cf4d0f0440 Docstrings follow PEP257. PEP8 fixes. 2013-07-16 19:17:31 +04:00
Holger Rapp
cd83608df3 Pass <s-tab> through to supertab. 2013-07-16 07:05:42 +02:00
Holger Rapp
43b1cbd958 Merge pull request #88 from kljohann/master
fix property and slotted class python snippets.
2013-07-03 21:31:13 -07:00
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