Andrea Crotti
69cc1c19c7
Merge pull request #313 from quazgar/patch-2
...
Create init_docstring_numpy
2019-04-22 15:16:39 +01:00
Andrea Crotti
bb87d2056c
Merge pull request #312 from quazgar/patch-1
...
FIX: markdown>hyphen has extra space now
2019-04-22 15:16:00 +01:00
Daniel
dd33a45cca
ENH: Also add python/method_docstring_numpy
2019-04-19 23:20:53 +02:00
quazgar
2cf323c593
Fixed wrong snippet name
2019-04-19 23:06:45 +02:00
quazgar
c12221e72f
Create init_docstring_numpy
...
Equivalent to `function_docstring_numpy`, with equivalent shortcut key.
2019-04-19 23:02:27 +02:00
quazgar
b0d9eead30
FIX: markdown>hyphen has extra space now
...
The previous code for markdown unordered lists was missing a space after the `-`.
2019-04-18 12:26:12 +02:00
Van-Huynh Le
2f6a24dcdb
Elixir: Make hinfo more general
2019-04-13 10:21:44 +02:00
Van-Huynh Le
d742cc22b3
Elixir: make hcall and hcast snippets more general
2019-04-13 09:49:17 +02:00
Michal Wasilewski
964a614ed8
add .yas-make-groups file to create a google group
2019-03-16 20:29:22 +01:00
Fredeeb
2af5086814
c#: Try/catch, read(line), write(line)
2019-03-11 14:55:02 +01:00
Andrea Crotti
a4fa2e3596
add all the missing modes
2019-03-09 18:35:58 +00:00
Andrea Crotti
827908d7cd
Merge pull request #307 from AndreaCrotti/reporting
...
Reporting
2019-03-09 09:45:29 +00:00
Andrea Crotti
af322fb6d2
improve syntax to make parsing easier
2019-03-09 09:42:25 +00:00
Michal Wasilewski
c43655cf04
add snippets for google provider in terraform
...
Signed-off-by: Michal Wasilewski <mwasilewski@gmx.com>
2019-03-01 10:43:42 +01:00
Victor Fernandes
b35209fe2c
fixed: newline at end of file
...
Other include snippets as unistd, string, stdio, ... don't have
a newline at the end of the file.
This fixes this bit of inconsistency in the stdlib snippet.
2019-02-27 23:23:20 +01:00
Andrea Crotti
796a316e3d
Merge pull request #267 from codingbum/master
...
Add snippets for Racket
2019-02-03 00:40:49 +03:00
Andrea Crotti
c39b093ee8
Merge pull request #292 from mineo/c++-class-name
...
Use the same c++ class name placeholder in all c++-mode snippets
2019-02-03 00:37:14 +03:00
Andrea Crotti
0811650e78
add key as well
2019-02-02 21:28:30 +00:00
Andrea Crotti
9f59412cd1
Merge pull request #296 from ag91/master
...
Add scala-mode snippet to define functions along with their docstring
2019-02-03 00:27:28 +03:00
Andrea Crotti
265f89e480
Merge pull request #299 from dfurtado/dataclass-enum
...
Snippets for dataclasses and enumerations
2019-01-18 19:45:24 +00:00
Ryota Nishi
a8647a86c5
Modify markdown-mode snippet to remove new line
...
I think that it is more convenient for bullets not to put newlines.
2019-01-07 12:32:47 +09:00
Daniel Furtado
1efb8f6624
Snippets for dataclasses and enumerations.
2018-12-30 15:41:02 +01:00
Stig Dahl
c7501f97f0
Remove extra character
...
Remove the extra \ from the file.
2018-12-11 23:02:11 +01:00
ag91
30e3ae6147
Add scala-mode snippet to define functions along with their docstring
2018-11-07 22:38:41 +01:00
Seong Yong-ju
853edbccd7
Fix images
2018-10-29 23:55:57 +09:00
Kamil Tomicki
4fc15c778e
Delete strlen
2018-10-13 21:39:17 +02:00
Kamil Tomicki
f857a824c1
Delete puts
2018-10-13 21:39:08 +02:00
Kamil Tomicki
e8e0fbc3bc
Update fprintf
2018-10-09 22:14:35 +02:00
Kamil Tomicki
0180880605
Update scanf
2018-10-09 22:14:13 +02:00
Kamil Tomicki
e03844fcca
Update fgets
2018-10-09 22:10:02 +02:00
Kamil Tomicki
eb49c89861
Create fprintf
2018-10-08 13:49:03 +02:00
Kamil Tomicki
e1181eeff7
Create strlen
2018-10-08 09:31:17 +02:00
Kamil Tomicki
a9edb17fcb
Create strstr
2018-10-08 09:19:42 +02:00
Kamil Tomicki
6d1e6c8af2
Create fgets
2018-10-08 09:04:29 +02:00
Kamil Tomicki
38d32e51e4
Update puts
2018-10-08 08:57:43 +02:00
Kamil Tomicki
438de99799
Create puts
2018-10-07 11:48:21 +02:00
Kamil Tomicki
75a70d3e0b
Update scanf
2018-10-07 11:18:40 +02:00
Kamil Tomicki
589188bdcb
Create scanf
...
scanf
2018-10-06 18:50:52 +02:00
Wieland Hoffmann
c9d08ca7b4
c++/class: Use yas-c++-class-name
...
This does the same yas/substr calls previously done by the snippet.
2018-10-03 10:39:59 +02:00
Wieland Hoffmann
2ce06a1fa6
c++-mode: Use `Name` as the default placeholder for all snippet
...
The snippets previously used Class, MyClass, Name and Type. Now it's just Name
in all of them, based on the class11 snippet.
2018-10-03 10:37:01 +02:00
Andrea Crotti
1d1ea6f20c
Merge pull request #285 from r-darwish/rust-snippets
...
Add Rust snippets
2018-09-22 20:28:15 +01:00
Andrea Crotti
7560ba92a3
Merge pull request #288 from kwrooijen/feature/add-hy-mode
...
Add hy-mode snippets
2018-09-22 20:27:33 +01:00
Dan Pitic
ffc08ac17f
Removed newline from C and NASM function Doxygen snippet. Added new
...
Python class and function Doxygen snippets.
2018-09-17 20:56:24 +08:00
Andrea Crotti
ef6eae61f1
Merge pull request #290 from l7ssha/master
...
[dart-mode] Fix template for async function
2018-09-09 11:15:21 +01:00
Andrea Crotti
fc6fcaa5b4
Merge pull request #286 from mssdvd/patch-1
...
Update rust-mode/ifl
2018-09-09 11:14:54 +01:00
Szymon Uglis
33a08b5fbd
Fixed async function template
2018-09-08 23:58:07 +02:00
Andrea Crotti
a778670f1e
move org snippets to the right place
2018-08-25 18:12:27 +01:00
Kevin van Rooijen
a509a8c667
Add hy-mode snippets
2018-08-25 19:00:57 +02:00
Ryota Kayanuma
3367c47cbd
Add locals snippet
2018-08-25 03:25:44 +09:00
Ryota Kayanuma
4fdcf1653d
Fix terraform snippet
2018-08-25 03:24:54 +09:00
Ryota Kayanuma
ef1eb6f6ee
Add output snippet
2018-08-25 03:18:27 +09:00
Ryota Kayanuma
db83743b57
Add terraform snippet
2018-08-25 03:14:27 +09:00
Ryota Kayanuma
cff16d1ae9
Add module snippet
2018-08-25 03:07:31 +09:00
Ryota Kayanuma
7aa306dbd8
Add data snippet
2018-08-25 03:04:57 +09:00
Ryota Kayanuma
ee3359e1f7
Add provider snippet
2018-08-25 03:03:27 +09:00
Davide Masserut
f40e219e28
Update rust-mode/ifl
2018-08-17 17:36:35 +02:00
Roey Darwish Dror
0576ef2f3b
Add Rust snippets
2018-07-26 14:53:18 +03:00
Szymon Uglis
d153af6d1d
Snippets for dart-mode ( #277 )
...
* Snippets for dart-mode
* Review fixes
2018-07-14 14:22:17 +01:00
Terencio Agozzino
2367c0a172
Add elisp snippet using uppercase ( #279 )
2018-07-14 14:21:42 +01:00
Christian Köstlin
510c312f82
Add d-lang snippets ( #281 )
...
Adapted for yas from
https://github.com/dlang-vscode/dlang-vscode/blob/master/snippets/snippets.json
2018-07-14 14:21:12 +01:00
Isaac
7b004d7e80
Remove latex snippet in orgmode. ( #280 )
...
The latex snippet "<l" in orgmode is already implemented in orgmode's Easy Templates. Besides, "#+BEGIN_LATEX ... #+END_LATEX" has been replaced with "#+BEGIN_EXPORT latex ... #+END_EXPORT" since orgmode 9.0.
2018-07-14 14:20:14 +01:00
Konstantin Kharlamov
fc3cf36798
c++-mode: fix `tfm` snippet ignored by changing duplicate descriptions ( #284 )
...
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2018-07-14 14:19:37 +01:00
Balaji Sivaraman
c4bc16ea7b
rust: add snippets for crate, pub fns, and constructor ( #262 )
2018-06-16 18:05:24 +01:00
Dan
6a5f130397
New c-mode Doxygen function documentation using Javadoc style tags. ( #264 )
...
* New c-mode Doxygen function documentation using Javadoc style tags.
* Removed double space from doc block.
* Moved alternate c/c++ function documentation block from c-mode to
c-lang-common so that the snippet will be available for both c & c++
programs.
* Reformatted c function Doxygen documentation block. Added @details
section.
* Changed C Doxygen function block trigger to doxy to make it easier to
use. Added new nasm Doxygen function block document snippet.
2018-06-16 18:02:56 +01:00
Jürgen Hötzel
c1df49dba9
Don't expand Go main package definitions at beginning of buffer ( #275 )
2018-06-16 17:59:53 +01:00
Chad Kunde
e700a11058
add method snippet to go-mode ( #276 )
...
Used to add a method to a struct with documentation comment.
2018-06-16 17:59:11 +01:00
Masafumi Koba
214ddf78e3
Support typescript-mode ( #274 )
...
This fixes #139 .
For more details, see <https://github.com/ananthakumaran/typescript.el >.
2018-05-03 14:57:16 +01:00
Andrea Crotti
ed2be07237
avoid same name with different case, fixes #272
2018-04-22 14:49:07 +01:00
Nicholas D Steeves
152a091c6f
Rename files that are prohibited in Debian packages ( #258 )
...
* Rename files that are prohibited in Debian packages
* Add missing keys for all markdown-mode snippets
* markdown-mode: Give a couple snippets more meaningful names
* markdown-mode/uft8: Modify description to say UTF-8
* Add MELPA stable badge.
@AndreaCrotti is now tagging stable releases, so I believe it is
appropriate to close #242
2018-04-21 10:04:16 +01:00
rrooij
cdd424df88
php-mode: fix case in getters and setters ( #271 )
...
Fix the case of the getter and setter templates. The previous
method "capitalize" turned upper case characters to lower case
elsewhere in the string.
2018-04-21 09:57:50 +01:00
Tetsumi
ae4708538f
fix racket snippets
2018-04-20 22:16:20 +02:00
rrooij
d60f079c93
php-mode: fix missing dollar sign in set snippet ( #266 )
...
The dollar sign was missing which caused a badly generated setter
method.
2018-04-18 13:32:45 +01:00
Tetsumi
6e283069e8
add snippets for Racket
2018-04-10 22:34:04 +02:00
rrooij
4bbe565b7c
php-mode: add getter and setter snippets ( #265 )
2018-04-08 12:46:31 +01:00
Neymarsabin
66031e52fb
Add various snippets for org-mode ( #260 )
...
* Add various snippets for org-mode
* Remove readme and sourcecode and fix typos
* Remove reveal_all and edit table snippet
2018-04-07 15:40:15 +01:00
Carl Lieberman
b663ac7f37
Add snippets for latex-mode ( #241 )
...
* Add sum snippet for LaTeX
* Add int snippet for LaTeX
* Add prod snippet for LaTeX
* Add binom snippet for LaTeX
* Add bigcup snippet for LaTeX
* Add bigcap snippet for LaTeX
* Remove trailing lines
* Replace two-word arguments with one word
* Actually, remove the words entirely
2018-04-07 15:12:47 +01:00
Sunil
41030e2b01
Add snippets for bazel-mode ( #255 )
...
* bazel mode snippets for cc
* bazel mode snippets for java.
added bazel mode java snippets and added newline at eof
* bazel mode snippets for python
* bazel mode snippets for shell
2018-04-07 15:08:56 +01:00
Jader Martins
6c11e532e8
fix indent function haskell ( #261 )
...
* fix indent function
* remove extra line
2018-04-07 14:57:26 +01:00
Guillermo Robles
79fc648da3
Add bibtex-mode snippets ( #251 )
...
* Add bibtex-mode snippets
* Move yas-indent-line option to .yas-setup.el file
2018-03-24 18:24:04 +00:00
Julio Oliveira
2b4c4d7ef7
Fix python-mode/function_docstring_numpy docstring indentation ( #256 )
2018-03-07 13:18:25 +00:00
James N
26b33acf8c
Add snippets for kotlin ( #246 )
2018-02-22 09:03:07 +01:00
Marco Craveiro
d88001c1fb
Latex: add snippet for description ( #250 )
...
Similarly to itemize and enumerate, the description snippet creates a
list of items, with a description associated. Copied from the
enumerate snippet.
2018-02-22 08:55:33 +01:00
Erick Navarro
652419d299
Add markdown-mode code block ( #254 )
2018-02-22 08:55:18 +01:00
Noam Postavsky
b42c2b670b
Remove paren-wrapping snippets from emacs-lisp-mode ( #248 )
...
There are several snippets whose expansion is nothing more than
(KEY $0)
where KEY is the snippet's #key field. These snippets do nothing but
save you typing in the parentheses. Using a package like paredit, or
smartparens would be more suited to this. There are currently a lot
of snippets in emacs-lisp-mode, which makes browsing through the list
more difficult, so these least useful ones should be removed.
2018-01-22 13:21:12 +00:00
kchenphy
f76efc2054
Add snippet for elisp package ( #239 )
...
* Add snippet for elisp package
* Update snippets
* Combine lexical-binding line with package declaration line.
(to prevent checkdoc from triggering)
* Provide sensible default for license.
2018-01-12 13:16:35 +00:00
James N
3ab16fb465
Add snippets for swift ( #244 )
2018-01-07 09:47:42 +00:00
Wahed Mangal
2bb3cc1b2e
Elixir cleanup + 5 useful snippets ( #245 )
...
* removed trailing newline from elixir snippets
* 5 convenience snippets I often use
2018-01-06 21:17:06 +00:00
fnwiya
7fc2b95e2f
add type to git_commit_mode ( #240 )
2018-01-05 10:08:00 +00:00
Ludwig PACIFICI
737953ea6b
Added Rust snippets "eprint" and "eprintln" ( #243 )
...
eprint/eprintln snippets behave like print/prinln.
* eprintln: Macro for printing to the standard error, with a newline.
* eprint: Macro for printing to the standard error.
2018-01-05 10:07:07 +00:00
Andrea Crotti
72d3292f7a
add missing backquote
2017-11-27 12:23:56 +00:00
ybiquitous
13bee06e1f
Add method and accessor (getter/setter) snippets for ES6 ( #237 )
...
For details, see below links:
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Method_definitions
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/set
2017-11-22 21:39:30 +00:00
randen
6b6dcd9eca
Fix typo ( #236 )
...
Typo in 'insertmacro'
2017-11-06 12:47:26 +00:00
Noam Postavsky
120d35010a
Move some C/++ specific stuff to its own subdir ( #231 )
2017-10-31 13:17:53 +00:00
Thomas Atkinson
ebe3b513df
Php doc changes ( #232 )
...
* Change type indent width for phpdoc param tags
phpcs expects one space between @param tag and type
identifier. Checking
http://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.pkg.html
there is only meant to be one space included.
* Remove * at end of phpdoc return tag
The return tag should be the last tag in the phpdoc block and should
not add a extra line for a extra tag.
2017-10-31 09:48:31 +00:00
Patrick Nuckolls
e28a7391ef
Update template ( #235 )
...
Moved spaces that were part of the default values out of them as they are always going to be left in, and moved the quotes outside of the docstring default as they will usually be there.
2017-10-30 13:11:25 +00:00
ybiquitous
07389c6723
add 'try...catch' statement snippet to js-mode ( #227 )
...
* add 'try...catch' statement snippet to js-mode
For details, see below link:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch
* change variable name from `e` to `err` for Error object
2017-10-10 20:24:37 +01:00
ybiquitous
29ce99b841
add arrow function snippets to js-mode (ES2015 syntax) ( #226 )
...
* add arrow function snippets to js-mode (ES2015 syntax)
For details, see below link:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
* Make 'arrow-function' snippet more simple
2017-10-06 17:18:12 +01:00
Nathanael Merlin
143b31a4eb
Add powershell-mode with basic function snippets ( #220 )
2017-10-06 17:16:24 +01:00
Noam Postavsky
65764856df
Put $0 before comment-end ( #221 )
...
* Put $0 before comment-end
* snippets/prog-mode/fixme:
* snippets/prog-mode/todo:
* snippets/prog-mode/xxx: Use comment-start and comment-end directly
instead of `yas-with-comment` so that $0 can be inserted before comment-end.
* * snippets/prog-mode/.yas-setup.el (yas-with-comment): Remove.
2017-10-01 14:06:13 +01:00
ybiquitous
39b8becede
add Promise snippet to js-mode (since ES2015) ( #228 )
...
For details, see below link:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/promise
2017-10-01 12:27:37 +01:00
Andrea Crotti
227845c8b9
move script to the right place
2017-10-01 12:25:27 +01:00
Davidbrcz
7534870632
Update cc-mode/main ( #222 )
...
The current cc-mode/main snippet does not compile out of the box with gcc or g++.
I reverted it to a more standard code which does not use variable length array with its arguments
2017-09-27 13:09:05 +01:00
ybiquitous
76e5443738
add snippets for 'let' and 'const' statements (ES2015 syntax) ( #225 )
...
For details, see below links:
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
2017-09-27 13:07:36 +01:00
Andrea Crotti
bcbdc760f8
fixes #223
2017-09-26 18:24:39 +01:00
ybiquitous
70903229b4
add snippets about ES2015 module syntax (import, export) ( #219 )
...
* add snippets about ES2015 module syntax (import, export)
For details, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
* follow exact 'import' syntax
* add 'group: es6'
2017-09-20 20:34:01 +01:00
ybiquitous
728a66d6c3
rewrite 'class' and 'constructor' for ES2015 syntax in js-mode ( #218 )
...
* rewrite 'class' and 'constructor' for ES2015 syntax in js-mode
* fine tuning
* fine tuning
* add new snippets 'class-es6' and 'init-es6' for backward compatibility
2017-09-20 20:33:21 +01:00
USAMI Kenta
1cb40233f8
Add snippets for php-mode ( #205 )
...
* Add snippets for php-mode
* Fix typo
2017-09-20 19:05:01 +01:00
ybiquitous
643d6a0e10
add "switch" snippet to js-mode ( #217 )
...
Inspired by other language modes (go, cc, php, etc.).
2017-09-15 16:57:11 +01:00
ybiquitous
00e4e12922
insert space between "for" keyword and "(" ( #215 )
...
* insert space between "for" keyword and "("
In order to follow the standard JavaScript coding style.
* trim final newline
2017-09-14 11:04:34 +01:00
ybiquitous
886befad0e
use "forEach" instead of "each" ( #216 )
...
"forEach" is standard API, but "each" is non-standard.
See below:
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
- https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach
2017-09-14 09:24:11 +01:00
Thibault
5c3bb7ad8f
Fix path for csharp-mode/main ( #212 )
2017-09-08 12:35:24 +01:00
Avelino
e62b18c771
create python snippet bang #! ( #213 )
2017-09-08 12:34:01 +01:00
振宗
e3739ecc73
Update metaclass ( #210 )
2017-09-03 16:50:10 +01:00
Sergey Timanin
5eeac454aa
Correct terraform 'resource' snippet ( #207 )
...
Type definition was missing. As the official Terraform documentation states:
> The resource block defines a resource that exists within the infrastructure. A resource might be a physical component such as an EC2 instance, or it can be a logical resource such as a Heroku application.
From: https://www.terraform.io/intro/getting-started/build.html#configuration
2017-08-22 21:56:01 +01:00
USAMI Kenta
98a784a7ed
Add PHP basic syntax (statement) for php-mode ( #202 )
...
* Add PHP basic syntax (statement) for php-mode
* Add php-mode/.yas-setup.el
* Replace to function (yas-php-get-class-name-by-file-name)
2017-08-21 11:01:54 +01:00
Andrea Crotti
0253a7eb57
move everything in snippets as it should be ( #203 )
2017-08-13 12:16:55 +01:00
sshaw
d33168d770
Move Ruby mod snippet to ruby-mode
2016-01-15 23:11:43 -05:00
Jim Myhrberg
21d5f45855
Add `mod` snippet to ruby-mode for `module` definitions
2015-07-05 12:03:38 -04:00