Modify snippets to support zero tabstop
This commit is contained in:
parent
2ab7f91dc4
commit
7f9c4f5807
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# (c) holds no legal value ;)
|
# (c) holds no legal value ;)
|
||||||
snippet c)
|
snippet c)
|
||||||
Copyright `&enc[:2] == "utf" ? "©" : "(c)"` `strftime("%Y")` ${1:`g:snips_author`}. All Rights Reserved.${2}
|
Copyright `&enc[:2] == "utf" ? "©" : "(c)"` `strftime("%Y")` ${1:`g:snips_author`}. All Rights Reserved.
|
||||||
snippet date
|
snippet date
|
||||||
`strftime("%Y-%m-%d")`
|
`strftime("%Y-%m-%d")`
|
||||||
snippet ddate
|
snippet ddate
|
||||||
@ -30,7 +30,7 @@ snippet GPL2
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, see <http://www.gnu.org/licenses/>.
|
along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
${3}
|
${0}
|
||||||
snippet LGPL2
|
snippet LGPL2
|
||||||
${1:One line to give the program's name and a brief description.}
|
${1:One line to give the program's name and a brief description.}
|
||||||
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
||||||
@ -48,7 +48,7 @@ snippet LGPL2
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this library; if not, see <http://www.gnu.org/licenses/>.
|
along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
${3}
|
${0}
|
||||||
snippet GPL3
|
snippet GPL3
|
||||||
${1:one line to give the program's name and a brief description.}
|
${1:one line to give the program's name and a brief description.}
|
||||||
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
||||||
@ -66,7 +66,7 @@ snippet GPL3
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
${3}
|
${0}
|
||||||
snippet LGPL3
|
snippet LGPL3
|
||||||
${1:One line to give the program's name and a brief description.}
|
${1:One line to give the program's name and a brief description.}
|
||||||
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
||||||
@ -84,7 +84,7 @@ snippet LGPL3
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this library; if not, see <http://www.gnu.org/licenses/>.
|
along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
${3}
|
${0}
|
||||||
snippet BSD2
|
snippet BSD2
|
||||||
${1:one line to give the program's name and a brief description}
|
${1:one line to give the program's name and a brief description}
|
||||||
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
||||||
@ -114,7 +114,7 @@ snippet BSD2
|
|||||||
are those of the authors and should not be interpreted as representing
|
are those of the authors and should not be interpreted as representing
|
||||||
official policies, either expressedor implied, of $2.
|
official policies, either expressedor implied, of $2.
|
||||||
|
|
||||||
${4}
|
${0}
|
||||||
snippet BSD3
|
snippet BSD3
|
||||||
${1:one line to give the program's name and a brief description}
|
${1:one line to give the program's name and a brief description}
|
||||||
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
||||||
@ -142,7 +142,7 @@ snippet BSD3
|
|||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
${4}
|
${0}
|
||||||
snippet BSD4
|
snippet BSD4
|
||||||
${1:one line to give the program's name and a brief description}
|
${1:one line to give the program's name and a brief description}
|
||||||
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
||||||
@ -173,7 +173,7 @@ snippet BSD4
|
|||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
${4}
|
${0}
|
||||||
snippet MIT
|
snippet MIT
|
||||||
${1:one line to give the program's name and a brief description}
|
${1:one line to give the program's name and a brief description}
|
||||||
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
Copyright (C) `strftime("%Y")` ${2:copyright holder}
|
||||||
@ -196,7 +196,7 @@ snippet MIT
|
|||||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
||||||
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
${3}
|
${0}
|
||||||
snippet APACHE
|
snippet APACHE
|
||||||
${1:one line to give the program's name and a brief description}
|
${1:one line to give the program's name and a brief description}
|
||||||
Copyright `strftime("%Y")` ${2:copyright holder}
|
Copyright `strftime("%Y")` ${2:copyright holder}
|
||||||
@ -213,7 +213,7 @@ snippet APACHE
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
${3}
|
${0}
|
||||||
snippet BEERWARE
|
snippet BEERWARE
|
||||||
${2:one line to give the program's name and a brief description}
|
${2:one line to give the program's name and a brief description}
|
||||||
Copyright `strftime("%Y")` ${3:copyright holder}
|
Copyright `strftime("%Y")` ${3:copyright holder}
|
||||||
@ -223,13 +223,13 @@ snippet BEERWARE
|
|||||||
can do whatever you want with this stuff. If we meet some day, and you think
|
can do whatever you want with this stuff. If we meet some day, and you think
|
||||||
this stuff is worth it, you can buy me a beer or coffee in return
|
this stuff is worth it, you can buy me a beer or coffee in return
|
||||||
|
|
||||||
${4}
|
${0}
|
||||||
|
|
||||||
snippet WTFPL
|
snippet WTFPL
|
||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
Version 2, December 2004
|
Version 2, December 2004
|
||||||
|
|
||||||
Copyright `strftime("%Y")` ${1:copyright holder}
|
Copyright `strftime("%Y")` ${0:copyright holder}
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim or modified
|
Everyone is permitted to copy and distribute verbatim or modified
|
||||||
copies of this license document, and changing it is allowed as long
|
copies of this license document, and changing it is allowed as long
|
||||||
|
@ -20,7 +20,7 @@ snippet main
|
|||||||
|
|
||||||
}
|
}
|
||||||
snippet class
|
snippet class
|
||||||
${1:public|internal} class ${2:name} ${3:extends } {
|
${1:public|internal} class ${2:name} ${0:extends } {
|
||||||
public function $2 ( ) {
|
public function $2 ( ) {
|
||||||
("start");
|
("start");
|
||||||
}
|
}
|
||||||
@ -28,7 +28,7 @@ snippet class
|
|||||||
snippet all
|
snippet all
|
||||||
package name {
|
package name {
|
||||||
|
|
||||||
${1:public|internal|final} class ${2:name} ${3:extends } {
|
${1:public|internal|final} class ${2:name} ${0:extends } {
|
||||||
private|public| static const FOO = "abc";
|
private|public| static const FOO = "abc";
|
||||||
private|public| static var BAR = "abc";
|
private|public| static var BAR = "abc";
|
||||||
|
|
||||||
@ -55,48 +55,48 @@ snippet all
|
|||||||
snippet switch
|
snippet switch
|
||||||
switch(${1}){
|
switch(${1}){
|
||||||
case ${2}:
|
case ${2}:
|
||||||
${3}
|
${0}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
snippet case
|
snippet case
|
||||||
case ${1}:
|
case ${1}:
|
||||||
${2}
|
${0}
|
||||||
break;
|
break;
|
||||||
snippet package
|
snippet package
|
||||||
package ${1:package}{
|
package ${1:package}{
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet wh
|
snippet wh
|
||||||
while ${1:cond}{
|
while ${1:cond}{
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet do
|
snippet do
|
||||||
do {
|
do {
|
||||||
${2}
|
${0}
|
||||||
} while (${1:cond})
|
} while (${1:cond})
|
||||||
snippet wh
|
snippet wh
|
||||||
while ${1:cond}{
|
while ${1:cond}{
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet for enumerate names
|
snippet for enumerate names
|
||||||
for (${1:var} in ${2:object}){
|
for (${1:var} in ${2:object}){
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet for enumerate values
|
snippet for enumerate values
|
||||||
for each (${1:var} in ${2:object}){
|
for each (${1:var} in ${2:object}){
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet get_set
|
snippet get_set
|
||||||
function get ${1:name} {
|
function get ${1:name} {
|
||||||
return ${2}
|
return ${2}
|
||||||
}
|
}
|
||||||
function set $1 (newValue) {
|
function set $1 (newValue) {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet interface
|
snippet interface
|
||||||
interface name {
|
interface name {
|
||||||
function method(${1}):${2:returntype};
|
function method(${1}):${0:returntype};
|
||||||
}
|
}
|
||||||
snippet try
|
snippet try
|
||||||
try {
|
try {
|
||||||
@ -104,34 +104,34 @@ snippet try
|
|||||||
} catch (error:ErrorType) {
|
} catch (error:ErrorType) {
|
||||||
${2}
|
${2}
|
||||||
} finally {
|
} finally {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
# For Loop (same as c.snippet)
|
# For Loop (same as c.snippet)
|
||||||
snippet for for (..) {..}
|
snippet for for (..) {..}
|
||||||
for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
|
for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
# Custom For Loop
|
# Custom For Loop
|
||||||
snippet forr
|
snippet forr
|
||||||
for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {
|
for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {
|
||||||
${5}
|
${0}
|
||||||
}
|
}
|
||||||
# If Condition
|
# If Condition
|
||||||
snippet if
|
snippet if
|
||||||
if (${1:/* condition */}) {
|
if (${1:/* condition */}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet el
|
snippet el
|
||||||
else {
|
else {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
# Ternary conditional
|
# Ternary conditional
|
||||||
snippet t
|
snippet t
|
||||||
${1:/* condition */} ? ${2:a} : ${3:b}
|
${1:/* condition */} ? ${2:a} : ${0:b}
|
||||||
snippet fun
|
snippet fun
|
||||||
function ${1:function_name}(${2})${3}
|
function ${1:function_name}(${2})${3}
|
||||||
{
|
{
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
# FlxSprite (usefull when using the flixel library)
|
# FlxSprite (usefull when using the flixel library)
|
||||||
snippet FlxSprite
|
snippet FlxSprite
|
||||||
@ -150,7 +150,7 @@ snippet FlxSprite
|
|||||||
override public function update():void
|
override public function update():void
|
||||||
{
|
{
|
||||||
super.update();
|
super.update();
|
||||||
${5}
|
${0}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,34 +2,34 @@
|
|||||||
# <Directory>
|
# <Directory>
|
||||||
snippet dir
|
snippet dir
|
||||||
<Directory ${1:/}>
|
<Directory ${1:/}>
|
||||||
DirectoryIndex ${2:index.html}
|
DirectoryIndex ${0:index.html}
|
||||||
Order Deny,Allow
|
Order Deny,Allow
|
||||||
Deny from All
|
Deny from All
|
||||||
</Directory>
|
</Directory>
|
||||||
# <FilesMatch>
|
# <FilesMatch>
|
||||||
snippet filesmatch
|
snippet filesmatch
|
||||||
<FilesMatch "${1:regex}">
|
<FilesMatch "${1:regex}">
|
||||||
${2}
|
${0}
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
# <IfModule>
|
# <IfModule>
|
||||||
snippet ifmodule
|
snippet ifmodule
|
||||||
<IfModule ${1:mod_example.c}>
|
<IfModule ${1:mod_example.c}>
|
||||||
${2}
|
${0}
|
||||||
</IfModule>
|
</IfModule>
|
||||||
# <LimitExcept>
|
# <LimitExcept>
|
||||||
snippet limitexcept
|
snippet limitexcept
|
||||||
<LimitExcept ${1:POST GET}>
|
<LimitExcept ${1:POST GET}>
|
||||||
${2}
|
${0}
|
||||||
</LimitExcept>
|
</LimitExcept>
|
||||||
# <Proxy>
|
# <Proxy>
|
||||||
snippet proxy
|
snippet proxy
|
||||||
<Proxy ${1:*}>
|
<Proxy ${1:*}>
|
||||||
${2}
|
${0}
|
||||||
</Proxy>
|
</Proxy>
|
||||||
# <VirtualHost>
|
# <VirtualHost>
|
||||||
snippet virtualhost
|
snippet virtualhost
|
||||||
<VirtualHost ${1:*}:${2:80}>
|
<VirtualHost ${1:*}:${2:80}>
|
||||||
ServerAdmin ${3:webmaster@example.com}
|
ServerAdmin ${3:webmaster@example.com}
|
||||||
DocumentRoot ${4:/www/example.com}
|
DocumentRoot ${4:/www/example.com}
|
||||||
ServerName ${5:www.example.com}
|
ServerName ${0:www.example.com}
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
snippet if
|
snippet if
|
||||||
If ${1:condition} Then
|
If ${1:condition} Then
|
||||||
${2:; True code}
|
${0:; True code}
|
||||||
EndIf
|
EndIf
|
||||||
snippet el
|
snippet el
|
||||||
Else
|
Else
|
||||||
${1}
|
${0}
|
||||||
snippet eif
|
snippet eif
|
||||||
ElseIf ${1:condition} Then
|
ElseIf ${1:condition} Then
|
||||||
${2:; True code}
|
${0:; True code}
|
||||||
# If/Else block
|
# If/Else block
|
||||||
snippet ife
|
snippet ife
|
||||||
If ${1:condition} Then
|
If ${1:condition} Then
|
||||||
${2:; True code}
|
${2:; True code}
|
||||||
Else
|
Else
|
||||||
${3:; Else code}
|
${0:; Else code}
|
||||||
EndIf
|
EndIf
|
||||||
# If/ElseIf/Else block - because there is eif this is not really neccessary
|
# If/ElseIf/Else block - because there is eif this is not really neccessary
|
||||||
snippet ifelif
|
snippet ifelif
|
||||||
@ -22,45 +22,45 @@ snippet ifelif
|
|||||||
ElseIf ${3:condition 2} Then
|
ElseIf ${3:condition 2} Then
|
||||||
${4:; True code}
|
${4:; True code}
|
||||||
Else
|
Else
|
||||||
${5:; Else code}
|
${0:; Else code}
|
||||||
EndIf
|
EndIf
|
||||||
# Switch block
|
# Switch block
|
||||||
snippet switch
|
snippet switch
|
||||||
Switch (${1:condition})
|
Switch (${1:condition})
|
||||||
Case {$2:case1}:
|
Case ${2:case1}:
|
||||||
{$3:; Case 1 code}
|
${3:; Case 1 code}
|
||||||
Case Else:
|
Case Else:
|
||||||
{$4:; Else code}
|
${0:; Else code}
|
||||||
EndSwitch
|
EndSwitch
|
||||||
# Select block
|
# Select block
|
||||||
snippet select
|
snippet select
|
||||||
Select (${1:condition})
|
Select (${1:condition})
|
||||||
Case {$2:case1}:
|
Case ${2:case1}:
|
||||||
{$3:; Case 1 code}
|
${3:; Case 1 code}
|
||||||
Case Else:
|
Case Else:
|
||||||
{$4:; Else code}
|
${0:; Else code}
|
||||||
EndSelect
|
EndSelect
|
||||||
# While loop
|
# While loop
|
||||||
snippet wh
|
snippet wh
|
||||||
While (${1:condition})
|
While (${1:condition})
|
||||||
${2:; code...}
|
${0:; code...}
|
||||||
WEnd
|
WEnd
|
||||||
# For loop
|
# For loop
|
||||||
snippet for
|
snippet for
|
||||||
For ${1:n} = ${3:1} to ${2:count}
|
For ${1:n} = ${3:1} to ${2:count}
|
||||||
${4:; code...}
|
${0:; code...}
|
||||||
Next
|
Next
|
||||||
# New Function
|
# New Function
|
||||||
snippet func
|
snippet func
|
||||||
Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
||||||
${4:Return}
|
${0:Return}
|
||||||
EndFunc
|
EndFunc
|
||||||
# Message box
|
# Message box
|
||||||
snippet msg
|
snippet msg
|
||||||
MsgBox(${3:MsgType}, ${1:"Title"}, ${2:"Message Text"})
|
MsgBox(${0:MsgType}, ${1:"Title"}, ${2:"Message Text"})
|
||||||
# Debug Message
|
# Debug Message
|
||||||
snippet debug
|
snippet debug
|
||||||
MsgBox(0, "Debug", ${1:"Debug Message"})
|
MsgBox(0, "Debug", ${0:"Debug Message"})
|
||||||
# Show Variable Debug Message
|
# Show Variable Debug Message
|
||||||
snippet showvar
|
snippet showvar
|
||||||
MsgBox(0, "${1:VarName}", $1)
|
MsgBox(0, "${0:VarName}", $1)
|
||||||
|
@ -3,29 +3,29 @@
|
|||||||
snippet main
|
snippet main
|
||||||
int main(int argc, const char *argv[])
|
int main(int argc, const char *argv[])
|
||||||
{
|
{
|
||||||
${1}
|
${0}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
# main(void)
|
# main(void)
|
||||||
snippet mainn
|
snippet mainn
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
${1}
|
${0}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
##
|
##
|
||||||
## Preprocessor
|
## Preprocessor
|
||||||
# #include <...>
|
# #include <...>
|
||||||
snippet inc
|
snippet inc
|
||||||
#include <${1:stdio}.h>${2}
|
#include <${1:stdio}.h>
|
||||||
# #include "..."
|
# #include "..."
|
||||||
snippet Inc
|
snippet Inc
|
||||||
#include "${1:`vim_snippets#Filename("$1.h")`}"${2}
|
#include "${1:`vim_snippets#Filename("$1.h")`}"
|
||||||
# ifndef...define...endif
|
# ifndef...define...endif
|
||||||
snippet ndef
|
snippet ndef
|
||||||
#ifndef $1
|
#ifndef $1
|
||||||
#define ${1:SYMBOL} ${2:value}
|
#define ${1:SYMBOL} ${2:value}
|
||||||
#endif${3}
|
#endif
|
||||||
# define
|
# define
|
||||||
snippet def
|
snippet def
|
||||||
#define
|
#define
|
||||||
@ -33,11 +33,11 @@ snippet def
|
|||||||
snippet ifdef
|
snippet ifdef
|
||||||
#ifdef ${1:FOO}
|
#ifdef ${1:FOO}
|
||||||
${2:#define }
|
${2:#define }
|
||||||
#endif${3}
|
#endif
|
||||||
# if
|
# if
|
||||||
snippet #if
|
snippet #if
|
||||||
#if ${1:FOO}
|
#if ${1:FOO}
|
||||||
${2}
|
${0}
|
||||||
#endif
|
#endif
|
||||||
# header include guard
|
# header include guard
|
||||||
snippet once
|
snippet once
|
||||||
@ -45,7 +45,7 @@ snippet once
|
|||||||
|
|
||||||
#define $1
|
#define $1
|
||||||
|
|
||||||
${2}
|
${0}
|
||||||
|
|
||||||
#endif /* end of include guard: $1 */
|
#endif /* end of include guard: $1 */
|
||||||
##
|
##
|
||||||
@ -54,20 +54,20 @@ snippet once
|
|||||||
snippet if
|
snippet if
|
||||||
if (${1:/* condition */}) {
|
if (${1:/* condition */}) {
|
||||||
${2}
|
${2}
|
||||||
}${3}
|
}
|
||||||
# else
|
# else
|
||||||
snippet el
|
snippet el
|
||||||
else {
|
else {
|
||||||
${1}
|
${1}
|
||||||
}${2}
|
}
|
||||||
# else if
|
# else if
|
||||||
snippet elif
|
snippet elif
|
||||||
else if (${1:/* condition */}) {
|
else if (${1:/* condition */}) {
|
||||||
${2}
|
${2}
|
||||||
}${3}
|
}
|
||||||
# ifi
|
# ifi
|
||||||
snippet ifi
|
snippet ifi
|
||||||
if (${1:/* condition */}) ${2};${3}
|
if (${1:/* condition */}) ${2};
|
||||||
# ternary
|
# ternary
|
||||||
snippet t
|
snippet t
|
||||||
${1:/* condition */} ? ${2:a} : ${3:b}
|
${1:/* condition */} ? ${2:a} : ${3:b}
|
||||||
@ -79,41 +79,41 @@ snippet switch
|
|||||||
${4:break;}${5}
|
${4:break;}${5}
|
||||||
default:
|
default:
|
||||||
${6}
|
${6}
|
||||||
}${7}
|
}
|
||||||
# switch without default
|
# switch without default
|
||||||
snippet switchndef
|
snippet switchndef
|
||||||
switch (${1:/* variable */}) {
|
switch (${1:/* variable */}) {
|
||||||
case ${2:/* variable case */}:
|
case ${2:/* variable case */}:
|
||||||
${3}
|
${3}
|
||||||
${4:break;}${5}
|
${4:break;}${5}
|
||||||
}${6}
|
}
|
||||||
# case
|
# case
|
||||||
snippet case
|
snippet case
|
||||||
case ${1:/* variable case */}:
|
case ${1:/* variable case */}:
|
||||||
${2}
|
${2}
|
||||||
${3:break;}${4}
|
${3:break;}
|
||||||
##
|
##
|
||||||
## Loops
|
## Loops
|
||||||
# for
|
# for
|
||||||
snippet for
|
snippet for
|
||||||
for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
|
for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
|
||||||
${4}
|
${4}
|
||||||
}${5}
|
}
|
||||||
# for (custom)
|
# for (custom)
|
||||||
snippet forr
|
snippet forr
|
||||||
for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {
|
for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {
|
||||||
${5}
|
${5}
|
||||||
}${6}
|
}
|
||||||
# while
|
# while
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1:/* condition */}) {
|
while (${1:/* condition */}) {
|
||||||
${2}
|
${2}
|
||||||
}${3}
|
}
|
||||||
# do... while
|
# do... while
|
||||||
snippet do
|
snippet do
|
||||||
do {
|
do {
|
||||||
${2}
|
${2}
|
||||||
} while (${1:/* condition */});${3}
|
} while (${1:/* condition */});
|
||||||
##
|
##
|
||||||
## Functions
|
## Functions
|
||||||
# function definition
|
# function definition
|
||||||
@ -121,38 +121,38 @@ snippet fun
|
|||||||
${1:void} ${2:function_name}(${3})
|
${1:void} ${2:function_name}(${3})
|
||||||
{
|
{
|
||||||
${4}
|
${4}
|
||||||
}${5}
|
}
|
||||||
# function declaration
|
# function declaration
|
||||||
snippet fund
|
snippet fund
|
||||||
${1:void} ${2:function_name}(${3});${4}
|
${1:void} ${2:function_name}(${3});
|
||||||
##
|
##
|
||||||
## Types
|
## Types
|
||||||
# typedef
|
# typedef
|
||||||
snippet td
|
snippet td
|
||||||
typedef ${1:int} ${2:MyCustomType};${3}
|
typedef ${1:int} ${2:MyCustomType};
|
||||||
# struct
|
# struct
|
||||||
snippet st
|
snippet st
|
||||||
struct ${1:`vim_snippets#Filename('$1_t', 'name')`} {
|
struct ${1:`vim_snippets#Filename('$1_t', 'name')`} {
|
||||||
${2:/* data */}
|
${2:/* data */}
|
||||||
}${3: /* optional variable list */};${4}
|
}${3: /* optional variable list */};
|
||||||
# typedef struct
|
# typedef struct
|
||||||
snippet tds
|
snippet tds
|
||||||
typedef struct ${2:_$1 }{
|
typedef struct ${2:_$1 }{
|
||||||
${3:/* data */}
|
${3:/* data */}
|
||||||
} ${1:`vim_snippets#Filename('$1_t', 'name')`};${4}
|
} ${1:`vim_snippets#Filename('$1_t', 'name')`};
|
||||||
# typedef enum
|
# typedef enum
|
||||||
snippet tde
|
snippet tde
|
||||||
typedef enum {
|
typedef enum {
|
||||||
${1:/* data */}
|
${1:/* data */}
|
||||||
} ${2:foo};${3}
|
} ${2:foo};
|
||||||
##
|
##
|
||||||
## Input/Output
|
## Input/Output
|
||||||
# printf
|
# printf
|
||||||
snippet pr
|
snippet pr
|
||||||
printf("${1:%s}\n"${2});${3}
|
printf("${1:%s}\n"${2});
|
||||||
# fprintf (again, this isn't as nice as TextMate's version, but it works)
|
# fprintf (again, this isn't as nice as TextMate's version, but it works)
|
||||||
snippet fpr
|
snippet fpr
|
||||||
fprintf(${1:stderr}, "${2:%s}\n"${3});${4}
|
fprintf(${1:stderr}, "${2:%s}\n"${3});
|
||||||
# getopt
|
# getopt
|
||||||
snippet getopt
|
snippet getopt
|
||||||
int choice;
|
int choice;
|
||||||
@ -207,14 +207,14 @@ snippet getopt
|
|||||||
{
|
{
|
||||||
while ( optind < argc )
|
while ( optind < argc )
|
||||||
{
|
{
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
##
|
##
|
||||||
## Miscellaneous
|
## Miscellaneous
|
||||||
# This is kind of convenient
|
# This is kind of convenient
|
||||||
snippet .
|
snippet .
|
||||||
[${1}]${2}
|
[${1}]
|
||||||
# GPL
|
# GPL
|
||||||
snippet gpl
|
snippet gpl
|
||||||
/*
|
/*
|
||||||
@ -234,4 +234,4 @@ snippet gpl
|
|||||||
* Copyright (C) ${1:Author}, `strftime("%Y")`
|
* Copyright (C) ${1:Author}, `strftime("%Y")`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
${2}
|
${0}
|
||||||
|
@ -17,7 +17,7 @@ snippet cookbook_file
|
|||||||
|
|
||||||
${14:#}${15: action :create} # Create this file (Default)
|
${14:#}${15: action :create} # Create this file (Default)
|
||||||
${16:#}${17: action :create_if_missing} # Create only if it doesn't exist yet
|
${16:#}${17: action :create_if_missing} # Create only if it doesn't exist yet
|
||||||
${18:#}${19: action :delete} # Delete this file
|
${18:#}${0: action :delete} # Delete this file
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet execute
|
snippet execute
|
||||||
@ -34,7 +34,7 @@ snippet execute
|
|||||||
${18:#}umask ${19:nil} # Umask for files created by the command
|
${18:#}umask ${19:nil} # Umask for files created by the command
|
||||||
|
|
||||||
${20:#}${21:action :run} # Run this command (Default)
|
${20:#}${21:action :run} # Run this command (Default)
|
||||||
${22:#}${23:action :nothing} # Do not run this command
|
${22:#}${0:action :nothing} # Do not run this command
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet link
|
snippet link
|
||||||
@ -46,7 +46,7 @@ snippet link
|
|||||||
${8:#}group ${9} # The group of the symlink
|
${8:#}group ${9} # The group of the symlink
|
||||||
|
|
||||||
${10:#}${11:action :create} # Create a link (Default)
|
${10:#}${11:action :create} # Create a link (Default)
|
||||||
${12:#}${13:action :delete} # Delete a link
|
${12:#}${0:action :delete} # Delete a link
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet package
|
snippet package
|
||||||
@ -61,7 +61,7 @@ snippet package
|
|||||||
${12:#}${13:action :install} # Install a package - if version is provided, install that specific version (Default)
|
${12:#}${13:action :install} # Install a package - if version is provided, install that specific version (Default)
|
||||||
${14:#}${15:action :upgrade} # Upgrade a package - if version is provided, upgrade to that specific version
|
${14:#}${15:action :upgrade} # Upgrade a package - if version is provided, upgrade to that specific version
|
||||||
${16:#}${17:action :remove} # Remove a package
|
${16:#}${17:action :remove} # Remove a package
|
||||||
${18:#}${19:action :purge} # Purge a package (this usually entails removing configuration files as well as the package itself)
|
${18:#}${0:action :purge} # Purge a package (this usually entails removing configuration files as well as the package itself)
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet service
|
snippet service
|
||||||
@ -83,7 +83,7 @@ snippet service
|
|||||||
${26:#}${27:action :start} # Start this service
|
${26:#}${27:action :start} # Start this service
|
||||||
${28:#}${29:action :stop} # Stop this service
|
${28:#}${29:action :stop} # Stop this service
|
||||||
${30:#}${31:action :restart} # Restart this service
|
${30:#}${31:action :restart} # Restart this service
|
||||||
${32:#}${33:action :reload} # Reload the configuration for this service
|
${32:#}${0:action :reload} # Reload the configuration for this service
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet file
|
snippet file
|
||||||
@ -97,7 +97,7 @@ snippet file
|
|||||||
|
|
||||||
${12:#}${13:action :create} # Create this file (Default)
|
${12:#}${13:action :create} # Create this file (Default)
|
||||||
${14:#}${15:action :delete} # Delete this file
|
${14:#}${15:action :delete} # Delete this file
|
||||||
${16:#}${17:action :touch} # Touch this file (update the mtime/atime)
|
${16:#}${0:action :touch} # Touch this file (update the mtime/atime)
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet directory
|
snippet directory
|
||||||
@ -109,7 +109,7 @@ snippet directory
|
|||||||
${10:#}recursive ${11:false} # When deleting the directory, delete it recursively. When creating the directory, create recursively (ie, mkdir -p)
|
${10:#}recursive ${11:false} # When deleting the directory, delete it recursively. When creating the directory, create recursively (ie, mkdir -p)
|
||||||
|
|
||||||
${12:#}${13:action :create} # Create this directory (Default)
|
${12:#}${13:action :create} # Create this directory (Default)
|
||||||
${14:#}${15:action :delete} # Delete this directory
|
${14:#}${0:action :delete} # Delete this directory
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet template
|
snippet template
|
||||||
@ -127,7 +127,7 @@ snippet template
|
|||||||
|
|
||||||
${20:#}${21:action :create} # Create the file (Default)
|
${20:#}${21:action :create} # Create the file (Default)
|
||||||
${22:#}${23:action :delete} # Delete this file
|
${22:#}${23:action :delete} # Delete this file
|
||||||
${24:#}${25:action :touch} # Touch this file (update the mtime/atime)
|
${24:#}${0:action :touch} # Touch this file (update the mtime/atime)
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet svn
|
snippet svn
|
||||||
@ -144,7 +144,7 @@ snippet svn
|
|||||||
|
|
||||||
${18:#}${19:action :sync} # Update the source to the specified revision, or get a new checkout (Default)
|
${18:#}${19:action :sync} # Update the source to the specified revision, or get a new checkout (Default)
|
||||||
${20:#}${21:action :checkout} # Checkout the source. Does nothing if a checkout is available
|
${20:#}${21:action :checkout} # Checkout the source. Does nothing if a checkout is available
|
||||||
${22:#}${23:action :export} # Export the source, excluding or removing any version control artifacts
|
${22:#}${0:action :export} # Export the source, excluding or removing any version control artifacts
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet git
|
snippet git
|
||||||
@ -162,7 +162,7 @@ snippet git
|
|||||||
|
|
||||||
${20:#}${21:action :sync} # Update the source to the specified revision, or get a new clone (Default)
|
${20:#}${21:action :sync} # Update the source to the specified revision, or get a new clone (Default)
|
||||||
${22:#}${23:action :checkout} # Clone the source. Does nothing if a checkout is available
|
${22:#}${23:action :checkout} # Clone the source. Does nothing if a checkout is available
|
||||||
${24:#}${25:action :export} # Export the source, excluding or removing any version control artifacts
|
${24:#}${0:action :export} # Export the source, excluding or removing any version control artifacts
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet deploy
|
snippet deploy
|
||||||
@ -200,5 +200,5 @@ snippet deploy
|
|||||||
|
|
||||||
${60:#}${61::deploy} # Deploy the application (Default)
|
${60:#}${61::deploy} # Deploy the application (Default)
|
||||||
${62:#}${63::force_deploy} # For the revision deploy strategy, this removes any existing release of the same code version and re-deploys in its place
|
${62:#}${63::force_deploy} # For the revision deploy strategy, this removes any existing release of the same code version and re-deploys in its place
|
||||||
${64:#}${65::rollback} # Rollback the application to the previous release
|
${64:#}${0::rollback} # Rollback the application to the previous release
|
||||||
end
|
end
|
||||||
|
@ -1,90 +1,90 @@
|
|||||||
snippet comm
|
snippet comm
|
||||||
(comment
|
(comment
|
||||||
${1}
|
${0}
|
||||||
)
|
)
|
||||||
snippet condp
|
snippet condp
|
||||||
(condp ${1:pred} ${2:expr}
|
(condp ${1:pred} ${2:expr}
|
||||||
${3})
|
${0})
|
||||||
snippet def
|
snippet def
|
||||||
(def ${1})
|
(def ${0})
|
||||||
snippet defm
|
snippet defm
|
||||||
(defmethod ${1:multifn} "${2:doc-string}" ${3:dispatch-val} [${4:args}]
|
(defmethod ${1:multifn} "${2:doc-string}" ${3:dispatch-val} [${4:args}]
|
||||||
${5})
|
${0})
|
||||||
snippet defmm
|
snippet defmm
|
||||||
(defmulti ${1:name} "${2:doc-string}" ${3:dispatch-fn})
|
(defmulti ${1:name} "${2:doc-string}" ${0:dispatch-fn})
|
||||||
snippet defma
|
snippet defma
|
||||||
(defmacro ${1:name} "${2:doc-string}" ${3:dispatch-fn})
|
(defmacro ${1:name} "${2:doc-string}" ${0:dispatch-fn})
|
||||||
snippet defn
|
snippet defn
|
||||||
(defn ${1:name} "${2:doc-string}" [${3:arg-list}]
|
(defn ${1:name} "${2:doc-string}" [${3:arg-list}]
|
||||||
${4})
|
${0})
|
||||||
snippet defp
|
snippet defp
|
||||||
(defprotocol ${1:name}
|
(defprotocol ${1:name}
|
||||||
${2})
|
${0})
|
||||||
snippet defr
|
snippet defr
|
||||||
(defrecord ${1:name} [${2:fields}]
|
(defrecord ${1:name} [${2:fields}]
|
||||||
${3:protocol}
|
${3:protocol}
|
||||||
${4})
|
${0})
|
||||||
snippet deft
|
snippet deft
|
||||||
(deftest ${1:name}
|
(deftest ${1:name}
|
||||||
(is (= ${2:assertion})))
|
(is (= ${2:assertion})))
|
||||||
${3})
|
${0})
|
||||||
snippet is
|
snippet is
|
||||||
(is (= ${1} ${2}))
|
(is (= ${1} ${0}))
|
||||||
snippet defty
|
snippet defty
|
||||||
(deftype ${1:Name} [${2:fields}]
|
(deftype ${1:Name} [${2:fields}]
|
||||||
${3:Protocol}
|
${3:Protocol}
|
||||||
${4})
|
${0})
|
||||||
snippet doseq
|
snippet doseq
|
||||||
(doseq [${1:elem} ${2:coll}]
|
(doseq [${1:elem} ${2:coll}]
|
||||||
${3})
|
${0})
|
||||||
snippet fn
|
snippet fn
|
||||||
(fn [${1:arg-list}] ${2})
|
(fn [${1:arg-list}] ${0})
|
||||||
snippet if
|
snippet if
|
||||||
(if ${1:test-expr}
|
(if ${1:test-expr}
|
||||||
${2:then-expr}
|
${2:then-expr}
|
||||||
${3:else-expr})
|
${0:else-expr})
|
||||||
snippet if-let
|
snippet if-let
|
||||||
(if-let [${1:result} ${2:test-expr}]
|
(if-let [${1:result} ${2:test-expr}]
|
||||||
(${3:then-expr} $1)
|
(${3:then-expr} $1)
|
||||||
(${4:else-expr}))
|
(${0:else-expr}))
|
||||||
snippet imp
|
snippet imp
|
||||||
(:import [${1:package}])
|
(:import [${1:package}])
|
||||||
& {:keys [${1:keys}] :or {${2:defaults}}}
|
& {:keys [${1:keys}] :or {${0:defaults}}}
|
||||||
snippet let
|
snippet let
|
||||||
(let [${1:name} ${2:expr}]
|
(let [${1:name} ${2:expr}]
|
||||||
${3})
|
${0})
|
||||||
snippet letfn
|
snippet letfn
|
||||||
(letfn [(${1:name) [${2:args}]
|
(letfn [(${1:name) [${2:args}]
|
||||||
${3})])
|
${0})])
|
||||||
snippet map
|
snippet map
|
||||||
(map ${1:func} ${2:coll})
|
(map ${1:func} ${0:coll})
|
||||||
snippet mapl
|
snippet mapl
|
||||||
(map #(${1:lambda}) ${2:coll})
|
(map #(${1:lambda}) ${0:coll})
|
||||||
snippet met
|
snippet met
|
||||||
(${1:name} [${2:this} ${3:args}]
|
(${1:name} [${2:this} ${3:args}]
|
||||||
${4})
|
${0})
|
||||||
snippet ns
|
snippet ns
|
||||||
(ns ${1:name}
|
(ns ${1:name}
|
||||||
${2})
|
${0})
|
||||||
snippet dotimes
|
snippet dotimes
|
||||||
(dotimes [_ 10]
|
(dotimes [_ 10]
|
||||||
(time
|
(time
|
||||||
(dotimes [_ ${1:times}]
|
(dotimes [_ ${1:times}]
|
||||||
${2})))
|
${0})))
|
||||||
snippet pmethod
|
snippet pmethod
|
||||||
(${1:name} [${2:this} ${3:args}])
|
(${1:name} [${2:this} ${0:args}])
|
||||||
snippet refer
|
snippet refer
|
||||||
(:refer-clojure :exclude [${1}])
|
(:refer-clojure :exclude [${0}])
|
||||||
snippet require
|
snippet require
|
||||||
(:require [${1:namespace} :as [${2}]])
|
(:require [${1:namespace} :as [${0}]])
|
||||||
snippet use
|
snippet use
|
||||||
(:use [${1:namespace} :only [${2}]])
|
(:use [${1:namespace} :only [${0}]])
|
||||||
snippet print
|
snippet print
|
||||||
(println ${1})
|
(println ${0})
|
||||||
snippet reduce
|
snippet reduce
|
||||||
(reduce ${1:(fn [p n] ${3})} ${2})
|
(reduce ${1:(fn [p n] ${3})} ${2})
|
||||||
snippet when
|
snippet when
|
||||||
(when ${1:test} ${2:body})
|
(when ${1:test} ${0:body})
|
||||||
snippet when-let
|
snippet when-let
|
||||||
(when-let [${1:result} ${2:test}]
|
(when-let [${1:result} ${2:test}]
|
||||||
${3:body})
|
${0:body})
|
||||||
|
@ -8,7 +8,7 @@ snippet cmake
|
|||||||
${$2_INCLUDE_DIR}
|
${$2_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(${3:src})
|
ADD_SUBDIRECTORY(${0:src})
|
||||||
|
|
||||||
ADD_EXECUTABLE($1)
|
ADD_EXECUTABLE($1)
|
||||||
|
|
||||||
@ -18,41 +18,41 @@ snippet cmake
|
|||||||
|
|
||||||
snippet include
|
snippet include
|
||||||
INCLUDE_DIRECTORIES(
|
INCLUDE_DIRECTORIES(
|
||||||
${${1:INCLUDE_DIR}}
|
${${0:INCLUDE_DIR}}
|
||||||
)
|
)
|
||||||
|
|
||||||
snippet find
|
snippet find
|
||||||
FIND_PACKAGE(${1:LIBRARY})
|
FIND_PACKAGE(${0:LIBRARY})
|
||||||
|
|
||||||
snippet glob
|
snippet glob
|
||||||
FILE(GLOB ${1:SRCS} *.${2:cpp})
|
FILE(GLOB ${1:SRCS} *.${0:cpp})
|
||||||
|
|
||||||
snippet subdir
|
snippet subdir
|
||||||
ADD_SUBDIRECTORY(${1:src})
|
ADD_SUBDIRECTORY(${0:src})
|
||||||
|
|
||||||
snippet lib
|
snippet lib
|
||||||
ADD_LIBRARY(${1:lib} ${2:STATIC}
|
ADD_LIBRARY(${1:lib} ${2:STATIC}
|
||||||
${${3:SRCS}}
|
${${0:SRCS}}
|
||||||
)
|
)
|
||||||
|
|
||||||
snippet link
|
snippet link
|
||||||
TARGET_LINK_LIBRARIES(${1:bin}
|
TARGET_LINK_LIBRARIES(${1:bin}
|
||||||
${2:somelib}
|
${0:somelib}
|
||||||
)
|
)
|
||||||
|
|
||||||
snippet bin
|
snippet bin
|
||||||
ADD_EXECUTABLE(${1:bin})
|
ADD_EXECUTABLE(${1:bin})
|
||||||
|
|
||||||
snippet set
|
snippet set
|
||||||
SET(${1:var} ${2:val})
|
SET(${1:var} ${0:val})
|
||||||
|
|
||||||
snippet dep
|
snippet dep
|
||||||
ADD_DEPENDENCIES(${1:target}
|
ADD_DEPENDENCIES(${1:target}
|
||||||
${2:dep}
|
${0:dep}
|
||||||
)
|
)
|
||||||
|
|
||||||
snippet props
|
snippet props
|
||||||
SET_TARGET_PROPERTIES(${1:target}
|
SET_TARGET_PROPERTIES(${1:target}
|
||||||
${2:PROPERTIES} ${3:COMPILE_FLAGS}
|
${2:PROPERTIES} ${3:COMPILE_FLAGS}
|
||||||
${4:"-O3 -Wall -pedantic"}
|
${0:"-O3 -Wall -pedantic"}
|
||||||
)
|
)
|
||||||
|
@ -2,94 +2,94 @@
|
|||||||
snippet forindo
|
snippet forindo
|
||||||
for ${1:name} in ${2:array}
|
for ${1:name} in ${2:array}
|
||||||
do ($1) ->
|
do ($1) ->
|
||||||
${3:// body}
|
${0:// body}
|
||||||
# Array comprehension
|
# Array comprehension
|
||||||
snippet fora
|
snippet fora
|
||||||
for ${1:name} in ${2:array}
|
for ${1:name} in ${2:array}
|
||||||
${3:# body...}
|
${0:# body...}
|
||||||
# Object comprehension
|
# Object comprehension
|
||||||
snippet foro
|
snippet foro
|
||||||
for ${1:key}, ${2:value} of ${3:object}
|
for ${1:key}, ${2:value} of ${3:object}
|
||||||
${4:# body...}
|
${0:# body...}
|
||||||
# Range comprehension (inclusive)
|
# Range comprehension (inclusive)
|
||||||
snippet forr
|
snippet forr
|
||||||
for ${1:name} in [${2:start}..${3:finish}]
|
for ${1:name} in [${2:start}..${3:finish}]
|
||||||
${4:# body...}
|
${0:# body...}
|
||||||
snippet forrb
|
snippet forrb
|
||||||
for ${1:name} in [${2:start}..${3:finish}] by ${4:step}
|
for ${1:name} in [${2:start}..${3:finish}] by ${4:step}
|
||||||
${5:# body...}
|
${0:# body...}
|
||||||
# Range comprehension (exclusive)
|
# Range comprehension (exclusive)
|
||||||
snippet forrex
|
snippet forrex
|
||||||
for ${1:name} in [${2:start}...${3:finish}]
|
for ${1:name} in [${2:start}...${3:finish}]
|
||||||
${4:# body...}
|
${0:# body...}
|
||||||
snippet forrexb
|
snippet forrexb
|
||||||
for ${1:name} in [${2:start}...${3:finish}] by ${4:step}
|
for ${1:name} in [${2:start}...${3:finish}] by ${4:step}
|
||||||
${5:# body...}
|
${0:# body...}
|
||||||
# Function
|
# Function
|
||||||
snippet fun
|
snippet fun
|
||||||
(${1:args}) ->
|
(${1:args}) ->
|
||||||
${2:# body...}
|
${0:# body...}
|
||||||
# Function (bound)
|
# Function (bound)
|
||||||
snippet bfun
|
snippet bfun
|
||||||
(${1:args}) =>
|
(${1:args}) =>
|
||||||
${2:# body...}
|
${0:# body...}
|
||||||
# Class
|
# Class
|
||||||
snippet cla class ..
|
snippet cla class ..
|
||||||
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
|
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
|
||||||
${2}
|
${0}
|
||||||
snippet cla class .. constructor: ..
|
snippet cla class .. constructor: ..
|
||||||
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
|
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
|
||||||
constructor: (${2:args}) ->
|
constructor: (${2:args}) ->
|
||||||
${3}
|
${3}
|
||||||
|
|
||||||
${4}
|
${0}
|
||||||
snippet cla class .. extends ..
|
snippet cla class .. extends ..
|
||||||
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
|
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
|
||||||
${3}
|
${0}
|
||||||
snippet cla class .. extends .. constructor: ..
|
snippet cla class .. extends .. constructor: ..
|
||||||
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
|
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
|
||||||
constructor: (${3:args}) ->
|
constructor: (${3:args}) ->
|
||||||
${4}
|
${4}
|
||||||
|
|
||||||
${5}
|
${0}
|
||||||
# If
|
# If
|
||||||
snippet if
|
snippet if
|
||||||
if ${1:condition}
|
if ${1:condition}
|
||||||
${2:# body...}
|
${0:# body...}
|
||||||
# If __ Else
|
# If __ Else
|
||||||
snippet ife
|
snippet ife
|
||||||
if ${1:condition}
|
if ${1:condition}
|
||||||
${2:# body...}
|
${2:# body...}
|
||||||
else
|
else
|
||||||
${3:# body...}
|
${0:# body...}
|
||||||
# Else if
|
# Else if
|
||||||
snippet eif
|
snippet eif
|
||||||
else if ${1:condition}
|
else if ${1:condition}
|
||||||
${2:# body...}
|
${0:# body...}
|
||||||
# Ternary If
|
# Ternary If
|
||||||
snippet ifte
|
snippet ifte
|
||||||
if ${1:condition} then ${2:value} else ${3:other}
|
if ${1:condition} then ${2:value} else ${0:other}
|
||||||
# Unless
|
# Unless
|
||||||
snippet unl
|
snippet unl
|
||||||
${1:action} unless ${2:condition}
|
${1:action} unless ${0:condition}
|
||||||
# Switch
|
# Switch
|
||||||
snippet swi
|
snippet swi
|
||||||
switch ${1:object}
|
switch ${1:object}
|
||||||
when ${2:value}
|
when ${2:value}
|
||||||
${3:# body...}
|
${0:# body...}
|
||||||
|
|
||||||
# Log
|
# Log
|
||||||
snippet log
|
snippet log
|
||||||
console.log ${1}
|
console.log ${0}
|
||||||
# Try __ Catch
|
# Try __ Catch
|
||||||
snippet try
|
snippet try
|
||||||
try
|
try
|
||||||
${1}
|
${1}
|
||||||
catch ${2:error}
|
catch ${2:error}
|
||||||
${3}
|
${0}
|
||||||
# Require
|
# Require
|
||||||
snippet req
|
snippet req
|
||||||
${2:$1} = require '${1:sys}'${3}
|
${2:$1} = require '${1:sys}'
|
||||||
# Export
|
# Export
|
||||||
snippet exp
|
snippet exp
|
||||||
${1:root} = exports ? this
|
${0:root} = exports ? this
|
||||||
|
@ -1,52 +1,52 @@
|
|||||||
## STL Collections
|
## STL Collections
|
||||||
# std::array
|
# std::array
|
||||||
snippet array
|
snippet array
|
||||||
std::array<${1:T}, ${2:N}> ${3};${4}
|
std::array<${1:T}, ${2:N}> ${3};
|
||||||
# std::vector
|
# std::vector
|
||||||
snippet vector
|
snippet vector
|
||||||
std::vector<${1:T}> ${2};${3}
|
std::vector<${1:T}> ${2};
|
||||||
# std::deque
|
# std::deque
|
||||||
snippet deque
|
snippet deque
|
||||||
std::deque<${1:T}> ${2};${3}
|
std::deque<${1:T}> ${2};
|
||||||
# std::forward_list
|
# std::forward_list
|
||||||
snippet flist
|
snippet flist
|
||||||
std::forward_list<${1:T}> ${2};${3}
|
std::forward_list<${1:T}> ${2};
|
||||||
# std::list
|
# std::list
|
||||||
snippet list
|
snippet list
|
||||||
std::list<${1:T}> ${2};${3}
|
std::list<${1:T}> ${2};
|
||||||
# std::set
|
# std::set
|
||||||
snippet set
|
snippet set
|
||||||
std::set<${1:T}> ${2};${3}
|
std::set<${1:T}> ${2};
|
||||||
# std::map
|
# std::map
|
||||||
snippet map
|
snippet map
|
||||||
std::map<${1:Key}, ${2:T}> ${3};${4}
|
std::map<${1:Key}, ${2:T}> ${3};
|
||||||
# std::multiset
|
# std::multiset
|
||||||
snippet mset
|
snippet mset
|
||||||
std::multiset<${1:T}> ${2};${3}
|
std::multiset<${1:T}> ${2};
|
||||||
# std::multimap
|
# std::multimap
|
||||||
snippet mmap
|
snippet mmap
|
||||||
std::multimap<${1:Key}, ${2:T}> ${3};${4}
|
std::multimap<${1:Key}, ${2:T}> ${3};
|
||||||
# std::unordered_set
|
# std::unordered_set
|
||||||
snippet uset
|
snippet uset
|
||||||
std::unordered_set<${1:T}> ${2};${3}
|
std::unordered_set<${1:T}> ${2};
|
||||||
# std::unordered_map
|
# std::unordered_map
|
||||||
snippet umap
|
snippet umap
|
||||||
std::unordered_map<${1:Key}, ${2:T}> ${3};${4}
|
std::unordered_map<${1:Key}, ${2:T}> ${3};
|
||||||
# std::unordered_multiset
|
# std::unordered_multiset
|
||||||
snippet umset
|
snippet umset
|
||||||
std::unordered_multiset<${1:T}> ${2};${3}
|
std::unordered_multiset<${1:T}> ${2};
|
||||||
# std::unordered_multimap
|
# std::unordered_multimap
|
||||||
snippet ummap
|
snippet ummap
|
||||||
std::unordered_multimap<${1:Key}, ${2:T}> ${3};${4}
|
std::unordered_multimap<${1:Key}, ${2:T}> ${3};
|
||||||
# std::stack
|
# std::stack
|
||||||
snippet stack
|
snippet stack
|
||||||
std::stack<${1:T}> ${2};${3}
|
std::stack<${1:T}> ${2};
|
||||||
# std::queue
|
# std::queue
|
||||||
snippet queue
|
snippet queue
|
||||||
std::queue<${1:T}> ${2};${3}
|
std::queue<${1:T}> ${2};
|
||||||
# std::priority_queue
|
# std::priority_queue
|
||||||
snippet pqueue
|
snippet pqueue
|
||||||
std::priority_queue<${1:T}> ${2};${3}
|
std::priority_queue<${1:T}> ${2};
|
||||||
##
|
##
|
||||||
## Access Modifiers
|
## Access Modifiers
|
||||||
# private
|
# private
|
||||||
@ -75,57 +75,57 @@ snippet cl
|
|||||||
~$1();
|
~$1();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
${3:/* data */}
|
${0:/* data */}
|
||||||
};
|
};
|
||||||
# member function implementation
|
# member function implementation
|
||||||
snippet mfun
|
snippet mfun
|
||||||
${4:void} ${1:`vim_snippets#Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {
|
${4:void} ${1:`vim_snippets#Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {
|
||||||
${5}
|
${0}
|
||||||
}
|
}
|
||||||
# namespace
|
# namespace
|
||||||
snippet ns
|
snippet ns
|
||||||
namespace ${1:`vim_snippets#Filename('', 'my')`} {
|
namespace ${1:`vim_snippets#Filename('', 'my')`} {
|
||||||
${2}
|
${0}
|
||||||
} /* namespace $1 */
|
} /* namespace $1 */
|
||||||
##
|
##
|
||||||
## Input/Output
|
## Input/Output
|
||||||
# std::cout
|
# std::cout
|
||||||
snippet cout
|
snippet cout
|
||||||
std::cout << ${1} << std::endl;${2}
|
std::cout << ${1} << std::endl;
|
||||||
# std::cin
|
# std::cin
|
||||||
snippet cin
|
snippet cin
|
||||||
std::cin >> ${1};${2}
|
std::cin >> ${1};
|
||||||
##
|
##
|
||||||
## Iteration
|
## Iteration
|
||||||
# for i
|
# for i
|
||||||
snippet fori
|
snippet fori
|
||||||
for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
|
for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
|
||||||
${4}
|
${4}
|
||||||
}${5}
|
}
|
||||||
|
|
||||||
# foreach
|
# foreach
|
||||||
snippet fore
|
snippet fore
|
||||||
for (${1:auto} ${2:i} : ${3:container}) {
|
for (${1:auto} ${2:i} : ${3:container}) {
|
||||||
${4}
|
${4}
|
||||||
}${5}
|
}
|
||||||
# iterator
|
# iterator
|
||||||
snippet iter
|
snippet iter
|
||||||
for (${1:std::vector}<${2:type}>::${3:const_iterator} ${4:i} = ${5:container}.begin(); $4 != $5.end(); ++$4) {
|
for (${1:std::vector}<${2:type}>::${3:const_iterator} ${4:i} = ${5:container}.begin(); $4 != $5.end(); ++$4) {
|
||||||
${6}
|
${6}
|
||||||
}${7}
|
}
|
||||||
|
|
||||||
# auto iterator
|
# auto iterator
|
||||||
snippet itera
|
snippet itera
|
||||||
for (auto ${1:i} = ${2:container}.begin(); $1 != $2.end(); ++$1) {
|
for (auto ${1:i} = ${2:container}.begin(); $1 != $2.end(); ++$1) {
|
||||||
${3:std::cout << *$1 << std::endl;}
|
${3:std::cout << *$1 << std::endl;}
|
||||||
}${4}
|
}
|
||||||
##
|
##
|
||||||
## Lambdas
|
## Lambdas
|
||||||
# lamda (one line)
|
# lamda (one line)
|
||||||
snippet ld
|
snippet ld
|
||||||
[${1}](${2}){${3}}${4}
|
[${1}](${2}){${3}}
|
||||||
# lambda (multi-line)
|
# lambda (multi-line)
|
||||||
snippet lld
|
snippet lld
|
||||||
[${1}](${2}){
|
[${1}](${2}){
|
||||||
${3}
|
${3}
|
||||||
}${4}
|
}
|
||||||
|
@ -59,203 +59,203 @@
|
|||||||
# entry point
|
# entry point
|
||||||
snippet sim
|
snippet sim
|
||||||
public static int Main(string[] args) {
|
public static int Main(string[] args) {
|
||||||
${1}
|
${0}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
snippet simc
|
snippet simc
|
||||||
public class Application {
|
public class Application {
|
||||||
public static int Main(string[] args) {
|
public static int Main(string[] args) {
|
||||||
${1}
|
${0}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# if condition
|
# if condition
|
||||||
snippet if
|
snippet if
|
||||||
if (${1}) {
|
if (${1}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet el
|
snippet el
|
||||||
else {
|
else {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet ifs
|
snippet ifs
|
||||||
if (${1})
|
if (${1})
|
||||||
${2}
|
${0}
|
||||||
# ternary conditional
|
# ternary conditional
|
||||||
snippet t
|
snippet t
|
||||||
${1} ? ${2} : ${3}
|
${1} ? ${2} : ${0}
|
||||||
snippet ?
|
snippet ?
|
||||||
${1} ? ${2} : ${3}
|
${1} ? ${2} : ${0}
|
||||||
# do while loop
|
# do while loop
|
||||||
snippet do
|
snippet do
|
||||||
do {
|
do {
|
||||||
${2}
|
${0}
|
||||||
} while (${1});
|
} while (${1});
|
||||||
# while loop
|
# while loop
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1}) {
|
while (${1}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# for loop
|
# for loop
|
||||||
snippet for
|
snippet for
|
||||||
for (int ${1:i} = 0; $1 < ${2:count}; $1${3:++}) {
|
for (int ${1:i} = 0; $1 < ${2:count}; $1${3:++}) {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
# foreach
|
# foreach
|
||||||
snippet fore
|
snippet fore
|
||||||
foreach (var ${1:entry} in ${2}) {
|
foreach (var ${1:entry} in ${2}) {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet foreach
|
snippet foreach
|
||||||
foreach (var ${1:entry} in ${2}) {
|
foreach (var ${1:entry} in ${2}) {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet each
|
snippet each
|
||||||
foreach (var ${1:entry} in ${2}) {
|
foreach (var ${1:entry} in ${2}) {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
# interfaces
|
# interfaces
|
||||||
snippet interface
|
snippet interface
|
||||||
public interface ${1:`vim_snippets#Filename()`} {
|
public interface ${1:`vim_snippets#Filename()`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet if+
|
snippet if+
|
||||||
public interface ${1:`vim_snippets#Filename()`} {
|
public interface ${1:`vim_snippets#Filename()`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# class bodies
|
# class bodies
|
||||||
snippet class
|
snippet class
|
||||||
public class ${1:`vim_snippets#Filename()`} {
|
public class ${1:`vim_snippets#Filename()`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet cls
|
snippet cls
|
||||||
${2:public} class ${1:`vim_snippets#Filename()`} {
|
${2:public} class ${1:`vim_snippets#Filename()`} {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet cls+
|
snippet cls+
|
||||||
public class ${1:`vim_snippets#Filename()`} {
|
public class ${1:`vim_snippets#Filename()`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet cls+^
|
snippet cls+^
|
||||||
public static class ${1:`vim_snippets#Filename()`} {
|
public static class ${1:`vim_snippets#Filename()`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet cls&
|
snippet cls&
|
||||||
internal class ${1:`vim_snippets#Filename()`} {
|
internal class ${1:`vim_snippets#Filename()`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet cls&^
|
snippet cls&^
|
||||||
internal static class ${1:`vim_snippets#Filename()`} {
|
internal static class ${1:`vim_snippets#Filename()`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet cls|
|
snippet cls|
|
||||||
protected class ${1:`vim_snippets#Filename()`} {
|
protected class ${1:`vim_snippets#Filename()`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet cls|%
|
snippet cls|%
|
||||||
protected abstract class ${1:`vim_snippets#Filename()`} {
|
protected abstract class ${1:`vim_snippets#Filename()`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# constructor
|
# constructor
|
||||||
snippet ctor
|
snippet ctor
|
||||||
public ${1:`vim_snippets#Filename()`}() {
|
public ${1:`vim_snippets#Filename()`}() {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# properties - auto properties by default.
|
# properties - auto properties by default.
|
||||||
# default type is int with layout get / set.
|
# default type is int with layout get / set.
|
||||||
snippet prop
|
snippet prop
|
||||||
${1:public} ${2:int} ${3:} { get; set; }${4}
|
${1:public} ${2:int} ${3:} { get; set; }
|
||||||
snippet p
|
snippet p
|
||||||
${1:public} ${2:int} ${3:} { get; set; }${4}
|
${1:public} ${2:int} ${3:} { get; set; }
|
||||||
snippet p+
|
snippet p+
|
||||||
public ${1:int} ${2:} { get; set; }${3}
|
public ${1:int} ${2:} { get; set; }
|
||||||
snippet p+&
|
snippet p+&
|
||||||
public ${1:int} ${2:} { get; internal set; }${3}
|
public ${1:int} ${2:} { get; internal set; }
|
||||||
snippet p+|
|
snippet p+|
|
||||||
public ${1:int} ${2:} { get; protected set; }${3}
|
public ${1:int} ${2:} { get; protected set; }
|
||||||
snippet p+-
|
snippet p+-
|
||||||
public ${1:int} ${2:} { get; private set; }${3}
|
public ${1:int} ${2:} { get; private set; }
|
||||||
snippet p&
|
snippet p&
|
||||||
internal ${1:int} ${2:} { get; set; }${3}
|
internal ${1:int} ${2:} { get; set; }
|
||||||
snippet p&|
|
snippet p&|
|
||||||
internal ${1:int} ${2:} { get; protected set; }${3}
|
internal ${1:int} ${2:} { get; protected set; }
|
||||||
snippet p&-
|
snippet p&-
|
||||||
internal ${1:int} ${2:} { get; private set; }${3}
|
internal ${1:int} ${2:} { get; private set; }
|
||||||
snippet p|
|
snippet p|
|
||||||
protected ${1:int} ${2:} { get; set; }${3}
|
protected ${1:int} ${2:} { get; set; }
|
||||||
snippet p|-
|
snippet p|-
|
||||||
protected ${1:int} ${2:} { get; private set; }${3}
|
protected ${1:int} ${2:} { get; private set; }
|
||||||
snippet p-
|
snippet p-
|
||||||
private ${1:int} ${2:} { get; set; }${3}
|
private ${1:int} ${2:} { get; set; }
|
||||||
# property - bool
|
# property - bool
|
||||||
snippet pi
|
snippet pi
|
||||||
${1:public} int ${2:} { get; set; }${3}
|
${1:public} int ${2:} { get; set; }
|
||||||
snippet pi+
|
snippet pi+
|
||||||
public int ${1} { get; set; }${2}
|
public int ${1} { get; set; }
|
||||||
snippet pi+&
|
snippet pi+&
|
||||||
public int ${1} { get; internal set; }${2}
|
public int ${1} { get; internal set; }
|
||||||
snippet pi+|
|
snippet pi+|
|
||||||
public int ${1} { get; protected set; }${2}
|
public int ${1} { get; protected set; }
|
||||||
snippet pi+-
|
snippet pi+-
|
||||||
public int ${1} { get; private set; }${2}
|
public int ${1} { get; private set; }
|
||||||
snippet pi&
|
snippet pi&
|
||||||
internal int ${1} { get; set; }${2}
|
internal int ${1} { get; set; }
|
||||||
snippet pi&|
|
snippet pi&|
|
||||||
internal int ${1} { get; protected set; }${2}
|
internal int ${1} { get; protected set; }
|
||||||
snippet pi&-
|
snippet pi&-
|
||||||
internal int ${1} { get; private set; }${2}
|
internal int ${1} { get; private set; }
|
||||||
snippet pi|
|
snippet pi|
|
||||||
protected int ${1} { get; set; }${2}
|
protected int ${1} { get; set; }
|
||||||
snippet pi|-
|
snippet pi|-
|
||||||
protected int ${1} { get; private set; }${2}
|
protected int ${1} { get; private set; }
|
||||||
snippet pi-
|
snippet pi-
|
||||||
private int ${1} { get; set; }${2}
|
private int ${1} { get; set; }
|
||||||
# property - bool
|
# property - bool
|
||||||
snippet pb
|
snippet pb
|
||||||
${1:public} bool ${2:} { get; set; }${3}
|
${1:public} bool ${2:} { get; set; }
|
||||||
snippet pb+
|
snippet pb+
|
||||||
public bool ${1} { get; set; }${2}
|
public bool ${1} { get; set; }
|
||||||
snippet pb+&
|
snippet pb+&
|
||||||
public bool ${1} { get; internal set; }${2}
|
public bool ${1} { get; internal set; }
|
||||||
snippet pb+|
|
snippet pb+|
|
||||||
public bool ${1} { get; protected set; }${2}
|
public bool ${1} { get; protected set; }
|
||||||
snippet pb+-
|
snippet pb+-
|
||||||
public bool ${1} { get; private set; }${2}
|
public bool ${1} { get; private set; }
|
||||||
snippet pb&
|
snippet pb&
|
||||||
internal bool ${1} { get; set; }${2}
|
internal bool ${1} { get; set; }
|
||||||
snippet pb&|
|
snippet pb&|
|
||||||
internal bool ${1} { get; protected set; }${2}
|
internal bool ${1} { get; protected set; }
|
||||||
snippet pb&-
|
snippet pb&-
|
||||||
internal bool ${1} { get; private set; }${2}
|
internal bool ${1} { get; private set; }
|
||||||
snippet pb|
|
snippet pb|
|
||||||
protected bool ${1} { get; set; }${2}
|
protected bool ${1} { get; set; }
|
||||||
snippet pb|-
|
snippet pb|-
|
||||||
protected bool ${1} { get; private set; }${2}
|
protected bool ${1} { get; private set; }
|
||||||
snippet pb-
|
snippet pb-
|
||||||
private bool ${1} { get; set; }${2}
|
private bool ${1} { get; set; }
|
||||||
# property - string
|
# property - string
|
||||||
snippet ps
|
snippet ps
|
||||||
${1:public} string ${2:} { get; set; }${3}
|
${1:public} string ${2:} { get; set; }
|
||||||
snippet ps+
|
snippet ps+
|
||||||
public string ${1} { get; set; }${2}
|
public string ${1} { get; set; }
|
||||||
snippet ps+&
|
snippet ps+&
|
||||||
public string ${1} { get; internal set; }${2}
|
public string ${1} { get; internal set; }
|
||||||
snippet ps+|
|
snippet ps+|
|
||||||
public string ${1} { get; protected set; }${2}
|
public string ${1} { get; protected set; }
|
||||||
snippet ps+-
|
snippet ps+-
|
||||||
public string ${1} { get; private set; }${2}
|
public string ${1} { get; private set; }
|
||||||
snippet ps&
|
snippet ps&
|
||||||
internal string ${1} { get; set; }${2}
|
internal string ${1} { get; set; }
|
||||||
snippet ps&|
|
snippet ps&|
|
||||||
internal string ${1} { get; protected set; }${2}
|
internal string ${1} { get; protected set; }
|
||||||
snippet ps&-
|
snippet ps&-
|
||||||
internal string ${1} { get; private set; }${2}
|
internal string ${1} { get; private set; }
|
||||||
snippet ps|
|
snippet ps|
|
||||||
protected string ${1} { get; set; }${2}
|
protected string ${1} { get; set; }
|
||||||
snippet ps|-
|
snippet ps|-
|
||||||
protected string ${1} { get; private set; }${2}
|
protected string ${1} { get; private set; }
|
||||||
snippet ps-
|
snippet ps-
|
||||||
private string ${1} { get; set; }${2}
|
private string ${1} { get; set; }
|
||||||
# members - void
|
# members - void
|
||||||
snippet m
|
snippet m
|
||||||
${1:public} ${2:void} ${3:}(${4:}) {
|
${1:public} ${2:void} ${3:}(${4:}) {
|
||||||
@ -343,32 +343,32 @@ snippet ms-
|
|||||||
# structure
|
# structure
|
||||||
snippet struct
|
snippet struct
|
||||||
public struct ${1:`vim_snippets#Filename()`} {
|
public struct ${1:`vim_snippets#Filename()`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# enumeration
|
# enumeration
|
||||||
snippet enum
|
snippet enum
|
||||||
public enum ${1} {
|
public enum ${1} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# preprocessor directives
|
# preprocessor directives
|
||||||
snippet #if
|
snippet #if
|
||||||
#if
|
#if
|
||||||
${1}
|
${0}
|
||||||
#endif
|
#endif
|
||||||
# inline xml documentation
|
# inline xml documentation
|
||||||
snippet ///
|
snippet ///
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ${1}
|
/// ${0}
|
||||||
/// </summary>
|
/// </summary>
|
||||||
snippet <p
|
snippet <p
|
||||||
<param name="${1}">${2:$1}</param>${3}
|
<param name="${1}">${2:$1}</param>
|
||||||
snippet <ex
|
snippet <ex
|
||||||
<exception cref="${1:System.Exception}">${2}</exception>${3}
|
<exception cref="${1:System.Exception}">${2}</exception>
|
||||||
snippet <r
|
snippet <r
|
||||||
<returns>${1}</returns>{${2}
|
<returns>${1}</returns>{
|
||||||
snippet <s
|
snippet <s
|
||||||
<see cref="${1}"/>${2}
|
<see cref="${1}"/>
|
||||||
snippet <rem
|
snippet <rem
|
||||||
<remarks>${1}</remarks>${2}
|
<remarks>${1}</remarks>
|
||||||
snippet <c
|
snippet <c
|
||||||
<code>${1}</code>${2}
|
<code>${1}</code>
|
||||||
|
@ -1,50 +1,50 @@
|
|||||||
snippet .
|
snippet .
|
||||||
${1} {
|
${1} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet !
|
snippet !
|
||||||
!important
|
!important
|
||||||
snippet bdi:m+
|
snippet bdi:m+
|
||||||
-moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};
|
-moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch};
|
||||||
snippet bdi:m
|
snippet bdi:m
|
||||||
-moz-border-image: ${1};
|
-moz-border-image: ${0};
|
||||||
snippet bdrz:m
|
snippet bdrz:m
|
||||||
-moz-border-radius: ${1};
|
-moz-border-radius: ${0};
|
||||||
snippet bxsh:m+
|
snippet bxsh:m+
|
||||||
-moz-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};
|
-moz-box-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
|
||||||
snippet bxsh:m
|
snippet bxsh:m
|
||||||
-moz-box-shadow: ${1};
|
-moz-box-shadow: ${0};
|
||||||
snippet bdi:w+
|
snippet bdi:w+
|
||||||
-webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};
|
-webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch};
|
||||||
snippet bdi:w
|
snippet bdi:w
|
||||||
-webkit-border-image: ${1};
|
-webkit-border-image: ${0};
|
||||||
snippet bdrz:w
|
snippet bdrz:w
|
||||||
-webkit-border-radius: ${1};
|
-webkit-border-radius: ${0};
|
||||||
snippet bxsh:w+
|
snippet bxsh:w+
|
||||||
-webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};
|
-webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
|
||||||
snippet bxsh:w
|
snippet bxsh:w
|
||||||
-webkit-box-shadow: ${1};
|
-webkit-box-shadow: ${0};
|
||||||
snippet @f
|
snippet @f
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: ${1};
|
font-family: ${1};
|
||||||
src: url(${2});
|
src: url(${0});
|
||||||
}
|
}
|
||||||
snippet @i
|
snippet @i
|
||||||
@import url(${1});
|
@import url(${0});
|
||||||
snippet @m
|
snippet @m
|
||||||
@media ${1:print} {
|
@media ${1:print} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet bg+
|
snippet bg+
|
||||||
background: #${1:FFF} url(${2}) ${3:0} ${4:0} ${5:no-repeat};
|
background: #${1:FFF} url(${2}) ${3:0} ${4:0} ${0:no-repeat};
|
||||||
snippet bga
|
snippet bga
|
||||||
background-attachment: ${1};
|
background-attachment: ${0};
|
||||||
snippet bga:f
|
snippet bga:f
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
snippet bga:s
|
snippet bga:s
|
||||||
background-attachment: scroll;
|
background-attachment: scroll;
|
||||||
snippet bgbk
|
snippet bgbk
|
||||||
background-break: ${1};
|
background-break: ${0};
|
||||||
snippet bgbk:bb
|
snippet bgbk:bb
|
||||||
background-break: bounding-box;
|
background-break: bounding-box;
|
||||||
snippet bgbk:c
|
snippet bgbk:c
|
||||||
@ -52,7 +52,7 @@ snippet bgbk:c
|
|||||||
snippet bgbk:eb
|
snippet bgbk:eb
|
||||||
background-break: each-box;
|
background-break: each-box;
|
||||||
snippet bgcp
|
snippet bgcp
|
||||||
background-clip: ${1};
|
background-clip: ${0};
|
||||||
snippet bgcp:bb
|
snippet bgcp:bb
|
||||||
background-clip: border-box;
|
background-clip: border-box;
|
||||||
snippet bgcp:cb
|
snippet bgcp:cb
|
||||||
@ -62,15 +62,15 @@ snippet bgcp:nc
|
|||||||
snippet bgcp:pb
|
snippet bgcp:pb
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
snippet bgc
|
snippet bgc
|
||||||
background-color: #${1:FFF};
|
background-color: #${0:FFF};
|
||||||
snippet bgc:t
|
snippet bgc:t
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
snippet bgi
|
snippet bgi
|
||||||
background-image: url(${1});
|
background-image: url(${0});
|
||||||
snippet bgi:n
|
snippet bgi:n
|
||||||
background-image: none;
|
background-image: none;
|
||||||
snippet bgo
|
snippet bgo
|
||||||
background-origin: ${1};
|
background-origin: ${0};
|
||||||
snippet bgo:bb
|
snippet bgo:bb
|
||||||
background-origin: border-box;
|
background-origin: border-box;
|
||||||
snippet bgo:cb
|
snippet bgo:cb
|
||||||
@ -78,13 +78,13 @@ snippet bgo:cb
|
|||||||
snippet bgo:pb
|
snippet bgo:pb
|
||||||
background-origin: padding-box;
|
background-origin: padding-box;
|
||||||
snippet bgpx
|
snippet bgpx
|
||||||
background-position-x: ${1};
|
background-position-x: ${0};
|
||||||
snippet bgpy
|
snippet bgpy
|
||||||
background-position-y: ${1};
|
background-position-y: ${0};
|
||||||
snippet bgp
|
snippet bgp
|
||||||
background-position: ${1:0} ${2:0};
|
background-position: ${1:0} ${0:0};
|
||||||
snippet bgr
|
snippet bgr
|
||||||
background-repeat: ${1};
|
background-repeat: ${0};
|
||||||
snippet bgr:n
|
snippet bgr:n
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
snippet bgr:x
|
snippet bgr:x
|
||||||
@ -94,7 +94,7 @@ snippet bgr:y
|
|||||||
snippet bgr:r
|
snippet bgr:r
|
||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
snippet bgz
|
snippet bgz
|
||||||
background-size: ${1};
|
background-size: ${0};
|
||||||
snippet bgz:a
|
snippet bgz:a
|
||||||
background-size: auto;
|
background-size: auto;
|
||||||
snippet bgz:ct
|
snippet bgz:ct
|
||||||
@ -102,67 +102,67 @@ snippet bgz:ct
|
|||||||
snippet bgz:cv
|
snippet bgz:cv
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
snippet bg
|
snippet bg
|
||||||
background: ${1};
|
background: ${0};
|
||||||
snippet bg:ie
|
snippet bg:ie
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${2:crop}');
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${0:crop}');
|
||||||
snippet bg:n
|
snippet bg:n
|
||||||
background: none;
|
background: none;
|
||||||
snippet bd+
|
snippet bd+
|
||||||
border: ${1:1px} ${2:solid} #${3:000};
|
border: ${1:1px} ${2:solid} #${0:000};
|
||||||
snippet bdb+
|
snippet bdb+
|
||||||
border-bottom: ${1:1px} ${2:solid} #${3:000};
|
border-bottom: ${1:1px} ${2:solid} #${0:000};
|
||||||
snippet bdbc
|
snippet bdbc
|
||||||
border-bottom-color: #${1:000};
|
border-bottom-color: #${0:000};
|
||||||
snippet bdbi
|
snippet bdbi
|
||||||
border-bottom-image: url(${1});
|
border-bottom-image: url(${0});
|
||||||
snippet bdbi:n
|
snippet bdbi:n
|
||||||
border-bottom-image: none;
|
border-bottom-image: none;
|
||||||
snippet bdbli
|
snippet bdbli
|
||||||
border-bottom-left-image: url(${1});
|
border-bottom-left-image: url(${0});
|
||||||
snippet bdbli:c
|
snippet bdbli:c
|
||||||
border-bottom-left-image: continue;
|
border-bottom-left-image: continue;
|
||||||
snippet bdbli:n
|
snippet bdbli:n
|
||||||
border-bottom-left-image: none;
|
border-bottom-left-image: none;
|
||||||
snippet bdblrz
|
snippet bdblrz
|
||||||
border-bottom-left-radius: ${1};
|
border-bottom-left-radius: ${0};
|
||||||
snippet bdbri
|
snippet bdbri
|
||||||
border-bottom-right-image: url(${1});
|
border-bottom-right-image: url(${0});
|
||||||
snippet bdbri:c
|
snippet bdbri:c
|
||||||
border-bottom-right-image: continue;
|
border-bottom-right-image: continue;
|
||||||
snippet bdbri:n
|
snippet bdbri:n
|
||||||
border-bottom-right-image: none;
|
border-bottom-right-image: none;
|
||||||
snippet bdbrrz
|
snippet bdbrrz
|
||||||
border-bottom-right-radius: ${1};
|
border-bottom-right-radius: ${0};
|
||||||
snippet bdbs
|
snippet bdbs
|
||||||
border-bottom-style: ${1};
|
border-bottom-style: ${0};
|
||||||
snippet bdbs:n
|
snippet bdbs:n
|
||||||
border-bottom-style: none;
|
border-bottom-style: none;
|
||||||
snippet bdbw
|
snippet bdbw
|
||||||
border-bottom-width: ${1};
|
border-bottom-width: ${0};
|
||||||
snippet bdb
|
snippet bdb
|
||||||
border-bottom: ${1};
|
border-bottom: ${0};
|
||||||
snippet bdb:n
|
snippet bdb:n
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
snippet bdbk
|
snippet bdbk
|
||||||
border-break: ${1};
|
border-break: ${0};
|
||||||
snippet bdbk:c
|
snippet bdbk:c
|
||||||
border-break: close;
|
border-break: close;
|
||||||
snippet bdcl
|
snippet bdcl
|
||||||
border-collapse: ${1};
|
border-collapse: ${0};
|
||||||
snippet bdcl:c
|
snippet bdcl:c
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
snippet bdcl:s
|
snippet bdcl:s
|
||||||
border-collapse: separate;
|
border-collapse: separate;
|
||||||
snippet bdc
|
snippet bdc
|
||||||
border-color: #${1:000};
|
border-color: #${0:000};
|
||||||
snippet bdci
|
snippet bdci
|
||||||
border-corner-image: url(${1});
|
border-corner-image: url(${0});
|
||||||
snippet bdci:c
|
snippet bdci:c
|
||||||
border-corner-image: continue;
|
border-corner-image: continue;
|
||||||
snippet bdci:n
|
snippet bdci:n
|
||||||
border-corner-image: none;
|
border-corner-image: none;
|
||||||
snippet bdf
|
snippet bdf
|
||||||
border-fit: ${1};
|
border-fit: ${0};
|
||||||
snippet bdf:c
|
snippet bdf:c
|
||||||
border-fit: clip;
|
border-fit: clip;
|
||||||
snippet bdf:of
|
snippet bdf:of
|
||||||
@ -178,55 +178,55 @@ snippet bdf:sp
|
|||||||
snippet bdf:st
|
snippet bdf:st
|
||||||
border-fit: stretch;
|
border-fit: stretch;
|
||||||
snippet bdi
|
snippet bdi
|
||||||
border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};
|
border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch};
|
||||||
snippet bdi:n
|
snippet bdi:n
|
||||||
border-image: none;
|
border-image: none;
|
||||||
snippet bdl+
|
snippet bdl+
|
||||||
border-left: ${1:1px} ${2:solid} #${3:000};
|
border-left: ${1:1px} ${2:solid} #${0:000};
|
||||||
snippet bdlc
|
snippet bdlc
|
||||||
border-left-color: #${1:000};
|
border-left-color: #${0:000};
|
||||||
snippet bdli
|
snippet bdli
|
||||||
border-left-image: url(${1});
|
border-left-image: url(${0});
|
||||||
snippet bdli:n
|
snippet bdli:n
|
||||||
border-left-image: none;
|
border-left-image: none;
|
||||||
snippet bdls
|
snippet bdls
|
||||||
border-left-style: ${1};
|
border-left-style: ${0};
|
||||||
snippet bdls:n
|
snippet bdls:n
|
||||||
border-left-style: none;
|
border-left-style: none;
|
||||||
snippet bdlw
|
snippet bdlw
|
||||||
border-left-width: ${1};
|
border-left-width: ${0};
|
||||||
snippet bdl
|
snippet bdl
|
||||||
border-left: ${1};
|
border-left: ${0};
|
||||||
snippet bdl:n
|
snippet bdl:n
|
||||||
border-left: none;
|
border-left: none;
|
||||||
snippet bdlt
|
snippet bdlt
|
||||||
border-length: ${1};
|
border-length: ${0};
|
||||||
snippet bdlt:a
|
snippet bdlt:a
|
||||||
border-length: auto;
|
border-length: auto;
|
||||||
snippet bdrz
|
snippet bdrz
|
||||||
border-radius: ${1};
|
border-radius: ${0};
|
||||||
snippet bdr+
|
snippet bdr+
|
||||||
border-right: ${1:1px} ${2:solid} #${3:000};
|
border-right: ${1:1px} ${2:solid} #${0:000};
|
||||||
snippet bdrc
|
snippet bdrc
|
||||||
border-right-color: #${1:000};
|
border-right-color: #${0:000};
|
||||||
snippet bdri
|
snippet bdri
|
||||||
border-right-image: url(${1});
|
border-right-image: url(${0});
|
||||||
snippet bdri:n
|
snippet bdri:n
|
||||||
border-right-image: none;
|
border-right-image: none;
|
||||||
snippet bdrs
|
snippet bdrs
|
||||||
border-right-style: ${1};
|
border-right-style: ${0};
|
||||||
snippet bdrs:n
|
snippet bdrs:n
|
||||||
border-right-style: none;
|
border-right-style: none;
|
||||||
snippet bdrw
|
snippet bdrw
|
||||||
border-right-width: ${1};
|
border-right-width: ${0};
|
||||||
snippet bdr
|
snippet bdr
|
||||||
border-right: ${1};
|
border-right: ${0};
|
||||||
snippet bdr:n
|
snippet bdr:n
|
||||||
border-right: none;
|
border-right: none;
|
||||||
snippet bdsp
|
snippet bdsp
|
||||||
border-spacing: ${1};
|
border-spacing: ${0};
|
||||||
snippet bds
|
snippet bds
|
||||||
border-style: ${1};
|
border-style: ${0};
|
||||||
snippet bds:ds
|
snippet bds:ds
|
||||||
border-style: dashed;
|
border-style: dashed;
|
||||||
snippet bds:dtds
|
snippet bds:dtds
|
||||||
@ -254,69 +254,69 @@ snippet bds:s
|
|||||||
snippet bds:w
|
snippet bds:w
|
||||||
border-style: wave;
|
border-style: wave;
|
||||||
snippet bdt+
|
snippet bdt+
|
||||||
border-top: ${1:1px} ${2:solid} #${3:000};
|
border-top: ${1:1px} ${2:solid} #${0:000};
|
||||||
snippet bdtc
|
snippet bdtc
|
||||||
border-top-color: #${1:000};
|
border-top-color: #${0:000};
|
||||||
snippet bdti
|
snippet bdti
|
||||||
border-top-image: url(${1});
|
border-top-image: url(${0});
|
||||||
snippet bdti:n
|
snippet bdti:n
|
||||||
border-top-image: none;
|
border-top-image: none;
|
||||||
snippet bdtli
|
snippet bdtli
|
||||||
border-top-left-image: url(${1});
|
border-top-left-image: url(${0});
|
||||||
snippet bdtli:c
|
snippet bdtli:c
|
||||||
border-corner-image: continue;
|
border-corner-image: continue;
|
||||||
snippet bdtli:n
|
snippet bdtli:n
|
||||||
border-corner-image: none;
|
border-corner-image: none;
|
||||||
snippet bdtlrz
|
snippet bdtlrz
|
||||||
border-top-left-radius: ${1};
|
border-top-left-radius: ${0};
|
||||||
snippet bdtri
|
snippet bdtri
|
||||||
border-top-right-image: url(${1});
|
border-top-right-image: url(${0});
|
||||||
snippet bdtri:c
|
snippet bdtri:c
|
||||||
border-top-right-image: continue;
|
border-top-right-image: continue;
|
||||||
snippet bdtri:n
|
snippet bdtri:n
|
||||||
border-top-right-image: none;
|
border-top-right-image: none;
|
||||||
snippet bdtrrz
|
snippet bdtrrz
|
||||||
border-top-right-radius: ${1};
|
border-top-right-radius: ${0};
|
||||||
snippet bdts
|
snippet bdts
|
||||||
border-top-style: ${1};
|
border-top-style: ${0};
|
||||||
snippet bdts:n
|
snippet bdts:n
|
||||||
border-top-style: none;
|
border-top-style: none;
|
||||||
snippet bdtw
|
snippet bdtw
|
||||||
border-top-width: ${1};
|
border-top-width: ${0};
|
||||||
snippet bdt
|
snippet bdt
|
||||||
border-top: ${1};
|
border-top: ${0};
|
||||||
snippet bdt:n
|
snippet bdt:n
|
||||||
border-top: none;
|
border-top: none;
|
||||||
snippet bdw
|
snippet bdw
|
||||||
border-width: ${1};
|
border-width: ${0};
|
||||||
snippet bd
|
snippet bd
|
||||||
border: ${1};
|
border: ${0};
|
||||||
snippet bd:n
|
snippet bd:n
|
||||||
border: none;
|
border: none;
|
||||||
snippet b
|
snippet b
|
||||||
bottom: ${1};
|
bottom: ${0};
|
||||||
snippet b:a
|
snippet b:a
|
||||||
bottom: auto;
|
bottom: auto;
|
||||||
snippet bxsh+
|
snippet bxsh+
|
||||||
box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};
|
box-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
|
||||||
snippet bxsh
|
snippet bxsh
|
||||||
box-shadow: ${1};
|
box-shadow: ${0};
|
||||||
snippet bxsh:n
|
snippet bxsh:n
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
snippet bxz
|
snippet bxz
|
||||||
box-sizing: ${1};
|
box-sizing: ${0};
|
||||||
snippet bxz:bb
|
snippet bxz:bb
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
snippet bxz:cb
|
snippet bxz:cb
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
snippet cps
|
snippet cps
|
||||||
caption-side: ${1};
|
caption-side: ${0};
|
||||||
snippet cps:b
|
snippet cps:b
|
||||||
caption-side: bottom;
|
caption-side: bottom;
|
||||||
snippet cps:t
|
snippet cps:t
|
||||||
caption-side: top;
|
caption-side: top;
|
||||||
snippet cl
|
snippet cl
|
||||||
clear: ${1};
|
clear: ${0};
|
||||||
snippet cl:b
|
snippet cl:b
|
||||||
clear: both;
|
clear: both;
|
||||||
snippet cl:l
|
snippet cl:l
|
||||||
@ -326,23 +326,23 @@ snippet cl:n
|
|||||||
snippet cl:r
|
snippet cl:r
|
||||||
clear: right;
|
clear: right;
|
||||||
snippet cp
|
snippet cp
|
||||||
clip: ${1};
|
clip: ${0};
|
||||||
snippet cp:a
|
snippet cp:a
|
||||||
clip: auto;
|
clip: auto;
|
||||||
snippet cp:r
|
snippet cp:r
|
||||||
clip: rect(${1:0} ${2:0} ${3:0} ${4:0});
|
clip: rect(${1:0} ${2:0} ${3:0} ${0:0});
|
||||||
snippet c
|
snippet c
|
||||||
color: #${1:000};
|
color: #${0:000};
|
||||||
snippet ct
|
snippet ct
|
||||||
content: ${1};
|
content: ${0};
|
||||||
snippet ct:a
|
snippet ct:a
|
||||||
content: attr(${1});
|
content: attr(${0});
|
||||||
snippet ct:cq
|
snippet ct:cq
|
||||||
content: close-quote;
|
content: close-quote;
|
||||||
snippet ct:c
|
snippet ct:c
|
||||||
content: counter(${1});
|
content: counter(${0});
|
||||||
snippet ct:cs
|
snippet ct:cs
|
||||||
content: counters(${1});
|
content: counters(${0});
|
||||||
snippet ct:ncq
|
snippet ct:ncq
|
||||||
content: no-close-quote;
|
content: no-close-quote;
|
||||||
snippet ct:noq
|
snippet ct:noq
|
||||||
@ -352,11 +352,11 @@ snippet ct:n
|
|||||||
snippet ct:oq
|
snippet ct:oq
|
||||||
content: open-quote;
|
content: open-quote;
|
||||||
snippet coi
|
snippet coi
|
||||||
counter-increment: ${1};
|
counter-increment: ${0};
|
||||||
snippet cor
|
snippet cor
|
||||||
counter-reset: ${1};
|
counter-reset: ${0};
|
||||||
snippet cur
|
snippet cur
|
||||||
cursor: ${1};
|
cursor: ${0};
|
||||||
snippet cur:a
|
snippet cur:a
|
||||||
cursor: auto;
|
cursor: auto;
|
||||||
snippet cur:c
|
snippet cur:c
|
||||||
@ -374,7 +374,7 @@ snippet cur:p
|
|||||||
snippet cur:t
|
snippet cur:t
|
||||||
cursor: text;
|
cursor: text;
|
||||||
snippet d
|
snippet d
|
||||||
display: ${1};
|
display: ${0};
|
||||||
snippet d:mib
|
snippet d:mib
|
||||||
display: -moz-inline-box;
|
display: -moz-inline-box;
|
||||||
snippet d:mis
|
snippet d:mis
|
||||||
@ -414,7 +414,7 @@ snippet d:tbr
|
|||||||
snippet d:tb
|
snippet d:tb
|
||||||
display: table;
|
display: table;
|
||||||
snippet ec
|
snippet ec
|
||||||
empty-cells: ${1};
|
empty-cells: ${0};
|
||||||
snippet ec:h
|
snippet ec:h
|
||||||
empty-cells: hide;
|
empty-cells: hide;
|
||||||
snippet ec:s
|
snippet ec:s
|
||||||
@ -422,7 +422,7 @@ snippet ec:s
|
|||||||
snippet exp
|
snippet exp
|
||||||
expression()
|
expression()
|
||||||
snippet fl
|
snippet fl
|
||||||
float: ${1};
|
float: ${0};
|
||||||
snippet fl:l
|
snippet fl:l
|
||||||
float: left;
|
float: left;
|
||||||
snippet fl:n
|
snippet fl:n
|
||||||
@ -430,9 +430,9 @@ snippet fl:n
|
|||||||
snippet fl:r
|
snippet fl:r
|
||||||
float: right;
|
float: right;
|
||||||
snippet f+
|
snippet f+
|
||||||
font: ${1:1em} ${2:Arial},${3:sans-serif};
|
font: ${1:1em} ${2:Arial},${0:sans-serif};
|
||||||
snippet fef
|
snippet fef
|
||||||
font-effect: ${1};
|
font-effect: ${0};
|
||||||
snippet fef:eb
|
snippet fef:eb
|
||||||
font-effect: emboss;
|
font-effect: emboss;
|
||||||
snippet fef:eg
|
snippet fef:eg
|
||||||
@ -442,13 +442,13 @@ snippet fef:n
|
|||||||
snippet fef:o
|
snippet fef:o
|
||||||
font-effect: outline;
|
font-effect: outline;
|
||||||
snippet femp
|
snippet femp
|
||||||
font-emphasize-position: ${1};
|
font-emphasize-position: ${0};
|
||||||
snippet femp:a
|
snippet femp:a
|
||||||
font-emphasize-position: after;
|
font-emphasize-position: after;
|
||||||
snippet femp:b
|
snippet femp:b
|
||||||
font-emphasize-position: before;
|
font-emphasize-position: before;
|
||||||
snippet fems
|
snippet fems
|
||||||
font-emphasize-style: ${1};
|
font-emphasize-style: ${0};
|
||||||
snippet fems:ac
|
snippet fems:ac
|
||||||
font-emphasize-style: accent;
|
font-emphasize-style: accent;
|
||||||
snippet fems:c
|
snippet fems:c
|
||||||
@ -460,27 +460,27 @@ snippet fems:dt
|
|||||||
snippet fems:n
|
snippet fems:n
|
||||||
font-emphasize-style: none;
|
font-emphasize-style: none;
|
||||||
snippet fem
|
snippet fem
|
||||||
font-emphasize: ${1};
|
font-emphasize: ${0};
|
||||||
snippet ff
|
snippet ff
|
||||||
font-family: ${1};
|
font-family: ${0};
|
||||||
snippet ff:c
|
snippet ff:c
|
||||||
font-family: ${1:'Monotype Corsiva','Comic Sans MS'},cursive;
|
font-family: ${0:'Monotype Corsiva','Comic Sans MS'},cursive;
|
||||||
snippet ff:f
|
snippet ff:f
|
||||||
font-family: ${1:Capitals,Impact},fantasy;
|
font-family: ${0:Capitals,Impact},fantasy;
|
||||||
snippet ff:m
|
snippet ff:m
|
||||||
font-family: ${1:Monaco,'Courier New'},monospace;
|
font-family: ${0:Monaco,'Courier New'},monospace;
|
||||||
snippet ff:ss
|
snippet ff:ss
|
||||||
font-family: ${1:Helvetica,Arial},sans-serif;
|
font-family: ${0:Helvetica,Arial},sans-serif;
|
||||||
snippet ff:s
|
snippet ff:s
|
||||||
font-family: ${1:Georgia,'Times New Roman'},serif;
|
font-family: ${0:Georgia,'Times New Roman'},serif;
|
||||||
snippet fza
|
snippet fza
|
||||||
font-size-adjust: ${1};
|
font-size-adjust: ${0};
|
||||||
snippet fza:n
|
snippet fza:n
|
||||||
font-size-adjust: none;
|
font-size-adjust: none;
|
||||||
snippet fz
|
snippet fz
|
||||||
font-size: ${1};
|
font-size: ${0};
|
||||||
snippet fsm
|
snippet fsm
|
||||||
font-smooth: ${1};
|
font-smooth: ${0};
|
||||||
snippet fsm:aw
|
snippet fsm:aw
|
||||||
font-smooth: always;
|
font-smooth: always;
|
||||||
snippet fsm:a
|
snippet fsm:a
|
||||||
@ -488,7 +488,7 @@ snippet fsm:a
|
|||||||
snippet fsm:n
|
snippet fsm:n
|
||||||
font-smooth: never;
|
font-smooth: never;
|
||||||
snippet fst
|
snippet fst
|
||||||
font-stretch: ${1};
|
font-stretch: ${0};
|
||||||
snippet fst:c
|
snippet fst:c
|
||||||
font-stretch: condensed;
|
font-stretch: condensed;
|
||||||
snippet fst:e
|
snippet fst:e
|
||||||
@ -508,7 +508,7 @@ snippet fst:uc
|
|||||||
snippet fst:ue
|
snippet fst:ue
|
||||||
font-stretch: ultra-expanded;
|
font-stretch: ultra-expanded;
|
||||||
snippet fs
|
snippet fs
|
||||||
font-style: ${1};
|
font-style: ${0};
|
||||||
snippet fs:i
|
snippet fs:i
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
snippet fs:n
|
snippet fs:n
|
||||||
@ -516,13 +516,13 @@ snippet fs:n
|
|||||||
snippet fs:o
|
snippet fs:o
|
||||||
font-style: oblique;
|
font-style: oblique;
|
||||||
snippet fv
|
snippet fv
|
||||||
font-variant: ${1};
|
font-variant: ${0};
|
||||||
snippet fv:n
|
snippet fv:n
|
||||||
font-variant: normal;
|
font-variant: normal;
|
||||||
snippet fv:sc
|
snippet fv:sc
|
||||||
font-variant: small-caps;
|
font-variant: small-caps;
|
||||||
snippet fw
|
snippet fw
|
||||||
font-weight: ${1};
|
font-weight: ${0};
|
||||||
snippet fw:b
|
snippet fw:b
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
snippet fw:br
|
snippet fw:br
|
||||||
@ -532,31 +532,31 @@ snippet fw:lr
|
|||||||
snippet fw:n
|
snippet fw:n
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
snippet f
|
snippet f
|
||||||
font: ${1};
|
font: ${0};
|
||||||
snippet h
|
snippet h
|
||||||
height: ${1};
|
height: ${0};
|
||||||
snippet h:a
|
snippet h:a
|
||||||
height: auto;
|
height: auto;
|
||||||
snippet l
|
snippet l
|
||||||
left: ${1};
|
left: ${0};
|
||||||
snippet l:a
|
snippet l:a
|
||||||
left: auto;
|
left: auto;
|
||||||
snippet lts
|
snippet lts
|
||||||
letter-spacing: ${1};
|
letter-spacing: ${0};
|
||||||
snippet lh
|
snippet lh
|
||||||
line-height: ${1};
|
line-height: ${0};
|
||||||
snippet lisi
|
snippet lisi
|
||||||
list-style-image: url(${1});
|
list-style-image: url(${0});
|
||||||
snippet lisi:n
|
snippet lisi:n
|
||||||
list-style-image: none;
|
list-style-image: none;
|
||||||
snippet lisp
|
snippet lisp
|
||||||
list-style-position: ${1};
|
list-style-position: ${0};
|
||||||
snippet lisp:i
|
snippet lisp:i
|
||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
snippet lisp:o
|
snippet lisp:o
|
||||||
list-style-position: outside;
|
list-style-position: outside;
|
||||||
snippet list
|
snippet list
|
||||||
list-style-type: ${1};
|
list-style-type: ${0};
|
||||||
snippet list:c
|
snippet list:c
|
||||||
list-style-type: circle;
|
list-style-type: circle;
|
||||||
snippet list:dclz
|
snippet list:dclz
|
||||||
@ -574,75 +574,75 @@ snippet list:s
|
|||||||
snippet list:ur
|
snippet list:ur
|
||||||
list-style-type: upper-roman;
|
list-style-type: upper-roman;
|
||||||
snippet lis
|
snippet lis
|
||||||
list-style: ${1};
|
list-style: ${0};
|
||||||
snippet lis:n
|
snippet lis:n
|
||||||
list-style: none;
|
list-style: none;
|
||||||
snippet mb
|
snippet mb
|
||||||
margin-bottom: ${1};
|
margin-bottom: ${0};
|
||||||
snippet mb:a
|
snippet mb:a
|
||||||
margin-bottom: auto;
|
margin-bottom: auto;
|
||||||
snippet ml
|
snippet ml
|
||||||
margin-left: ${1};
|
margin-left: ${0};
|
||||||
snippet ml:a
|
snippet ml:a
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
snippet mr
|
snippet mr
|
||||||
margin-right: ${1};
|
margin-right: ${0};
|
||||||
snippet mr:a
|
snippet mr:a
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
snippet mt
|
snippet mt
|
||||||
margin-top: ${1};
|
margin-top: ${0};
|
||||||
snippet mt:a
|
snippet mt:a
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
snippet m
|
snippet m
|
||||||
margin: ${1};
|
margin: ${0};
|
||||||
snippet m:4
|
snippet m:4
|
||||||
margin: ${1:0} ${2:0} ${3:0} ${4:0};
|
margin: ${1:0} ${2:0} ${3:0} ${0:0};
|
||||||
snippet m:3
|
snippet m:3
|
||||||
margin: ${1:0} ${2:0} ${3:0};
|
margin: ${1:0} ${2:0} ${0:0};
|
||||||
snippet m:2
|
snippet m:2
|
||||||
margin: ${1:0} ${2:0};
|
margin: ${1:0} ${0:0};
|
||||||
snippet m:0
|
snippet m:0
|
||||||
margin: 0;
|
margin: 0;
|
||||||
snippet m:a
|
snippet m:a
|
||||||
margin: auto;
|
margin: auto;
|
||||||
snippet mah
|
snippet mah
|
||||||
max-height: ${1};
|
max-height: ${0};
|
||||||
snippet mah:n
|
snippet mah:n
|
||||||
max-height: none;
|
max-height: none;
|
||||||
snippet maw
|
snippet maw
|
||||||
max-width: ${1};
|
max-width: ${0};
|
||||||
snippet maw:n
|
snippet maw:n
|
||||||
max-width: none;
|
max-width: none;
|
||||||
snippet mih
|
snippet mih
|
||||||
min-height: ${1};
|
min-height: ${0};
|
||||||
snippet miw
|
snippet miw
|
||||||
min-width: ${1};
|
min-width: ${0};
|
||||||
snippet op
|
snippet op
|
||||||
opacity: ${1};
|
opacity: ${0};
|
||||||
snippet op:ie
|
snippet op:ie
|
||||||
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100});
|
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100});
|
||||||
snippet op:ms
|
snippet op:ms
|
||||||
-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100})';
|
-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100})';
|
||||||
snippet orp
|
snippet orp
|
||||||
orphans: ${1};
|
orphans: ${0};
|
||||||
snippet o+
|
snippet o+
|
||||||
outline: ${1:1px} ${2:solid} #${3:000};
|
outline: ${1:1px} ${2:solid} #${0:000};
|
||||||
snippet oc
|
snippet oc
|
||||||
outline-color: ${1:#000};
|
outline-color: ${0:#000};
|
||||||
snippet oc:i
|
snippet oc:i
|
||||||
outline-color: invert;
|
outline-color: invert;
|
||||||
snippet oo
|
snippet oo
|
||||||
outline-offset: ${1};
|
outline-offset: ${0};
|
||||||
snippet os
|
snippet os
|
||||||
outline-style: ${1};
|
outline-style: ${0};
|
||||||
snippet ow
|
snippet ow
|
||||||
outline-width: ${1};
|
outline-width: ${0};
|
||||||
snippet o
|
snippet o
|
||||||
outline: ${1};
|
outline: ${0};
|
||||||
snippet o:n
|
snippet o:n
|
||||||
outline: none;
|
outline: none;
|
||||||
snippet ovs
|
snippet ovs
|
||||||
overflow-style: ${1};
|
overflow-style: ${0};
|
||||||
snippet ovs:a
|
snippet ovs:a
|
||||||
overflow-style: auto;
|
overflow-style: auto;
|
||||||
snippet ovs:mq
|
snippet ovs:mq
|
||||||
@ -654,7 +654,7 @@ snippet ovs:p
|
|||||||
snippet ovs:s
|
snippet ovs:s
|
||||||
overflow-style: scrollbar;
|
overflow-style: scrollbar;
|
||||||
snippet ovx
|
snippet ovx
|
||||||
overflow-x: ${1};
|
overflow-x: ${0};
|
||||||
snippet ovx:a
|
snippet ovx:a
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
snippet ovx:h
|
snippet ovx:h
|
||||||
@ -664,7 +664,7 @@ snippet ovx:s
|
|||||||
snippet ovx:v
|
snippet ovx:v
|
||||||
overflow-x: visible;
|
overflow-x: visible;
|
||||||
snippet ovy
|
snippet ovy
|
||||||
overflow-y: ${1};
|
overflow-y: ${0};
|
||||||
snippet ovy:a
|
snippet ovy:a
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
snippet ovy:h
|
snippet ovy:h
|
||||||
@ -674,7 +674,7 @@ snippet ovy:s
|
|||||||
snippet ovy:v
|
snippet ovy:v
|
||||||
overflow-y: visible;
|
overflow-y: visible;
|
||||||
snippet ov
|
snippet ov
|
||||||
overflow: ${1};
|
overflow: ${0};
|
||||||
snippet ov:a
|
snippet ov:a
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
snippet ov:h
|
snippet ov:h
|
||||||
@ -684,25 +684,25 @@ snippet ov:s
|
|||||||
snippet ov:v
|
snippet ov:v
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
snippet pb
|
snippet pb
|
||||||
padding-bottom: ${1};
|
padding-bottom: ${0};
|
||||||
snippet pl
|
snippet pl
|
||||||
padding-left: ${1};
|
padding-left: ${0};
|
||||||
snippet pr
|
snippet pr
|
||||||
padding-right: ${1};
|
padding-right: ${0};
|
||||||
snippet pt
|
snippet pt
|
||||||
padding-top: ${1};
|
padding-top: ${0};
|
||||||
snippet p
|
snippet p
|
||||||
padding: ${1};
|
padding: ${0};
|
||||||
snippet p:4
|
snippet p:4
|
||||||
padding: ${1:0} ${2:0} ${3:0} ${4:0};
|
padding: ${1:0} ${2:0} ${3:0} ${0:0};
|
||||||
snippet p:3
|
snippet p:3
|
||||||
padding: ${1:0} ${2:0} ${3:0};
|
padding: ${1:0} ${2:0} ${0:0};
|
||||||
snippet p:2
|
snippet p:2
|
||||||
padding: ${1:0} ${2:0};
|
padding: ${1:0} ${0:0};
|
||||||
snippet p:0
|
snippet p:0
|
||||||
padding: 0;
|
padding: 0;
|
||||||
snippet pgba
|
snippet pgba
|
||||||
page-break-after: ${1};
|
page-break-after: ${0};
|
||||||
snippet pgba:aw
|
snippet pgba:aw
|
||||||
page-break-after: always;
|
page-break-after: always;
|
||||||
snippet pgba:a
|
snippet pgba:a
|
||||||
@ -712,7 +712,7 @@ snippet pgba:l
|
|||||||
snippet pgba:r
|
snippet pgba:r
|
||||||
page-break-after: right;
|
page-break-after: right;
|
||||||
snippet pgbb
|
snippet pgbb
|
||||||
page-break-before: ${1};
|
page-break-before: ${0};
|
||||||
snippet pgbb:aw
|
snippet pgbb:aw
|
||||||
page-break-before: always;
|
page-break-before: always;
|
||||||
snippet pgbb:a
|
snippet pgbb:a
|
||||||
@ -722,13 +722,13 @@ snippet pgbb:l
|
|||||||
snippet pgbb:r
|
snippet pgbb:r
|
||||||
page-break-before: right;
|
page-break-before: right;
|
||||||
snippet pgbi
|
snippet pgbi
|
||||||
page-break-inside: ${1};
|
page-break-inside: ${0};
|
||||||
snippet pgbi:a
|
snippet pgbi:a
|
||||||
page-break-inside: auto;
|
page-break-inside: auto;
|
||||||
snippet pgbi:av
|
snippet pgbi:av
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
snippet pos
|
snippet pos
|
||||||
position: ${1};
|
position: ${0};
|
||||||
snippet pos:a
|
snippet pos:a
|
||||||
position: absolute;
|
position: absolute;
|
||||||
snippet pos:f
|
snippet pos:f
|
||||||
@ -738,7 +738,7 @@ snippet pos:r
|
|||||||
snippet pos:s
|
snippet pos:s
|
||||||
position: static;
|
position: static;
|
||||||
snippet q
|
snippet q
|
||||||
quotes: ${1};
|
quotes: ${0};
|
||||||
snippet q:en
|
snippet q:en
|
||||||
quotes: '\201C' '\201D' '\2018' '\2019';
|
quotes: '\201C' '\201D' '\2018' '\2019';
|
||||||
snippet q:n
|
snippet q:n
|
||||||
@ -746,7 +746,7 @@ snippet q:n
|
|||||||
snippet q:ru
|
snippet q:ru
|
||||||
quotes: '\00AB' '\00BB' '\201E' '\201C';
|
quotes: '\00AB' '\00BB' '\201E' '\201C';
|
||||||
snippet rz
|
snippet rz
|
||||||
resize: ${1};
|
resize: ${0};
|
||||||
snippet rz:b
|
snippet rz:b
|
||||||
resize: both;
|
resize: both;
|
||||||
snippet rz:h
|
snippet rz:h
|
||||||
@ -756,17 +756,17 @@ snippet rz:n
|
|||||||
snippet rz:v
|
snippet rz:v
|
||||||
resize: vertical;
|
resize: vertical;
|
||||||
snippet r
|
snippet r
|
||||||
right: ${1};
|
right: ${0};
|
||||||
snippet r:a
|
snippet r:a
|
||||||
right: auto;
|
right: auto;
|
||||||
snippet tbl
|
snippet tbl
|
||||||
table-layout: ${1};
|
table-layout: ${0};
|
||||||
snippet tbl:a
|
snippet tbl:a
|
||||||
table-layout: auto;
|
table-layout: auto;
|
||||||
snippet tbl:f
|
snippet tbl:f
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
snippet tal
|
snippet tal
|
||||||
text-align-last: ${1};
|
text-align-last: ${0};
|
||||||
snippet tal:a
|
snippet tal:a
|
||||||
text-align-last: auto;
|
text-align-last: auto;
|
||||||
snippet tal:c
|
snippet tal:c
|
||||||
@ -776,7 +776,7 @@ snippet tal:l
|
|||||||
snippet tal:r
|
snippet tal:r
|
||||||
text-align-last: right;
|
text-align-last: right;
|
||||||
snippet ta
|
snippet ta
|
||||||
text-align: ${1};
|
text-align: ${0};
|
||||||
snippet ta:c
|
snippet ta:c
|
||||||
text-align: center;
|
text-align: center;
|
||||||
snippet ta:l
|
snippet ta:l
|
||||||
@ -784,7 +784,7 @@ snippet ta:l
|
|||||||
snippet ta:r
|
snippet ta:r
|
||||||
text-align: right;
|
text-align: right;
|
||||||
snippet td
|
snippet td
|
||||||
text-decoration: ${1};
|
text-decoration: ${0};
|
||||||
snippet td:l
|
snippet td:l
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
snippet td:n
|
snippet td:n
|
||||||
@ -794,7 +794,7 @@ snippet td:o
|
|||||||
snippet td:u
|
snippet td:u
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
snippet te
|
snippet te
|
||||||
text-emphasis: ${1};
|
text-emphasis: ${0};
|
||||||
snippet te:ac
|
snippet te:ac
|
||||||
text-emphasis: accent;
|
text-emphasis: accent;
|
||||||
snippet te:a
|
snippet te:a
|
||||||
@ -810,7 +810,7 @@ snippet te:dt
|
|||||||
snippet te:n
|
snippet te:n
|
||||||
text-emphasis: none;
|
text-emphasis: none;
|
||||||
snippet th
|
snippet th
|
||||||
text-height: ${1};
|
text-height: ${0};
|
||||||
snippet th:a
|
snippet th:a
|
||||||
text-height: auto;
|
text-height: auto;
|
||||||
snippet th:f
|
snippet th:f
|
||||||
@ -820,11 +820,11 @@ snippet th:m
|
|||||||
snippet th:t
|
snippet th:t
|
||||||
text-height: text-size;
|
text-height: text-size;
|
||||||
snippet ti
|
snippet ti
|
||||||
text-indent: ${1};
|
text-indent: ${0};
|
||||||
snippet ti:-
|
snippet ti:-
|
||||||
text-indent: -9999px;
|
text-indent: -9999px;
|
||||||
snippet tj
|
snippet tj
|
||||||
text-justify: ${1};
|
text-justify: ${0};
|
||||||
snippet tj:a
|
snippet tj:a
|
||||||
text-justify: auto;
|
text-justify: auto;
|
||||||
snippet tj:d
|
snippet tj:d
|
||||||
@ -840,23 +840,23 @@ snippet tj:k
|
|||||||
snippet tj:t
|
snippet tj:t
|
||||||
text-justify: tibetan;
|
text-justify: tibetan;
|
||||||
snippet to+
|
snippet to+
|
||||||
text-outline: ${1:0} ${2:0} #${3:000};
|
text-outline: ${1:0} ${2:0} #${0:000};
|
||||||
snippet to
|
snippet to
|
||||||
text-outline: ${1};
|
text-outline: ${0};
|
||||||
snippet to:n
|
snippet to:n
|
||||||
text-outline: none;
|
text-outline: none;
|
||||||
snippet tr
|
snippet tr
|
||||||
text-replace: ${1};
|
text-replace: ${0};
|
||||||
snippet tr:n
|
snippet tr:n
|
||||||
text-replace: none;
|
text-replace: none;
|
||||||
snippet tsh+
|
snippet tsh+
|
||||||
text-shadow: ${1:0} ${2:0} ${3:0} #${4:000};
|
text-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
|
||||||
snippet tsh
|
snippet tsh
|
||||||
text-shadow: ${1};
|
text-shadow: ${0};
|
||||||
snippet tsh:n
|
snippet tsh:n
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
snippet tt
|
snippet tt
|
||||||
text-transform: ${1};
|
text-transform: ${0};
|
||||||
snippet tt:c
|
snippet tt:c
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
snippet tt:l
|
snippet tt:l
|
||||||
@ -866,7 +866,7 @@ snippet tt:n
|
|||||||
snippet tt:u
|
snippet tt:u
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
snippet tw
|
snippet tw
|
||||||
text-wrap: ${1};
|
text-wrap: ${0};
|
||||||
snippet tw:no
|
snippet tw:no
|
||||||
text-wrap: none;
|
text-wrap: none;
|
||||||
snippet tw:n
|
snippet tw:n
|
||||||
@ -876,11 +876,11 @@ snippet tw:s
|
|||||||
snippet tw:u
|
snippet tw:u
|
||||||
text-wrap: unrestricted;
|
text-wrap: unrestricted;
|
||||||
snippet t
|
snippet t
|
||||||
top: ${1};
|
top: ${0};
|
||||||
snippet t:a
|
snippet t:a
|
||||||
top: auto;
|
top: auto;
|
||||||
snippet va
|
snippet va
|
||||||
vertical-align: ${1};
|
vertical-align: ${0};
|
||||||
snippet va:bl
|
snippet va:bl
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
snippet va:b
|
snippet va:b
|
||||||
@ -898,7 +898,7 @@ snippet va:tt
|
|||||||
snippet va:t
|
snippet va:t
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
snippet v
|
snippet v
|
||||||
visibility: ${1};
|
visibility: ${0};
|
||||||
snippet v:c
|
snippet v:c
|
||||||
visibility: collapse;
|
visibility: collapse;
|
||||||
snippet v:h
|
snippet v:h
|
||||||
@ -906,7 +906,7 @@ snippet v:h
|
|||||||
snippet v:v
|
snippet v:v
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
snippet whsc
|
snippet whsc
|
||||||
white-space-collapse: ${1};
|
white-space-collapse: ${0};
|
||||||
snippet whsc:ba
|
snippet whsc:ba
|
||||||
white-space-collapse: break-all;
|
white-space-collapse: break-all;
|
||||||
snippet whsc:bs
|
snippet whsc:bs
|
||||||
@ -918,7 +918,7 @@ snippet whsc:l
|
|||||||
snippet whsc:n
|
snippet whsc:n
|
||||||
white-space-collapse: normal;
|
white-space-collapse: normal;
|
||||||
snippet whs
|
snippet whs
|
||||||
white-space: ${1};
|
white-space: ${0};
|
||||||
snippet whs:n
|
snippet whs:n
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
snippet whs:nw
|
snippet whs:nw
|
||||||
@ -930,13 +930,13 @@ snippet whs:pw
|
|||||||
snippet whs:p
|
snippet whs:p
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
snippet wid
|
snippet wid
|
||||||
widows: ${1};
|
widows: ${0};
|
||||||
snippet w
|
snippet w
|
||||||
width: ${1};
|
width: ${0};
|
||||||
snippet w:a
|
snippet w:a
|
||||||
width: auto;
|
width: auto;
|
||||||
snippet wob
|
snippet wob
|
||||||
word-break: ${1};
|
word-break: ${0};
|
||||||
snippet wob:ba
|
snippet wob:ba
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
snippet wob:bs
|
snippet wob:bs
|
||||||
@ -948,9 +948,9 @@ snippet wob:l
|
|||||||
snippet wob:n
|
snippet wob:n
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
snippet wos
|
snippet wos
|
||||||
word-spacing: ${1};
|
word-spacing: ${0};
|
||||||
snippet wow
|
snippet wow
|
||||||
word-wrap: ${1};
|
word-wrap: ${0};
|
||||||
snippet wow:no
|
snippet wow:no
|
||||||
word-wrap: none;
|
word-wrap: none;
|
||||||
snippet wow:n
|
snippet wow:n
|
||||||
@ -960,7 +960,7 @@ snippet wow:s
|
|||||||
snippet wow:u
|
snippet wow:u
|
||||||
word-wrap: unrestricted;
|
word-wrap: unrestricted;
|
||||||
snippet z
|
snippet z
|
||||||
z-index: ${1};
|
z-index: ${0};
|
||||||
snippet z:a
|
snippet z:a
|
||||||
z-index: auto;
|
z-index: auto;
|
||||||
snippet zoo
|
snippet zoo
|
||||||
|
@ -1,82 +1,82 @@
|
|||||||
snippet lib
|
snippet lib
|
||||||
#library('${1}');
|
#library('${1}');
|
||||||
${2}
|
${0}
|
||||||
snippet im
|
snippet im
|
||||||
#import('${1}');
|
#import('${1}');
|
||||||
${2}
|
${0}
|
||||||
snippet so
|
snippet so
|
||||||
#source('${1}');
|
#source('${1}');
|
||||||
${2}
|
${0}
|
||||||
snippet main
|
snippet main
|
||||||
static void main() {
|
static void main() {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet st
|
snippet st
|
||||||
static ${1}
|
static ${0}
|
||||||
snippet fi
|
snippet fi
|
||||||
final ${1}
|
final ${0}
|
||||||
snippet re
|
snippet re
|
||||||
return ${1}
|
return ${0}
|
||||||
snippet br
|
snippet br
|
||||||
break;
|
break;
|
||||||
snippet th
|
snippet th
|
||||||
throw ${1}
|
throw ${0}
|
||||||
snippet cl
|
snippet cl
|
||||||
class ${1:`vim_snippets#Filename("", "untitled")`} ${2}
|
class ${1:`vim_snippets#Filename("", "untitled")`} ${0}
|
||||||
snippet in
|
snippet in
|
||||||
interface ${1:`vim_snippets#Filename("", "untitled")`} ${2}
|
interface ${1:`vim_snippets#Filename("", "untitled")`} ${0}
|
||||||
snippet imp
|
snippet imp
|
||||||
implements ${1}
|
implements ${0}
|
||||||
snippet ext
|
snippet ext
|
||||||
extends ${1}
|
extends ${0}
|
||||||
snippet if
|
snippet if
|
||||||
if (${1:true}) {
|
if (${1:true}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet ife
|
snippet ife
|
||||||
if (${1:true}) {
|
if (${1:true}) {
|
||||||
${2}
|
${2}
|
||||||
} else {
|
} else {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet el
|
snippet el
|
||||||
else
|
else
|
||||||
snippet sw
|
snippet sw
|
||||||
switch (${1}) {
|
switch (${1}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet cs
|
snippet cs
|
||||||
case ${1}:
|
case ${1}:
|
||||||
${2}
|
${0}
|
||||||
snippet de
|
snippet de
|
||||||
default:
|
default:
|
||||||
${1}
|
${0}
|
||||||
snippet for
|
snippet for
|
||||||
for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {
|
for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {
|
||||||
${4:$1[$2]}
|
${0:$1[$2]}
|
||||||
}
|
}
|
||||||
snippet fore
|
snippet fore
|
||||||
for (final ${2:item} in ${1:itemList}) {
|
for (final ${2:item} in ${1:itemList}) {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1:/* condition */}) {
|
while (${1:/* condition */}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet dowh
|
snippet dowh
|
||||||
do {
|
do {
|
||||||
${2}
|
${0}
|
||||||
} while (${1:/* condition */});
|
} while (${0:/* condition */});
|
||||||
snippet as
|
snippet as
|
||||||
assert(${1:/* condition */});
|
assert(${0:/* condition */});
|
||||||
snippet try
|
snippet try
|
||||||
try {
|
try {
|
||||||
${2}
|
${0}
|
||||||
} catch (${1:Exception e}) {
|
} catch (${1:Exception e}) {
|
||||||
}
|
}
|
||||||
snippet tryf
|
snippet tryf
|
||||||
try {
|
try {
|
||||||
${2}
|
${0}
|
||||||
} catch (${1:Exception e}) {
|
} catch (${1:Exception e}) {
|
||||||
} finally {
|
} finally {
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,5 @@ snippet header DEP-3 style header
|
|||||||
Author: ${6:`g:snips_author`}
|
Author: ${6:`g:snips_author`}
|
||||||
Reviewed-by: ${7:name and email}
|
Reviewed-by: ${7:name and email}
|
||||||
Last-Update: ${8:`strftime("%Y-%m-%d")`}
|
Last-Update: ${8:`strftime("%Y-%m-%d")`}
|
||||||
Applied-Upstream: ${9:upstream version|url|commit}
|
Applied-Upstream: ${0:upstream version|url|commit}
|
||||||
|
|
||||||
|
@ -9,65 +9,65 @@
|
|||||||
# can either not specify them, or override them, e.g. auto_now_add=False.
|
# can either not specify them, or override them, e.g. auto_now_add=False.
|
||||||
|
|
||||||
snippet auto
|
snippet auto
|
||||||
${1:FIELDNAME} = models.AutoField(${2})
|
${1:FIELDNAME} = models.AutoField(${0})
|
||||||
snippet bool
|
snippet bool
|
||||||
${1:FIELDNAME} = models.BooleanField(${2:default=True})
|
${1:FIELDNAME} = models.BooleanField(${0:default=True})
|
||||||
snippet char
|
snippet char
|
||||||
${1:FIELDNAME} = models.CharField(max_length=${2}${3:, blank=True})
|
${1:FIELDNAME} = models.CharField(max_length=${2}${0:, blank=True})
|
||||||
snippet comma
|
snippet comma
|
||||||
${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${3:, blank=True})
|
${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${0:, blank=True})
|
||||||
snippet date
|
snippet date
|
||||||
${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})
|
${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${0:, blank=True, null=True})
|
||||||
snippet datetime
|
snippet datetime
|
||||||
${1:FIELDNAME} = models.DateTimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})
|
${1:FIELDNAME} = models.DateTimeField(${2:auto_now_add=True, auto_now=True}${0:, blank=True, null=True})
|
||||||
snippet decimal
|
snippet decimal
|
||||||
${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${3})
|
${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${0})
|
||||||
snippet email
|
snippet email
|
||||||
${1:FIELDNAME} = models.EmailField(max_length=${2:75}${3:, blank=True})
|
${1:FIELDNAME} = models.EmailField(max_length=${2:75}${0:, blank=True})
|
||||||
snippet file
|
snippet file
|
||||||
${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${3:, max_length=100})
|
${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${0:, max_length=100})
|
||||||
snippet filepath
|
snippet filepath
|
||||||
${1:FIELDNAME} = models.FilePathField(path=${2:"/abs/path/to/dir"}${3:, max_length=100}${4:, match="*.ext"}${5:, recursive=True}${6:, blank=True, })
|
${1:FIELDNAME} = models.FilePathField(path=${2:"/abs/path/to/dir"}${3:, max_length=100}${4:, match="*.ext"}${5:, recursive=True}${0:, blank=True, })
|
||||||
snippet float
|
snippet float
|
||||||
${1:FIELDNAME} = models.FloatField(${2})
|
${1:FIELDNAME} = models.FloatField(${0})
|
||||||
snippet image
|
snippet image
|
||||||
${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${4:, max_length=100})
|
${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${0:, max_length=100})
|
||||||
snippet int
|
snippet int
|
||||||
${1:FIELDNAME} = models.IntegerField(${2})
|
${1:FIELDNAME} = models.IntegerField(${0})
|
||||||
snippet ip
|
snippet ip
|
||||||
${1:FIELDNAME} = models.IPAddressField(${2})
|
${1:FIELDNAME} = models.IPAddressField(${0})
|
||||||
snippet nullbool
|
snippet nullbool
|
||||||
${1:FIELDNAME} = models.NullBooleanField(${2})
|
${1:FIELDNAME} = models.NullBooleanField(${0})
|
||||||
snippet posint
|
snippet posint
|
||||||
${1:FIELDNAME} = models.PositiveIntegerField(${2})
|
${1:FIELDNAME} = models.PositiveIntegerField(${0})
|
||||||
snippet possmallint
|
snippet possmallint
|
||||||
${1:FIELDNAME} = models.PositiveSmallIntegerField(${2})
|
${1:FIELDNAME} = models.PositiveSmallIntegerField(${0})
|
||||||
snippet slug
|
snippet slug
|
||||||
${1:FIELDNAME} = models.SlugField(max_length=${2:50}${3:, blank=True})
|
${1:FIELDNAME} = models.SlugField(max_length=${2:50}${0:, blank=True})
|
||||||
snippet smallint
|
snippet smallint
|
||||||
${1:FIELDNAME} = models.SmallIntegerField(${2})
|
${1:FIELDNAME} = models.SmallIntegerField(${0})
|
||||||
snippet text
|
snippet text
|
||||||
${1:FIELDNAME} = models.TextField(${2:blank=True})
|
${1:FIELDNAME} = models.TextField(${0:blank=True})
|
||||||
snippet time
|
snippet time
|
||||||
${1:FIELDNAME} = models.TimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})
|
${1:FIELDNAME} = models.TimeField(${2:auto_now_add=True, auto_now=True}${0:, blank=True, null=True})
|
||||||
snippet url
|
snippet url
|
||||||
${1:FIELDNAME} = models.URLField(${2:verify_exists=False}${3:, max_length=200}${4:, blank=True})
|
${1:FIELDNAME} = models.URLField(${2:verify_exists=False}${3:, max_length=200}${0:, blank=True})
|
||||||
snippet xml
|
snippet xml
|
||||||
${1:FIELDNAME} = models.XMLField(schema_path=${2:None}${3:, blank=True})
|
${1:FIELDNAME} = models.XMLField(schema_path=${2:None}${0:, blank=True})
|
||||||
# Relational Fields
|
# Relational Fields
|
||||||
snippet fk
|
snippet fk
|
||||||
${1:FIELDNAME} = models.ForeignKey(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, to_field=''})
|
${1:FIELDNAME} = models.ForeignKey(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${0:, to_field=''})
|
||||||
snippet m2m
|
snippet m2m
|
||||||
${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, symmetrical=False}${6:, through=''}${7:, db_table=''})
|
${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, symmetrical=False}${6:, through=''}${0:, db_table=''})
|
||||||
snippet o2o
|
snippet o2o
|
||||||
${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${6:, to_field=''})
|
${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${0:, to_field=''})
|
||||||
|
|
||||||
# Code Skeletons
|
# Code Skeletons
|
||||||
|
|
||||||
snippet form
|
snippet form
|
||||||
class ${1:FormName}(forms.Form):
|
class ${1:FormName}(forms.Form):
|
||||||
"""${2:docstring}"""
|
"""${2:docstring}"""
|
||||||
${3}
|
${0}
|
||||||
|
|
||||||
snippet model
|
snippet model
|
||||||
class ${1:ModelName}(models.Model):
|
class ${1:ModelName}(models.Model):
|
||||||
@ -85,24 +85,24 @@ snippet model
|
|||||||
|
|
||||||
@models.permalink
|
@models.permalink
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return ('${7:view_or_url_name}' ${8})
|
return ('${7:view_or_url_name}' ${0})
|
||||||
|
|
||||||
snippet modeladmin
|
snippet modeladmin
|
||||||
class ${1:ModelName}Admin(admin.ModelAdmin):
|
class ${1:ModelName}Admin(admin.ModelAdmin):
|
||||||
${2}
|
${0}
|
||||||
|
|
||||||
admin.site.register($1, $1Admin)
|
admin.site.register($1, $1Admin)
|
||||||
|
|
||||||
snippet tabularinline
|
snippet tabularinline
|
||||||
class ${1:ModelName}Inline(admin.TabularInline):
|
class ${0:ModelName}Inline(admin.TabularInline):
|
||||||
model = $1
|
model = $1
|
||||||
|
|
||||||
snippet stackedinline
|
snippet stackedinline
|
||||||
class ${1:ModelName}Inline(admin.StackedInline):
|
class ${0:ModelName}Inline(admin.StackedInline):
|
||||||
model = $1
|
model = $1
|
||||||
|
|
||||||
snippet r2r
|
snippet r2r
|
||||||
return render_to_response('${1:template.html}', {
|
return render_to_response('${1:template.html}', {
|
||||||
${2}
|
${2}
|
||||||
}${3:, context_instance=RequestContext(request)}
|
}${0:, context_instance=RequestContext(request)}
|
||||||
)
|
)
|
||||||
|
@ -1,127 +1,127 @@
|
|||||||
snippet do
|
snippet do
|
||||||
do
|
do
|
||||||
${1}
|
${0}
|
||||||
end
|
end
|
||||||
snippet if if .. do .. end
|
snippet if if .. do .. end
|
||||||
if ${1} do
|
if ${1} do
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet if if .. do: ..
|
snippet if if .. do: ..
|
||||||
if ${1:condition}, do: ${2}
|
if ${1:condition}, do: ${0}
|
||||||
|
|
||||||
snippet ife if .. do .. else .. end
|
snippet ife if .. do .. else .. end
|
||||||
if ${1:condition} do
|
if ${1:condition} do
|
||||||
${2}
|
${2}
|
||||||
else
|
else
|
||||||
${3}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet ife if .. do: .. else:
|
snippet ife if .. do: .. else:
|
||||||
if ${1:condition}, do: ${2}, else: ${3}
|
if ${1:condition}, do: ${2}, else: ${0}
|
||||||
|
|
||||||
snippet unless unless .. do .. end
|
snippet unless unless .. do .. end
|
||||||
unless ${1} do
|
unless ${1} do
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet unless unless .. do: ..
|
snippet unless unless .. do: ..
|
||||||
unless ${1:condition}, do: ${2}
|
unless ${1:condition}, do: ${0}
|
||||||
|
|
||||||
snippet unlesse unless .. do .. else .. end
|
snippet unlesse unless .. do .. else .. end
|
||||||
unless ${1:condition} do
|
unless ${1:condition} do
|
||||||
${2}
|
${2}
|
||||||
else
|
else
|
||||||
${3}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet unlesse unless .. do: .. else:
|
snippet unlesse unless .. do: .. else:
|
||||||
unless ${1:condition}, do: ${2}, else: ${3}
|
unless ${1:condition}, do: ${2}, else: ${0}
|
||||||
|
|
||||||
snippet cond
|
snippet cond
|
||||||
cond do
|
cond do
|
||||||
${1} ->
|
${1} ->
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet case
|
snippet case
|
||||||
case ${1} do
|
case ${1} do
|
||||||
${2} ->
|
${2} ->
|
||||||
${3}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet def
|
snippet def
|
||||||
def ${1:name} do
|
def ${1:name} do
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet defim
|
snippet defim
|
||||||
defimpl ${1:protocol_name}, for: ${2:data_type} do
|
defimpl ${1:protocol_name}, for: ${2:data_type} do
|
||||||
${3}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet defma
|
snippet defma
|
||||||
defmacro ${1:name} do
|
defmacro ${1:name} do
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet defmo
|
snippet defmo
|
||||||
defmodule ${1:module_name} do
|
defmodule ${1:module_name} do
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet defp
|
snippet defp
|
||||||
defp ${1:name} do
|
defp ${1:name} do
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet defpr
|
snippet defpr
|
||||||
defprotocol ${1:name}, [${2:function}]
|
defprotocol ${1:name}, [${0:function}]
|
||||||
|
|
||||||
snippet defr
|
snippet defr
|
||||||
defrecord ${1:record_name}, ${2:fields}
|
defrecord ${1:record_name}, ${0:fields}
|
||||||
|
|
||||||
snippet doc
|
snippet doc
|
||||||
@doc """
|
@doc """
|
||||||
${1}
|
${0}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
snippet fn
|
snippet fn
|
||||||
fn(${1:args}) -> ${2} end
|
fn(${1:args}) -> ${0} end
|
||||||
|
|
||||||
snippet fun
|
snippet fun
|
||||||
function do
|
function do
|
||||||
${1}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet mdoc
|
snippet mdoc
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
${1}
|
${0}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
snippet rec
|
snippet rec
|
||||||
receive do
|
receive do
|
||||||
${1} ->
|
${1} ->
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet req
|
snippet req
|
||||||
require ${1:module_name}
|
require ${0:module_name}
|
||||||
|
|
||||||
snippet imp
|
snippet imp
|
||||||
import ${1:module_name}
|
import ${0:module_name}
|
||||||
|
|
||||||
snippet ali
|
snippet ali
|
||||||
alias ${1:module_name}
|
alias ${0:module_name}
|
||||||
|
|
||||||
snippet test
|
snippet test
|
||||||
test "${1:test_name}" do
|
test "${1:test_name}" do
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
snippet try try .. rescue .. end
|
snippet try try .. rescue .. end
|
||||||
try do
|
try do
|
||||||
${1}
|
${1}
|
||||||
rescue
|
rescue
|
||||||
${2} -> ${3}
|
${2} -> ${0}
|
||||||
end
|
end
|
||||||
|
@ -5,62 +5,62 @@ snippet mod
|
|||||||
-compile([export_all]).
|
-compile([export_all]).
|
||||||
|
|
||||||
start() ->
|
start() ->
|
||||||
${2}
|
${0}
|
||||||
|
|
||||||
stop() ->
|
stop() ->
|
||||||
ok.
|
ok.
|
||||||
# define directive
|
# define directive
|
||||||
snippet def
|
snippet def
|
||||||
-define(${1:macro}, ${2:body}).${3}
|
-define(${1:macro}, ${2:body}).
|
||||||
# export directive
|
# export directive
|
||||||
snippet exp
|
snippet exp
|
||||||
-export([${1:function}/${2:arity}]).
|
-export([${1:function}/${0:arity}]).
|
||||||
# include directive
|
# include directive
|
||||||
snippet inc
|
snippet inc
|
||||||
-include("${1:file}").${2}
|
-include("${1:file}").
|
||||||
# behavior directive
|
# behavior directive
|
||||||
snippet beh
|
snippet beh
|
||||||
-behaviour(${1:behaviour}).${2}
|
-behaviour(${1:behaviour}).
|
||||||
# if expression
|
# if expression
|
||||||
snippet if
|
snippet if
|
||||||
if
|
if
|
||||||
${1:guard} ->
|
${1:guard} ->
|
||||||
${2:body}
|
${0:body}
|
||||||
end
|
end
|
||||||
# case expression
|
# case expression
|
||||||
snippet case
|
snippet case
|
||||||
case ${1:expression} of
|
case ${1:expression} of
|
||||||
${2:pattern} ->
|
${2:pattern} ->
|
||||||
${3:body};
|
${0:body};
|
||||||
end
|
end
|
||||||
# anonymous function
|
# anonymous function
|
||||||
snippet fun
|
snippet fun
|
||||||
fun (${1:Parameters}) -> ${2:body} end${3}
|
fun (${1:Parameters}) -> ${2:body} end
|
||||||
# try...catch
|
# try...catch
|
||||||
snippet try
|
snippet try
|
||||||
try
|
try
|
||||||
${1}
|
${1}
|
||||||
catch
|
catch
|
||||||
${2:_:_} -> ${3:got_some_exception}
|
${2:_:_} -> ${0:got_some_exception}
|
||||||
end
|
end
|
||||||
# record directive
|
# record directive
|
||||||
snippet rec
|
snippet rec
|
||||||
-record(${1:record}, {
|
-record(${1:record}, {
|
||||||
${2:field}=${3:value}}).${4}
|
${2:field}=${3:value}}).
|
||||||
# todo comment
|
# todo comment
|
||||||
snippet todo
|
snippet todo
|
||||||
%% TODO: ${1}
|
%% TODO: ${0}
|
||||||
## Snippets below (starting with '%') are in EDoc format.
|
## Snippets below (starting with '%') are in EDoc format.
|
||||||
## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details
|
## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details
|
||||||
# doc comment
|
# doc comment
|
||||||
snippet %d
|
snippet %d
|
||||||
%% @doc ${1}
|
%% @doc ${0}
|
||||||
# end of doc comment
|
# end of doc comment
|
||||||
snippet %e
|
snippet %e
|
||||||
%% @end
|
%% @end
|
||||||
# specification comment
|
# specification comment
|
||||||
snippet %s
|
snippet %s
|
||||||
%% @spec ${1}
|
%% @spec ${0}
|
||||||
# private function marker
|
# private function marker
|
||||||
snippet %p
|
snippet %p
|
||||||
%% @private
|
%% @private
|
||||||
@ -73,7 +73,7 @@ snippet application
|
|||||||
-export([start/2, stop/1]).
|
-export([start/2, stop/1]).
|
||||||
|
|
||||||
start(_Type, _StartArgs) ->
|
start(_Type, _StartArgs) ->
|
||||||
case ${2:root_supervisor}:start_link() of
|
case ${0:root_supervisor}:start_link() of
|
||||||
{ok, Pid} ->
|
{ok, Pid} ->
|
||||||
{ok, Pid};
|
{ok, Pid};
|
||||||
Other ->
|
Other ->
|
||||||
@ -100,14 +100,14 @@ snippet supervisor
|
|||||||
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
|
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
|
||||||
|
|
||||||
init([]) ->
|
init([]) ->
|
||||||
Server = {${2:my_server}, {$2, start_link, []},
|
Server = {${0:my_server}, {$2, start_link, []},
|
||||||
permanent, 2000, worker, [$2]},
|
permanent, 2000, worker, [$2]},
|
||||||
Children = [Server],
|
Children = [Server],
|
||||||
RestartStrategy = {one_for_one, 0, 1},
|
RestartStrategy = {one_for_one, 0, 1},
|
||||||
{ok, {RestartStrategy, Children}}.
|
{ok, {RestartStrategy, Children}}.
|
||||||
# OTP gen_server
|
# OTP gen_server
|
||||||
snippet gen_server
|
snippet gen_server
|
||||||
-module(${1:`vim_snippets#Filename('', 'my')`}).
|
-module(${0:`vim_snippets#Filename('', 'my')`}).
|
||||||
|
|
||||||
-behaviour(gen_server).
|
-behaviour(gen_server).
|
||||||
|
|
||||||
@ -159,7 +159,7 @@ snippet gen_server
|
|||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
# common_test test_SUITE
|
# common_test test_SUITE
|
||||||
snippet testsuite
|
snippet testsuite
|
||||||
-module(${1:`vim_snippets#Filename('', 'my')`}).
|
-module(${0:`vim_snippets#Filename('', 'my')`}).
|
||||||
|
|
||||||
-include_lib("common_test/include/ct.hrl").
|
-include_lib("common_test/include/ct.hrl").
|
||||||
|
|
||||||
|
@ -4,124 +4,124 @@
|
|||||||
|
|
||||||
# Rails *****************************
|
# Rails *****************************
|
||||||
snippet rc
|
snippet rc
|
||||||
<% ${1} %>
|
<% ${0} %>
|
||||||
snippet rce
|
snippet rce
|
||||||
<%= ${1} %>${2}
|
<%= ${1} %>
|
||||||
snippet %
|
snippet %
|
||||||
<% ${1} %>
|
<% ${0} %>
|
||||||
snippet =
|
snippet =
|
||||||
<%= ${1} %>${2}
|
<%= ${1} %>
|
||||||
snippet end
|
snippet end
|
||||||
<% end %>${1}
|
<% end %>
|
||||||
snippet ead
|
snippet ead
|
||||||
<% ${1}.each do |${2}| %>
|
<% ${1}.each do |${2}| %>
|
||||||
${3}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
snippet for
|
snippet for
|
||||||
<% for ${2:item} in ${1} %>
|
<% for ${2:item} in ${1} %>
|
||||||
${3}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
snippet rp
|
snippet rp
|
||||||
<%= render :partial => '${1:item}' %>
|
<%= render :partial => '${0:item}' %>
|
||||||
snippet rpl
|
snippet rpl
|
||||||
<%= render :partial => '${1:item}', :locals => { :${2:name} => '${3:value}'$4 } %>
|
<%= render :partial => '${1:item}', :locals => { :${2:name} => '${3:value}'${0} } %>
|
||||||
snippet rps
|
snippet rps
|
||||||
<%= render :partial => '${1:item}', :status => ${2:500} %>
|
<%= render :partial => '${1:item}', :status => ${0:500} %>
|
||||||
snippet rpc
|
snippet rpc
|
||||||
<%= render :partial => '${1:item}', :collection => ${2:items} %>
|
<%= render :partial => '${1:item}', :collection => ${0:items} %>
|
||||||
snippet lia
|
snippet lia
|
||||||
<%= link_to '${1:link text...}', :action => '${2:index}' %>
|
<%= link_to '${1:link text...}', :action => '${0:index}' %>
|
||||||
snippet liai
|
snippet liai
|
||||||
<%= link_to '${1:link text...}', :action => '${2:edit}', :id => ${3:@item} %>
|
<%= link_to '${1:link text...}', :action => '${2:edit}', :id => ${0:@item} %>
|
||||||
snippet lic
|
snippet lic
|
||||||
<%= link_to '${1:link text...}', :controller => '${2:items}' %>
|
<%= link_to '${1:link text...}', :controller => '${0:items}' %>
|
||||||
snippet lica
|
snippet lica
|
||||||
<%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${3:index}' %>
|
<%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${0:index}' %>
|
||||||
snippet licai
|
snippet licai
|
||||||
<%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${3:edit}', :id => ${4:@item} %>
|
<%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${3:edit}', :id => ${0:@item} %>
|
||||||
snippet yield
|
snippet yield
|
||||||
<%= yield ${1::content_symbol} %>${2}
|
<%= yield ${1::content_symbol} %>
|
||||||
snippet conf
|
snippet conf
|
||||||
<% content_for :${1:head} do %>
|
<% content_for :${1:head} do %>
|
||||||
${2}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
snippet cs
|
snippet cs
|
||||||
<%= collection_select <+object+>, <+method+>, <+collection+>, <+value_method+>, <+text_method+><+, <+[options]+>, <+[html_options]+>+> %>
|
<%= collection_select <+object+>, <+method+>, <+collection+>, <+value_method+>, <+text_method+><+, <+[options]+>, <+[html_options]+>+> %>
|
||||||
snippet ct
|
snippet ct
|
||||||
<%= content_tag '${1:DIV}', ${2:content}${3:,options} %>
|
<%= content_tag '${1:DIV}', ${2:content}${0:,options} %>
|
||||||
snippet ff
|
snippet ff
|
||||||
<%= form_for @${1:model} do |f| %>
|
<%= form_for @${1:model} do |f| %>
|
||||||
${2}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
snippet ffi
|
snippet ffi
|
||||||
<%= ${1:f}.input :${2:attribute} %>
|
<%= ${1:f}.input :${0:attribute} %>
|
||||||
snippet ffcb
|
snippet ffcb
|
||||||
<%= ${1:f}.check_box :${2:attribute} %>
|
<%= ${1:f}.check_box :${0:attribute} %>
|
||||||
snippet ffe
|
snippet ffe
|
||||||
<% error_messages_for :${1:model} %>
|
<% error_messages_for :${1:model} %>
|
||||||
|
|
||||||
<%= form_for @${2:model} do |f| %>
|
<%= form_for @${2:model} do |f| %>
|
||||||
${3}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
snippet ffff
|
snippet ffff
|
||||||
<%= ${1:f}.file_field :${2:attribute} %>
|
<%= ${1:f}.file_field :${0:attribute} %>
|
||||||
snippet ffhf
|
snippet ffhf
|
||||||
<%= ${1:f}.hidden_field :${2:attribute} %>
|
<%= ${1:f}.hidden_field :${0:attribute} %>
|
||||||
snippet ffl
|
snippet ffl
|
||||||
<%= ${1:f}.label :${2:attribute}, '${3:$2}' %>
|
<%= ${1:f}.label :${2:attribute}, '${0:$2}' %>
|
||||||
snippet ffpf
|
snippet ffpf
|
||||||
<%= ${1:f}.password_field :${2:attribute} %>
|
<%= ${1:f}.password_field :${0:attribute} %>
|
||||||
snippet ffrb
|
snippet ffrb
|
||||||
<%= ${1:f}.radio_button :${2:attribute}, :${3:tag_value} %>
|
<%= ${1:f}.radio_button :${2:attribute}, :${0:tag_value} %>
|
||||||
snippet ffs
|
snippet ffs
|
||||||
<%= ${1:f}.submit "${2:submit}" %>
|
<%= ${1:f}.submit "${0:submit}" %>
|
||||||
snippet ffta
|
snippet ffta
|
||||||
<%= ${1:f}.text_area :${2:attribute} %>
|
<%= ${1:f}.text_area :${0:attribute} %>
|
||||||
snippet fftf
|
snippet fftf
|
||||||
<%= ${1:f}.text_field :${2:attribute} %>
|
<%= ${1:f}.text_field :${0:attribute} %>
|
||||||
snippet fields
|
snippet fields
|
||||||
<%= fields_for :${1:model}, @$1 do |${2:f}| %>
|
<%= fields_for :${1:model}, @$1 do |${2:f}| %>
|
||||||
${3}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
snippet i18
|
snippet i18
|
||||||
I18n.t('${1:type.key}')${2}
|
I18n.t('${1:type.key}')
|
||||||
snippet it
|
snippet it
|
||||||
<%= image_tag "${1}"${2} %>
|
<%= image_tag "${1}"${0} %>
|
||||||
snippet jit
|
snippet jit
|
||||||
<%= javascript_include_tag ${1::all} %>
|
<%= javascript_include_tag ${0::all} %>
|
||||||
snippet jsit
|
snippet jsit
|
||||||
<%= javascript_include_tag "${1}" %>
|
<%= javascript_include_tag "${0}" %>
|
||||||
snippet lim
|
snippet lim
|
||||||
<%= link_to ${1:model}.${2:name}, ${3:$1}_path(${4:$1}) %>
|
<%= link_to ${1:model}.${2:name}, ${3:$1}_path(${0:$1}) %>
|
||||||
snippet linp
|
snippet linp
|
||||||
<%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${4:@$2}, ${5:@$3}) %>
|
<%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${4:@$2}, ${0:@$3}) %>
|
||||||
snippet linpp
|
snippet linpp
|
||||||
<%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${4:@$2}) %>
|
<%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${0:@$2}) %>
|
||||||
snippet lip
|
snippet lip
|
||||||
<%= link_to "${1:Link text...}", ${2:model}_path(${3:@$2}) %>
|
<%= link_to "${1:Link text...}", ${2:model}_path(${0:@$2}) %>
|
||||||
snippet lipp
|
snippet lipp
|
||||||
<%= link_to "${1:Link text...}", ${2:model}s_path %>
|
<%= link_to "${1:Link text...}", ${0:model}s_path %>
|
||||||
snippet lt
|
snippet lt
|
||||||
<%= link_to "${1:name}", ${2:dest} %>
|
<%= link_to "${1:name}", ${0:dest} %>
|
||||||
snippet ntc
|
snippet ntc
|
||||||
<%= number_to_currency(${1}) %>
|
<%= number_to_currency(${1}) %>
|
||||||
snippet ofcfs
|
snippet ofcfs
|
||||||
<%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${4:selected_value} %>
|
<%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${0:selected_value} %>
|
||||||
snippet rf
|
snippet rf
|
||||||
<%= render :file => "${1:file}"${2} %>
|
<%= render :file => "${1:file}"${0} %>
|
||||||
snippet rt
|
snippet rt
|
||||||
<%= render :template => "${1:file}"${2} %>
|
<%= render :template => "${1:file}"${0} %>
|
||||||
snippet slt
|
snippet slt
|
||||||
<%= stylesheet_link_tag ${1::all}, :cache => ${2:true} %>
|
<%= stylesheet_link_tag ${1::all}, :cache => ${0:true} %>
|
||||||
snippet sslt
|
snippet sslt
|
||||||
<%= stylesheet_link_tag "${1}" %>
|
<%= stylesheet_link_tag "${0}" %>
|
||||||
snippet if
|
snippet if
|
||||||
<% if ${1} %>
|
<% if ${1} %>
|
||||||
${2}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
snippet ife
|
snippet ife
|
||||||
<% if ${1} %>
|
<% if ${1} %>
|
||||||
${2}
|
${2}
|
||||||
<% else %>
|
<% else %>
|
||||||
${3}
|
${0}
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -3,30 +3,30 @@ snippet #!
|
|||||||
|
|
||||||
# Import
|
# Import
|
||||||
snippet imp
|
snippet imp
|
||||||
import ${1:module}
|
import ${0:module}
|
||||||
|
|
||||||
# Function
|
# Function
|
||||||
snippet fun
|
snippet fun
|
||||||
function ${2:function_name}(${3})
|
function ${2:function_name}(${3})
|
||||||
${4}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
# Class
|
# Class
|
||||||
snippet class
|
snippet class
|
||||||
class ${1:class_name}(${2:class_params})
|
class ${1:class_name}(${2:class_params})
|
||||||
${3:/* members/methods */}
|
${0:/* members/methods */}
|
||||||
end
|
end
|
||||||
|
|
||||||
# If
|
# If
|
||||||
snippet if
|
snippet if
|
||||||
if ${1:condition}
|
if ${1:condition}
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
# If else
|
# If else
|
||||||
snippet ife
|
snippet ife
|
||||||
if ${1:condition}
|
if ${1:condition}
|
||||||
${2}
|
${0}
|
||||||
else
|
else
|
||||||
${1}
|
${1}
|
||||||
end
|
end
|
||||||
@ -34,13 +34,13 @@ snippet ife
|
|||||||
# If else if
|
# If else if
|
||||||
snippet eif
|
snippet eif
|
||||||
elif ${1:condition}
|
elif ${1:condition}
|
||||||
${2}
|
${0}
|
||||||
|
|
||||||
# Switch case
|
# Switch case
|
||||||
snippet switch
|
snippet switch
|
||||||
switch ${1:expression}
|
switch ${1:expression}
|
||||||
case ${2:item}
|
case ${2:item}
|
||||||
case ${3:item}
|
case ${0:item}
|
||||||
default
|
default
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -48,24 +48,24 @@ snippet switch
|
|||||||
snippet select
|
snippet select
|
||||||
select ${1:variable}
|
select ${1:variable}
|
||||||
case ${2:TypeSpec}
|
case ${2:TypeSpec}
|
||||||
case ${3:TypeSpec}
|
case ${0:TypeSpec}
|
||||||
default
|
default
|
||||||
end
|
end
|
||||||
|
|
||||||
# For/in Loop
|
# For/in Loop
|
||||||
snippet forin
|
snippet forin
|
||||||
for ${1:element} in ${2:container}
|
for ${1:element} in ${2:container}
|
||||||
${3}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
# For/to Loop
|
# For/to Loop
|
||||||
snippet forto
|
snippet forto
|
||||||
for ${1:lowerbound} to ${2:upperbound}
|
for ${1:lowerbound} to ${2:upperbound}
|
||||||
${3}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
# While Loop
|
# While Loop
|
||||||
snippet wh
|
snippet wh
|
||||||
while ${1:conidition}
|
while ${1:conidition}
|
||||||
${2}
|
${0}
|
||||||
end
|
end
|
||||||
|
@ -5,7 +5,7 @@ snippet vr
|
|||||||
var ${1} ${2} = ${3}
|
var ${1} ${2} = ${3}
|
||||||
# append
|
# append
|
||||||
snippet ap
|
snippet ap
|
||||||
append(${1:slice}, ${2:value})
|
append(${1:slice}, ${0:value})
|
||||||
# bool
|
# bool
|
||||||
snippet bl
|
snippet bl
|
||||||
bool
|
bool
|
||||||
@ -17,31 +17,31 @@ snippet br
|
|||||||
break
|
break
|
||||||
# channel
|
# channel
|
||||||
snippet ch
|
snippet ch
|
||||||
chan ${1:int}
|
chan ${0:int}
|
||||||
# case
|
# case
|
||||||
snippet cs
|
snippet cs
|
||||||
case ${1:value}:
|
case ${1:value}:
|
||||||
${2}
|
${0}
|
||||||
# const
|
# const
|
||||||
snippet c
|
snippet c
|
||||||
const ${1:NAME} = ${2:0}
|
const ${1:NAME} = ${0:0}
|
||||||
# constants with iota
|
# constants with iota
|
||||||
snippet co
|
snippet co
|
||||||
const (
|
const (
|
||||||
${1:NAME1} = iota
|
${1:NAME1} = iota
|
||||||
${2:NAME2}
|
${0:NAME2}
|
||||||
)
|
)
|
||||||
# continue
|
# continue
|
||||||
snippet cn
|
snippet cn
|
||||||
continue
|
continue
|
||||||
# defer
|
# defer
|
||||||
snippet df
|
snippet df
|
||||||
defer ${1:func}()
|
defer ${0:func}()
|
||||||
# defer recover
|
# defer recover
|
||||||
snippet dfr
|
snippet dfr
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := recover(); err != nil {
|
if err := recover(); err != nil {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
# gpl
|
# gpl
|
||||||
@ -63,7 +63,7 @@ snippet gpl
|
|||||||
* Copyright (C) ${1:Author}, `strftime("%Y")`
|
* Copyright (C) ${1:Author}, `strftime("%Y")`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
${2}
|
${0}
|
||||||
# int
|
# int
|
||||||
snippet i
|
snippet i
|
||||||
int
|
int
|
||||||
@ -71,7 +71,7 @@ snippet i
|
|||||||
snippet im
|
snippet im
|
||||||
import (
|
import (
|
||||||
"${1:package}"
|
"${1:package}"
|
||||||
)${2}
|
)
|
||||||
# interface
|
# interface
|
||||||
snippet in
|
snippet in
|
||||||
interface{}
|
interface{}
|
||||||
@ -79,23 +79,23 @@ snippet in
|
|||||||
snippet inf
|
snippet inf
|
||||||
interface ${1:name} {
|
interface ${1:name} {
|
||||||
${2:/* methods */}
|
${2:/* methods */}
|
||||||
}${3}
|
}
|
||||||
# if condition
|
# if condition
|
||||||
snippet if
|
snippet if
|
||||||
if ${1:/* condition */} {
|
if ${1:/* condition */} {
|
||||||
${2}
|
${2}
|
||||||
}${3}
|
}
|
||||||
# else snippet
|
# else snippet
|
||||||
snippet el
|
snippet el
|
||||||
else {
|
else {
|
||||||
${1}
|
${1}
|
||||||
}${2}
|
}
|
||||||
# error snippet
|
# error snippet
|
||||||
snippet ir
|
snippet ir
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
${1}
|
${0}
|
||||||
# false
|
# false
|
||||||
snippet f
|
snippet f
|
||||||
false
|
false
|
||||||
@ -118,64 +118,64 @@ snippet ie
|
|||||||
} else {
|
} else {
|
||||||
${3}
|
${3}
|
||||||
}
|
}
|
||||||
${4}
|
${0}
|
||||||
# for loop
|
# for loop
|
||||||
snippet fo
|
snippet fo
|
||||||
for ${2:i} := 0; $2 < ${1:count}; $2${3:++} {
|
for ${2:i} := 0; $2 < ${1:count}; $2${3:++} {
|
||||||
${4}
|
${4}
|
||||||
}
|
}
|
||||||
${5}
|
${0}
|
||||||
# for range loop
|
# for range loop
|
||||||
snippet fr
|
snippet fr
|
||||||
for ${1:k}, ${2:v} := range ${3} {
|
for ${1:k}, ${2:v} := range ${3} {
|
||||||
${4}
|
${4}
|
||||||
}
|
}
|
||||||
${5}
|
${0}
|
||||||
# function simple
|
# function simple
|
||||||
snippet fun
|
snippet fun
|
||||||
func ${1:funcName}(${2}) ${3:error} {
|
func ${1:funcName}(${2}) ${3:error} {
|
||||||
${4}
|
${4}
|
||||||
}
|
}
|
||||||
${5}
|
${0}
|
||||||
# function on receiver
|
# function on receiver
|
||||||
snippet fum
|
snippet fum
|
||||||
func (self ${1:type}) ${2:funcName}(${3}) ${4:error} {
|
func (self ${1:type}) ${2:funcName}(${3}) ${4:error} {
|
||||||
${5}
|
${5}
|
||||||
}
|
}
|
||||||
${6}
|
${0}
|
||||||
# log printf
|
# log printf
|
||||||
snippet lf
|
snippet lf
|
||||||
log.Printf("%${1:s}", ${2:var})${3}
|
log.Printf("%${1:s}", ${2:var})
|
||||||
# log printf
|
# log printf
|
||||||
snippet lp
|
snippet lp
|
||||||
log.Println("${1}")${2}
|
log.Println("${1}")
|
||||||
# make
|
# make
|
||||||
snippet mk
|
snippet mk
|
||||||
make(${1:[]string}, ${2:0})
|
make(${1:[]string}, ${0:0})
|
||||||
# map
|
# map
|
||||||
snippet mp
|
snippet mp
|
||||||
map[${1:string}]${2:int}
|
map[${1:string}]${0:int}
|
||||||
# main()
|
# main()
|
||||||
snippet main
|
snippet main
|
||||||
func main() {
|
func main() {
|
||||||
${1}
|
${1}
|
||||||
}
|
}
|
||||||
${2}
|
${0}
|
||||||
# new
|
# new
|
||||||
snippet nw
|
snippet nw
|
||||||
new(${1:type})
|
new(${0:type})
|
||||||
# panic
|
# panic
|
||||||
snippet pn
|
snippet pn
|
||||||
panic("${1:msg}")
|
panic("${0:msg}")
|
||||||
# print
|
# print
|
||||||
snippet pr
|
snippet pr
|
||||||
fmt.Printf("%${1:s}\n", ${2:var})${3}
|
fmt.Printf("%${1:s}\n", ${2:var})
|
||||||
# range
|
# range
|
||||||
snippet rn
|
snippet rn
|
||||||
range ${1}
|
range ${0}
|
||||||
# return
|
# return
|
||||||
snippet rt
|
snippet rt
|
||||||
return ${1}
|
return ${0}
|
||||||
# result
|
# result
|
||||||
snippet rs
|
snippet rs
|
||||||
result
|
result
|
||||||
@ -187,7 +187,7 @@ snippet sl
|
|||||||
case ${4:v2} := <-${5:chan2}
|
case ${4:v2} := <-${5:chan2}
|
||||||
${6}
|
${6}
|
||||||
default:
|
default:
|
||||||
${7}
|
${0}
|
||||||
}
|
}
|
||||||
# string
|
# string
|
||||||
snippet sr
|
snippet sr
|
||||||
@ -197,7 +197,7 @@ snippet st
|
|||||||
struct ${1:name} {
|
struct ${1:name} {
|
||||||
${2:/* data */}
|
${2:/* data */}
|
||||||
}
|
}
|
||||||
${3}
|
${0}
|
||||||
# switch
|
# switch
|
||||||
snippet sw
|
snippet sw
|
||||||
switch ${1:var} {
|
switch ${1:var} {
|
||||||
@ -206,21 +206,21 @@ snippet sw
|
|||||||
case ${4:value2}:
|
case ${4:value2}:
|
||||||
${5}
|
${5}
|
||||||
default:
|
default:
|
||||||
${6}
|
${0}
|
||||||
}
|
}
|
||||||
snippet sp
|
snippet sp
|
||||||
fmt.Sprintf("%${1:s}", ${2:var})${3}
|
fmt.Sprintf("%${1:s}", ${2:var})
|
||||||
# true
|
# true
|
||||||
snippet t
|
snippet t
|
||||||
true
|
true
|
||||||
# variable declaration
|
# variable declaration
|
||||||
snippet v
|
snippet v
|
||||||
var ${1:t} ${2:string}
|
var ${1:t} ${0:string}
|
||||||
# goroutine named function
|
# goroutine named function
|
||||||
snippet g
|
snippet g
|
||||||
go ${1:funcName}(${2})
|
go ${1:funcName}(${0})
|
||||||
# goroutine anonymous function
|
# goroutine anonymous function
|
||||||
snippet ga
|
snippet ga
|
||||||
go func(${1} ${2:type}) {
|
go func(${1} ${2:type}) {
|
||||||
${3:/* code */}
|
${3:/* code */}
|
||||||
}(${4})
|
}(${0})
|
||||||
|
@ -5,20 +5,20 @@ snippet t
|
|||||||
${1:headers}
|
${1:headers}
|
||||||
%tr
|
%tr
|
||||||
%td
|
%td
|
||||||
${2:headers}
|
${0:headers}
|
||||||
snippet ul
|
snippet ul
|
||||||
%ul
|
%ul
|
||||||
%li
|
%li
|
||||||
${1:item}
|
${0:item}
|
||||||
%li
|
%li
|
||||||
snippet rp
|
snippet rp
|
||||||
= render :partial => "${1:item}"
|
= render :partial => "${0:item}"
|
||||||
snippet rpc
|
snippet rpc
|
||||||
= render :partial => "${1:item}", :collection => ${2:@$1s}
|
= render :partial => "${1:item}", :collection => ${0:@$1s}
|
||||||
snippet rpl
|
snippet rpl
|
||||||
= render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1}
|
= render :partial => "${1:item}", :locals => { :${2:$1} => ${0:@$1}
|
||||||
snippet rpo
|
snippet rpo
|
||||||
= render :partial => "${1:item}", :object => ${2:@$1}
|
= render :partial => "${1:item}", :object => ${0:@$1}
|
||||||
snippet lt
|
snippet lt
|
||||||
= link_to ${1:name}, ${2:dest}
|
= link_to ${1:name}, ${2:dest}
|
||||||
snippet mt
|
snippet mt
|
||||||
@ -29,9 +29,9 @@ snippet ife
|
|||||||
- if ${1:condition}
|
- if ${1:condition}
|
||||||
${2}
|
${2}
|
||||||
- else
|
- else
|
||||||
${3}
|
${0}
|
||||||
snippet ifp
|
snippet ifp
|
||||||
- if ${1:condition}.presence?
|
- if ${1:condition}.presence?
|
||||||
${2}
|
${0}
|
||||||
snippet ntc
|
snippet ntc
|
||||||
= number_to_currency(${1})
|
= number_to_currency(${1})
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
snippet lang
|
snippet lang
|
||||||
{-# LANGUAGE ${1:OverloadedStrings} #-}
|
{-# LANGUAGE ${0:OverloadedStrings} #-}
|
||||||
snippet info
|
snippet info
|
||||||
-- |
|
-- |
|
||||||
-- Module : ${1:Module.Namespace}
|
-- Module : ${1:Module.Namespace}
|
||||||
@ -10,26 +10,26 @@ snippet info
|
|||||||
-- Stability : ${6:experimental}
|
-- Stability : ${6:experimental}
|
||||||
-- Portability : ${7:unknown}
|
-- Portability : ${7:unknown}
|
||||||
--
|
--
|
||||||
-- ${8:Description}
|
-- ${0:Description}
|
||||||
--
|
--
|
||||||
snippet import
|
snippet import
|
||||||
import ${1:Data.Text}
|
import ${0:Data.Text}
|
||||||
snippet import2
|
snippet import2
|
||||||
import ${1:Data.Text} (${2:head})
|
import ${1:Data.Text} (${0:head})
|
||||||
snippet importq
|
snippet importq
|
||||||
import qualified ${1:Data.Text} as ${2:T}
|
import qualified ${1:Data.Text} as ${0:T}
|
||||||
snippet inst
|
snippet inst
|
||||||
instance ${1:Monoid} ${2:Type} where
|
instance ${1:Monoid} ${2:Type} where
|
||||||
${3}
|
${0}
|
||||||
snippet type
|
snippet type
|
||||||
type ${1:Type} = ${2:Type}
|
type ${1:Type} = ${0:Type}
|
||||||
snippet data
|
snippet data
|
||||||
data ${1:Type} = ${2:$1} ${3:Int}
|
data ${1:Type} = ${2:$1} ${0:Int}
|
||||||
snippet newtype
|
snippet newtype
|
||||||
newtype ${1:Type} = ${2:$1} ${3:Int}
|
newtype ${1:Type} = ${2:$1} ${0:Int}
|
||||||
snippet class
|
snippet class
|
||||||
class ${1:Class} a where
|
class ${1:Class} a where
|
||||||
${2}
|
${0}
|
||||||
snippet module
|
snippet module
|
||||||
module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` (
|
module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` (
|
||||||
) where
|
) where
|
||||||
@ -37,46 +37,46 @@ snippet module
|
|||||||
|
|
||||||
snippet const
|
snippet const
|
||||||
${1:name} :: ${2:a}
|
${1:name} :: ${2:a}
|
||||||
$1 = ${3:undefined}
|
$1 = ${0:undefined}
|
||||||
snippet fn
|
snippet fn
|
||||||
${1:fn} :: ${2:a} -> ${3:a}
|
${1:fn} :: ${2:a} -> ${3:a}
|
||||||
$1 ${4} = ${5:undefined}
|
$1 ${4} = ${0:undefined}
|
||||||
snippet fn2
|
snippet fn2
|
||||||
${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}
|
${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}
|
||||||
$1 ${5} = ${6:undefined}
|
$1 ${5} = ${0:undefined}
|
||||||
snippet ap
|
snippet ap
|
||||||
${1:map} ${2:fn} ${3:list}
|
${1:map} ${2:fn} ${0:list}
|
||||||
snippet do
|
snippet do
|
||||||
do
|
do
|
||||||
|
|
||||||
snippet λ
|
snippet λ
|
||||||
\${1:x} -> ${2}
|
\${1:x} -> ${0}
|
||||||
snippet \
|
snippet \
|
||||||
\${1:x} -> ${2}
|
\${1:x} -> ${0}
|
||||||
snippet <-
|
snippet <-
|
||||||
${1:a} <- ${2:m a}
|
${1:a} <- ${0:m a}
|
||||||
snippet ←
|
snippet ←
|
||||||
${1:a} <- ${2:m a}
|
${1:a} <- ${0:m a}
|
||||||
snippet ->
|
snippet ->
|
||||||
${1:m a} -> ${2:a}
|
${1:m a} -> ${0:a}
|
||||||
snippet →
|
snippet →
|
||||||
${1:m a} -> ${2:a}
|
${1:m a} -> ${0:a}
|
||||||
snippet tup
|
snippet tup
|
||||||
(${1:a}, ${2:b})
|
(${1:a}, ${0:b})
|
||||||
snippet tup2
|
snippet tup2
|
||||||
(${1:a}, ${2:b}, ${3:c})
|
(${1:a}, ${2:b}, ${0:c})
|
||||||
snippet tup3
|
snippet tup3
|
||||||
(${1:a}, ${2:b}, ${3:c}, ${4:d})
|
(${1:a}, ${2:b}, ${3:c}, ${0:d})
|
||||||
snippet rec
|
snippet rec
|
||||||
${1:Record} { ${2:recFieldA} = ${3:undefined}
|
${1:Record} { ${2:recFieldA} = ${3:undefined}
|
||||||
, ${4:recFieldB} = ${5:undefined}
|
, ${4:recFieldB} = ${0:undefined}
|
||||||
}
|
}
|
||||||
snippet case
|
snippet case
|
||||||
case ${1:something} of
|
case ${1:something} of
|
||||||
${2} -> ${3}
|
${2} -> ${0}
|
||||||
snippet let
|
snippet let
|
||||||
let ${1} = ${2}
|
let ${1} = ${2}
|
||||||
in ${3}
|
in ${3}
|
||||||
snippet where
|
snippet where
|
||||||
where
|
where
|
||||||
${1:fn} = ${2:undefined}
|
${1:fn} = ${0:undefined}
|
||||||
|
@ -97,353 +97,353 @@ snippet docx
|
|||||||
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||||
# Attributes
|
# Attributes
|
||||||
snippet attr
|
snippet attr
|
||||||
${1:attribute}="${2:property}"
|
${1:attribute}="${0:property}"
|
||||||
snippet attr+
|
snippet attr+
|
||||||
${1:attribute}="${2:property}" attr+${3}
|
${1:attribute}="${2:property}" attr+
|
||||||
snippet .
|
snippet .
|
||||||
class="${1}"${2}
|
class="${1}"
|
||||||
snippet #
|
snippet #
|
||||||
id="${1}"${2}
|
id="${1}"
|
||||||
snippet alt
|
snippet alt
|
||||||
alt="${1}"${2}
|
alt="${1}"
|
||||||
snippet charset
|
snippet charset
|
||||||
charset="${1:utf-8}"${2}
|
charset="${1:utf-8}"
|
||||||
snippet data
|
snippet data
|
||||||
data-${1}="${2:$1}"${3}
|
data-${1}="${2:$1}"
|
||||||
snippet for
|
snippet for
|
||||||
for="${1}"${2}
|
for="${1}"
|
||||||
snippet height
|
snippet height
|
||||||
height="${1}"${2}
|
height="${1}"
|
||||||
snippet href
|
snippet href
|
||||||
href="${1:#}"${2}
|
href="${1:#}"
|
||||||
snippet lang
|
snippet lang
|
||||||
lang="${1:en}"${2}
|
lang="${1:en}"
|
||||||
snippet media
|
snippet media
|
||||||
media="${1}"${2}
|
media="${1}"
|
||||||
snippet name
|
snippet name
|
||||||
name="${1}"${2}
|
name="${1}"
|
||||||
snippet rel
|
snippet rel
|
||||||
rel="${1}"${2}
|
rel="${1}"
|
||||||
snippet scope
|
snippet scope
|
||||||
scope="${1:row}"${2}
|
scope="${1:row}"
|
||||||
snippet src
|
snippet src
|
||||||
src="${1}"${2}
|
src="${1}"
|
||||||
snippet title=
|
snippet title=
|
||||||
title="${1}"${2}
|
title="${1}"
|
||||||
snippet type
|
snippet type
|
||||||
type="${1}"${2}
|
type="${1}"
|
||||||
snippet value
|
snippet value
|
||||||
value="${1}"${2}
|
value="${1}"
|
||||||
snippet width
|
snippet width
|
||||||
width="${1}"${2}
|
width="${1}"
|
||||||
# Elements
|
# Elements
|
||||||
snippet a
|
snippet a
|
||||||
<a href="${1:#}">${2:$1}</a>
|
<a href="${1:#}">${0:$1}</a>
|
||||||
snippet a.
|
snippet a.
|
||||||
<a class="${1}" href="${2:#}">${3:$1}</a>
|
<a class="${1}" href="${2:#}">${0:$1}</a>
|
||||||
snippet a#
|
snippet a#
|
||||||
<a id="${1}" href="${2:#}">${3:$1}</a>
|
<a id="${1}" href="${2:#}">${0:$1}</a>
|
||||||
snippet a:ext
|
snippet a:ext
|
||||||
<a href="http://${1:example.com}">${2:$1}</a>
|
<a href="http://${1:example.com}">${0:$1}</a>
|
||||||
snippet a:mail
|
snippet a:mail
|
||||||
<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a>
|
<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${0:email me}</a>
|
||||||
snippet abbr
|
snippet abbr
|
||||||
<abbr title="${1}">${2}</abbr>
|
<abbr title="${1}">${0}</abbr>
|
||||||
snippet address
|
snippet address
|
||||||
<address>
|
<address>
|
||||||
${1}
|
${0}
|
||||||
</address>
|
</address>
|
||||||
snippet area
|
snippet area
|
||||||
<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />
|
<area shape="${1:rect}" coords="${2}" href="${3}" alt="${0}" />
|
||||||
snippet area+
|
snippet area+
|
||||||
<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />
|
<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />
|
||||||
area+${5}
|
area+
|
||||||
snippet area:c
|
snippet area:c
|
||||||
<area shape="circle" coords="${1}" href="${2}" alt="${3}" />
|
<area shape="circle" coords="${1}" href="${2}" alt="${0}" />
|
||||||
snippet area:d
|
snippet area:d
|
||||||
<area shape="default" coords="${1}" href="${2}" alt="${3}" />
|
<area shape="default" coords="${1}" href="${2}" alt="${0}" />
|
||||||
snippet area:p
|
snippet area:p
|
||||||
<area shape="poly" coords="${1}" href="${2}" alt="${3}" />
|
<area shape="poly" coords="${1}" href="${2}" alt="${0}" />
|
||||||
snippet area:r
|
snippet area:r
|
||||||
<area shape="rect" coords="${1}" href="${2}" alt="${3}" />
|
<area shape="rect" coords="${1}" href="${2}" alt="${0}" />
|
||||||
snippet article
|
snippet article
|
||||||
<article>
|
<article>
|
||||||
${1}
|
${0}
|
||||||
</article>
|
</article>
|
||||||
snippet article.
|
snippet article.
|
||||||
<article class="${1}">
|
<article class="${1}">
|
||||||
${2}
|
${0}
|
||||||
</article>
|
</article>
|
||||||
snippet article#
|
snippet article#
|
||||||
<article id="${1}">
|
<article id="${1}">
|
||||||
${2}
|
${0}
|
||||||
</article>
|
</article>
|
||||||
snippet aside
|
snippet aside
|
||||||
<aside>
|
<aside>
|
||||||
${1}
|
${0}
|
||||||
</aside>
|
</aside>
|
||||||
snippet aside.
|
snippet aside.
|
||||||
<aside class="${1}">
|
<aside class="${1}">
|
||||||
${2}
|
${0}
|
||||||
</aside>
|
</aside>
|
||||||
snippet aside#
|
snippet aside#
|
||||||
<aside id="${1}">
|
<aside id="${1}">
|
||||||
${2}
|
${0}
|
||||||
</aside>
|
</aside>
|
||||||
snippet audio
|
snippet audio
|
||||||
<audio src="${1}>${2}</audio>
|
<audio src="${1}>${0}</audio>
|
||||||
snippet b
|
snippet b
|
||||||
<b>${1}</b>
|
<b>${0}</b>
|
||||||
snippet base
|
snippet base
|
||||||
<base href="${1}" target="${2}" />
|
<base href="${1}" target="${0}" />
|
||||||
snippet bdi
|
snippet bdi
|
||||||
<bdi>${1}</bdo>
|
<bdi>${0}</bdo>
|
||||||
snippet bdo
|
snippet bdo
|
||||||
<bdo dir="${1}">${2}</bdo>
|
<bdo dir="${1}">${0}</bdo>
|
||||||
snippet bdo:l
|
snippet bdo:l
|
||||||
<bdo dir="ltr">${1}</bdo>
|
<bdo dir="ltr">${0}</bdo>
|
||||||
snippet bdo:r
|
snippet bdo:r
|
||||||
<bdo dir="rtl">${1}</bdo>
|
<bdo dir="rtl">${0}</bdo>
|
||||||
snippet blockquote
|
snippet blockquote
|
||||||
<blockquote>
|
<blockquote>
|
||||||
${1}
|
${0}
|
||||||
</blockquote>
|
</blockquote>
|
||||||
snippet body
|
snippet body
|
||||||
<body>
|
<body>
|
||||||
${1}
|
${0}
|
||||||
</body>
|
</body>
|
||||||
snippet br
|
snippet br
|
||||||
<br />${1}
|
<br />
|
||||||
snippet button
|
snippet button
|
||||||
<button type="${1:submit}">${2}</button>
|
<button type="${1:submit}">${0}</button>
|
||||||
snippet button.
|
snippet button.
|
||||||
<button class="${1:button}" type="${2:submit}">${3}</button>
|
<button class="${1:button}" type="${2:submit}">${0}</button>
|
||||||
snippet button#
|
snippet button#
|
||||||
<button id="${1}" type="${2:submit}">${3}</button>
|
<button id="${1}" type="${2:submit}">${0}</button>
|
||||||
snippet button:s
|
snippet button:s
|
||||||
<button type="submit">${1}</button>
|
<button type="submit">${0}</button>
|
||||||
snippet button:r
|
snippet button:r
|
||||||
<button type="reset">${1}</button>
|
<button type="reset">${0}</button>
|
||||||
snippet canvas
|
snippet canvas
|
||||||
<canvas>
|
<canvas>
|
||||||
${1}
|
${0}
|
||||||
</canvas>
|
</canvas>
|
||||||
snippet caption
|
snippet caption
|
||||||
<caption>${1}</caption>
|
<caption>${0}</caption>
|
||||||
snippet cite
|
snippet cite
|
||||||
<cite>${1}</cite>
|
<cite>${0}</cite>
|
||||||
snippet code
|
snippet code
|
||||||
<code>${1}</code>
|
<code>${0}</code>
|
||||||
snippet col
|
snippet col
|
||||||
<col />${1}
|
<col />
|
||||||
snippet col+
|
snippet col+
|
||||||
<col />
|
<col />
|
||||||
col+${1}
|
col+
|
||||||
snippet colgroup
|
snippet colgroup
|
||||||
<colgroup>
|
<colgroup>
|
||||||
${1}
|
${0}
|
||||||
</colgroup>
|
</colgroup>
|
||||||
snippet colgroup+
|
snippet colgroup+
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col />
|
<col />
|
||||||
col+${1}
|
col+${0}
|
||||||
</colgroup>
|
</colgroup>
|
||||||
snippet command
|
snippet command
|
||||||
<command type="command" label="${1}" icon="${2}" />
|
<command type="command" label="${1}" icon="${0}" />
|
||||||
snippet command:c
|
snippet command:c
|
||||||
<command type="checkbox" label="${1}" icon="${2}" />
|
<command type="checkbox" label="${1}" icon="${0}" />
|
||||||
snippet command:r
|
snippet command:r
|
||||||
<command type="radio" radiogroup="${1}" label="${2}" icon="${3}" />
|
<command type="radio" radiogroup="${1}" label="${2}" icon="${0}" />
|
||||||
snippet datagrid
|
snippet datagrid
|
||||||
<datagrid>
|
<datagrid>
|
||||||
${1}
|
${0}
|
||||||
</datagrid>
|
</datagrid>
|
||||||
snippet datalist
|
snippet datalist
|
||||||
<datalist>
|
<datalist>
|
||||||
${1}
|
${0}
|
||||||
</datalist>
|
</datalist>
|
||||||
snippet datatemplate
|
snippet datatemplate
|
||||||
<datatemplate>
|
<datatemplate>
|
||||||
${1}
|
${0}
|
||||||
</datatemplate>
|
</datatemplate>
|
||||||
snippet dd
|
snippet dd
|
||||||
<dd>${1}</dd>
|
<dd>${0}</dd>
|
||||||
snippet dd.
|
snippet dd.
|
||||||
<dd class="${1}">${2}</dd>
|
<dd class="${1}">${0}</dd>
|
||||||
snippet dd#
|
snippet dd#
|
||||||
<dd id="${1}">${2}</dd>
|
<dd id="${1}">${0}</dd>
|
||||||
snippet del
|
snippet del
|
||||||
<del>${1}</del>
|
<del>${0}</del>
|
||||||
snippet details
|
snippet details
|
||||||
<details>${1}</details>
|
<details>${0}</details>
|
||||||
snippet dfn
|
snippet dfn
|
||||||
<dfn>${1}</dfn>
|
<dfn>${0}</dfn>
|
||||||
snippet dialog
|
snippet dialog
|
||||||
<dialog>
|
<dialog>
|
||||||
${1}
|
${0}
|
||||||
</dialog>
|
</dialog>
|
||||||
snippet div
|
snippet div
|
||||||
<div>
|
<div>
|
||||||
${1}
|
${0}
|
||||||
</div>
|
</div>
|
||||||
snippet div.
|
snippet div.
|
||||||
<div class="${1}">
|
<div class="${1}">
|
||||||
${2}
|
${0}
|
||||||
</div>
|
</div>
|
||||||
snippet div#
|
snippet div#
|
||||||
<div id="${1}">
|
<div id="${1}">
|
||||||
${2}
|
${0}
|
||||||
</div>
|
</div>
|
||||||
snippet dl
|
snippet dl
|
||||||
<dl>
|
<dl>
|
||||||
${1}
|
${0}
|
||||||
</dl>
|
</dl>
|
||||||
snippet dl.
|
snippet dl.
|
||||||
<dl class="${1}">
|
<dl class="${1}">
|
||||||
${2}
|
${0}
|
||||||
</dl>
|
</dl>
|
||||||
snippet dl#
|
snippet dl#
|
||||||
<dl id="${1}">
|
<dl id="${1}">
|
||||||
${2}
|
${0}
|
||||||
</dl>
|
</dl>
|
||||||
snippet dl+
|
snippet dl+
|
||||||
<dl>
|
<dl>
|
||||||
<dt>${1}</dt>
|
<dt>${1}</dt>
|
||||||
<dd>${2}</dd>
|
<dd>${2}</dd>
|
||||||
dt+${3}
|
dt+${0}
|
||||||
</dl>
|
</dl>
|
||||||
snippet dt
|
snippet dt
|
||||||
<dt>${1}</dt>
|
<dt>${0}</dt>
|
||||||
snippet dt.
|
snippet dt.
|
||||||
<dt class="${1}">${2}</dt>
|
<dt class="${1}">${0}</dt>
|
||||||
snippet dt#
|
snippet dt#
|
||||||
<dt id="${1}">${2}</dt>
|
<dt id="${1}">${0}</dt>
|
||||||
snippet dt+
|
snippet dt+
|
||||||
<dt>${1}</dt>
|
<dt>${1}</dt>
|
||||||
<dd>${2}</dd>
|
<dd>${2}</dd>
|
||||||
dt+${3}
|
dt+${0}
|
||||||
snippet em
|
snippet em
|
||||||
<em>${1}</em>
|
<em>${0}</em>
|
||||||
snippet embed
|
snippet embed
|
||||||
<embed src=${1} type="${2} />
|
<embed src=${1} type="${0} />
|
||||||
snippet fieldset
|
snippet fieldset
|
||||||
<fieldset>
|
<fieldset>
|
||||||
${1}
|
${0}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
snippet fieldset.
|
snippet fieldset.
|
||||||
<fieldset class="${1}">
|
<fieldset class="${1}">
|
||||||
${2}
|
${0}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
snippet fieldset#
|
snippet fieldset#
|
||||||
<fieldset id="${1}">
|
<fieldset id="${1}">
|
||||||
${2}
|
${0}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
snippet fieldset+
|
snippet fieldset+
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><span>${1}</span></legend>
|
<legend><span>${1}</span></legend>
|
||||||
${2}
|
${2}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
fieldset+${3}
|
fieldset+${0}
|
||||||
snippet figcaption
|
snippet figcaption
|
||||||
<figcaption>${1}</figcaption>
|
<figcaption>${0}</figcaption>
|
||||||
snippet figure
|
snippet figure
|
||||||
<figure>${1}</figure>
|
<figure>${0}</figure>
|
||||||
snippet footer
|
snippet footer
|
||||||
<footer>
|
<footer>
|
||||||
${1}
|
${0}
|
||||||
</footer>
|
</footer>
|
||||||
snippet footer.
|
snippet footer.
|
||||||
<footer class="${1}">
|
<footer class="${1}">
|
||||||
${2}
|
${0}
|
||||||
</footer>
|
</footer>
|
||||||
snippet footer#
|
snippet footer#
|
||||||
<footer id="${1}">
|
<footer id="${1}">
|
||||||
${2}
|
${0}
|
||||||
</footer>
|
</footer>
|
||||||
snippet form
|
snippet form
|
||||||
<form action="${1}" method="${2:get}" accept-charset="utf-8">
|
<form action="${1}" method="${2:get}" accept-charset="utf-8">
|
||||||
${3}
|
${0}
|
||||||
</form>
|
</form>
|
||||||
snippet form.
|
snippet form.
|
||||||
<form class="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">
|
<form class="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">
|
||||||
${4}
|
${0}
|
||||||
</form>
|
</form>
|
||||||
snippet form#
|
snippet form#
|
||||||
<form id="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">
|
<form id="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">
|
||||||
${4}
|
${0}
|
||||||
</form>
|
</form>
|
||||||
snippet h1
|
snippet h1
|
||||||
<h1>${1}</h1>
|
<h1>${0}</h1>
|
||||||
snippet h1.
|
snippet h1.
|
||||||
<h1 class="${1}">${2}</h1>
|
<h1 class="${1}">${0}</h1>
|
||||||
snippet h1#
|
snippet h1#
|
||||||
<h1 id="${1}">${2}</h1>
|
<h1 id="${1}">${0}</h1>
|
||||||
snippet h2
|
snippet h2
|
||||||
<h2>${1}</h2>
|
<h2>${0}</h2>
|
||||||
snippet h2.
|
snippet h2.
|
||||||
<h2 class="${1}">${2}</h2>
|
<h2 class="${1}">${0}</h2>
|
||||||
snippet h2#
|
snippet h2#
|
||||||
<h2 id="${1}">${2}</h2>
|
<h2 id="${1}">${0}</h2>
|
||||||
snippet h3
|
snippet h3
|
||||||
<h3>${1}</h3>
|
<h3>${0}</h3>
|
||||||
snippet h3.
|
snippet h3.
|
||||||
<h3 class="${1}">${2}</h3>
|
<h3 class="${1}">${0}</h3>
|
||||||
snippet h3#
|
snippet h3#
|
||||||
<h3 id="${1}">${2}</h3>
|
<h3 id="${1}">${0}</h3>
|
||||||
snippet h4
|
snippet h4
|
||||||
<h4>${1}</h4>
|
<h4>${0}</h4>
|
||||||
snippet h4.
|
snippet h4.
|
||||||
<h4 class="${1}">${2}</h4>
|
<h4 class="${1}">${0}</h4>
|
||||||
snippet h4#
|
snippet h4#
|
||||||
<h4 id="${1}">${2}</h4>
|
<h4 id="${1}">${0}</h4>
|
||||||
snippet h5
|
snippet h5
|
||||||
<h5>${1}</h5>
|
<h5>${0}</h5>
|
||||||
snippet h5.
|
snippet h5.
|
||||||
<h5 class="${1}">${2}</h5>
|
<h5 class="${1}">${0}</h5>
|
||||||
snippet h5#
|
snippet h5#
|
||||||
<h5 id="${1}">${2}</h5>
|
<h5 id="${1}">${0}</h5>
|
||||||
snippet h6
|
snippet h6
|
||||||
<h6>${1}</h6>
|
<h6>${0}</h6>
|
||||||
snippet h6.
|
snippet h6.
|
||||||
<h6 class="${1}">${2}</h6>
|
<h6 class="${1}">${0}</h6>
|
||||||
snippet h6#
|
snippet h6#
|
||||||
<h6 id="${1}">${2}</h6>
|
<h6 id="${1}">${0}</h6>
|
||||||
snippet head
|
snippet head
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
|
|
||||||
<title>${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`}</title>
|
<title>${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`}</title>
|
||||||
${2}
|
${0}
|
||||||
</head>
|
</head>
|
||||||
snippet header
|
snippet header
|
||||||
<header>
|
<header>
|
||||||
${1}
|
${0}
|
||||||
</header>
|
</header>
|
||||||
snippet header.
|
snippet header.
|
||||||
<header class="${1}">
|
<header class="${1}">
|
||||||
${2}
|
${0}
|
||||||
</header>
|
</header>
|
||||||
snippet header#
|
snippet header#
|
||||||
<header id="${1}">
|
<header id="${1}">
|
||||||
${2}
|
${0}
|
||||||
</header>
|
</header>
|
||||||
snippet hgroup
|
snippet hgroup
|
||||||
<hgroup>
|
<hgroup>
|
||||||
${1}
|
${0}
|
||||||
</hgroup>
|
</hgroup>
|
||||||
snippet hgroup.
|
snippet hgroup.
|
||||||
<hgroup class="${1}>
|
<hgroup class="${1}>
|
||||||
${2}
|
${0}
|
||||||
</hgroup>
|
</hgroup>
|
||||||
snippet hr
|
snippet hr
|
||||||
<hr />${1}
|
<hr />
|
||||||
snippet html
|
snippet html
|
||||||
<html>
|
<html>
|
||||||
${1}
|
${0}
|
||||||
</html>
|
</html>
|
||||||
snippet xhtml
|
snippet xhtml
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
${1}
|
${0}
|
||||||
</html>
|
</html>
|
||||||
snippet html5
|
snippet html5
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@ -454,175 +454,175 @@ snippet html5
|
|||||||
${2:meta}
|
${2:meta}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
${3:body}
|
${0:body}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
snippet i
|
snippet i
|
||||||
<i>${1}</i>
|
<i>${0}</i>
|
||||||
snippet iframe
|
snippet iframe
|
||||||
<iframe src="${1}" frameborder="0"></iframe>${2}
|
<iframe src="${1}" frameborder="0"></iframe>
|
||||||
snippet iframe.
|
snippet iframe.
|
||||||
<iframe class="${1}" src="${2}" frameborder="0"></iframe>${3}
|
<iframe class="${1}" src="${2}" frameborder="0"></iframe>
|
||||||
snippet iframe#
|
snippet iframe#
|
||||||
<iframe id="${1}" src="${2}" frameborder="0"></iframe>${3}
|
<iframe id="${1}" src="${2}" frameborder="0"></iframe>
|
||||||
snippet img
|
snippet img
|
||||||
<img src="${1}" alt="${2}" />${3}
|
<img src="${1}" alt="${2}" />
|
||||||
snippet img.
|
snippet img.
|
||||||
<img class="${1}" src="${2}" alt="${3}" />${4}
|
<img class="${1}" src="${2}" alt="${3}" />
|
||||||
snippet img#
|
snippet img#
|
||||||
<img id="${1}" src="${2}" alt="${3}" />${4}
|
<img id="${1}" src="${2}" alt="${3}" />
|
||||||
snippet input
|
snippet input
|
||||||
<input type="${1:text/submit/hidden/button/image}" name="${2}" id="${3:$2}" value="${4}" />${5}
|
<input type="${1:text/submit/hidden/button/image}" name="${2}" id="${3:$2}" value="${4}" />
|
||||||
snippet input.
|
snippet input.
|
||||||
<input class="${1}" type="${2:text/submit/hidden/button/image}" name="${3}" id="${4:$3}" value="${5}" />${6}
|
<input class="${1}" type="${2:text/submit/hidden/button/image}" name="${3}" id="${4:$3}" value="${5}" />
|
||||||
snippet input:text
|
snippet input:text
|
||||||
<input type="text" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="text" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:submit
|
snippet input:submit
|
||||||
<input type="submit" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="submit" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:hidden
|
snippet input:hidden
|
||||||
<input type="hidden" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="hidden" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:button
|
snippet input:button
|
||||||
<input type="button" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="button" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:image
|
snippet input:image
|
||||||
<input type="image" name="${1}" id="${2:$1}" src="${3}" alt="${4}" />${5}
|
<input type="image" name="${1}" id="${2:$1}" src="${3}" alt="${4}" />
|
||||||
snippet input:checkbox
|
snippet input:checkbox
|
||||||
<input type="checkbox" name="${1}" id="${2:$1}" />${3}
|
<input type="checkbox" name="${1}" id="${2:$1}" />
|
||||||
snippet input:radio
|
snippet input:radio
|
||||||
<input type="radio" name="${1}" id="${2:$1}" />${3}
|
<input type="radio" name="${1}" id="${2:$1}" />
|
||||||
snippet input:color
|
snippet input:color
|
||||||
<input type="color" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="color" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:date
|
snippet input:date
|
||||||
<input type="date" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="date" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:datetime
|
snippet input:datetime
|
||||||
<input type="datetime" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="datetime" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:datetime-local
|
snippet input:datetime-local
|
||||||
<input type="datetime-local" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="datetime-local" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:email
|
snippet input:email
|
||||||
<input type="email" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="email" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:file
|
snippet input:file
|
||||||
<input type="file" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="file" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:month
|
snippet input:month
|
||||||
<input type="month" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="month" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:number
|
snippet input:number
|
||||||
<input type="number" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="number" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:password
|
snippet input:password
|
||||||
<input type="password" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="password" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:range
|
snippet input:range
|
||||||
<input type="range" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="range" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:reset
|
snippet input:reset
|
||||||
<input type="reset" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="reset" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:search
|
snippet input:search
|
||||||
<input type="search" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="search" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:time
|
snippet input:time
|
||||||
<input type="time" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="time" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:url
|
snippet input:url
|
||||||
<input type="url" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="url" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet input:week
|
snippet input:week
|
||||||
<input type="week" name="${1}" id="${2:$1}" value="${3}" />${4}
|
<input type="week" name="${1}" id="${2:$1}" value="${3}" />
|
||||||
snippet ins
|
snippet ins
|
||||||
<ins>${1}</ins>
|
<ins>${0}</ins>
|
||||||
snippet kbd
|
snippet kbd
|
||||||
<kbd>${1}</kbd>
|
<kbd>${0}</kbd>
|
||||||
snippet keygen
|
snippet keygen
|
||||||
<keygen>${1}</keygen>
|
<keygen>${0}</keygen>
|
||||||
snippet label
|
snippet label
|
||||||
<label for="${2:$1}">${1}</label>
|
<label for="${0:$1}">${1}</label>
|
||||||
snippet label:i
|
snippet label:i
|
||||||
<label for="${2:$1}">${1}</label>
|
<label for="${2:$1}">${1}</label>
|
||||||
<input type="${3:text/submit/hidden/button}" name="${4:$2}" id="${5:$2}" value="${6}" />${7}
|
<input type="${3:text/submit/hidden/button}" name="${4:$2}" id="${5:$2}" value="${6}" />
|
||||||
snippet label:s
|
snippet label:s
|
||||||
<label for="${2:$1}">${1}</label>
|
<label for="${2:$1}">${1}</label>
|
||||||
<select name="${3:$2}" id="${4:$2}">
|
<select name="${3:$2}" id="${4:$2}">
|
||||||
<option value="${5}">${6:$5}</option>
|
<option value="${5}">${0:$5}</option>
|
||||||
</select>
|
</select>
|
||||||
snippet legend
|
snippet legend
|
||||||
<legend>${1}</legend>
|
<legend>${0}</legend>
|
||||||
snippet legend+
|
snippet legend+
|
||||||
<legend><span>${1}</span></legend>
|
<legend><span>${0}</span></legend>
|
||||||
snippet li
|
snippet li
|
||||||
<li>${1}</li>
|
<li>${0}</li>
|
||||||
snippet li.
|
snippet li.
|
||||||
<li class="${1}">${2}</li>
|
<li class="${1}">${0}</li>
|
||||||
snippet li+
|
snippet li+
|
||||||
<li>${1}</li>
|
<li>${1}</li>
|
||||||
li+${2}
|
li+
|
||||||
snippet lia
|
snippet lia
|
||||||
<li><a href="${2:#}">${1}</a></li>
|
<li><a href="${0:#}">${1}</a></li>
|
||||||
snippet lia+
|
snippet lia+
|
||||||
<li><a href="${2:#}">${1}</a></li>
|
<li><a href="${2:#}">${1}</a></li>
|
||||||
lia+${3}
|
lia+
|
||||||
snippet link
|
snippet link
|
||||||
<link rel="${1}" href="${2}" title="${3}" type="${4}" />${5}
|
<link rel="${1}" href="${2}" title="${3}" type="${4}" />
|
||||||
snippet link:atom
|
snippet link:atom
|
||||||
<link rel="alternate" href="${1:atom.xml}" title="Atom" type="application/atom+xml" />${2}
|
<link rel="alternate" href="${1:atom.xml}" title="Atom" type="application/atom+xml" />
|
||||||
snippet link:css
|
snippet link:css
|
||||||
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}" />${3}
|
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}" />
|
||||||
snippet link:favicon
|
snippet link:favicon
|
||||||
<link rel="shortcut icon" href="${1:favicon.ico}" type="image/x-icon" />${2}
|
<link rel="shortcut icon" href="${1:favicon.ico}" type="image/x-icon" />
|
||||||
snippet link:rss
|
snippet link:rss
|
||||||
<link rel="alternate" href="${1:rss.xml}" title="RSS" type="application/atom+xml" />${2}
|
<link rel="alternate" href="${1:rss.xml}" title="RSS" type="application/atom+xml" />
|
||||||
snippet link:touch
|
snippet link:touch
|
||||||
<link rel="apple-touch-icon" href="${1:favicon.png}" />${2}
|
<link rel="apple-touch-icon" href="${1:favicon.png}" />
|
||||||
snippet map
|
snippet map
|
||||||
<map name="${1}">
|
<map name="${1}">
|
||||||
${2}
|
${0}
|
||||||
</map>
|
</map>
|
||||||
snippet map.
|
snippet map.
|
||||||
<map class="${1}" name="${2}">
|
<map class="${1}" name="${2}">
|
||||||
${3}
|
${0}
|
||||||
</map>
|
</map>
|
||||||
snippet map#
|
snippet map#
|
||||||
<map name="${1}" id="${2:$1}>
|
<map name="${1}" id="${2:$1}>
|
||||||
${3}
|
${0}
|
||||||
</map>
|
</map>
|
||||||
snippet map+
|
snippet map+
|
||||||
<map name="${1}">
|
<map name="${1}">
|
||||||
<area shape="${2}" coords="${3}" href="${4}" alt="${5}" />${6}
|
<area shape="${2}" coords="${3}" href="${4}" alt="${5}" />${6}
|
||||||
</map>${7}
|
</map>
|
||||||
snippet mark
|
snippet mark
|
||||||
<mark>${1}</mark>
|
<mark>${0}</mark>
|
||||||
snippet menu
|
snippet menu
|
||||||
<menu>
|
<menu>
|
||||||
${1}
|
${0}
|
||||||
</menu>
|
</menu>
|
||||||
snippet menu:c
|
snippet menu:c
|
||||||
<menu type="context">
|
<menu type="context">
|
||||||
${1}
|
${0}
|
||||||
</menu>
|
</menu>
|
||||||
snippet menu:t
|
snippet menu:t
|
||||||
<menu type="toolbar">
|
<menu type="toolbar">
|
||||||
${1}
|
${0}
|
||||||
</menu>
|
</menu>
|
||||||
snippet meta
|
snippet meta
|
||||||
<meta http-equiv="${1}" content="${2}" />${3}
|
<meta http-equiv="${1}" content="${2}" />
|
||||||
snippet meta:compat
|
snippet meta:compat
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=${1:7,8,edge}" />${3}
|
<meta http-equiv="X-UA-Compatible" content="IE=${1:7,8,edge}" />
|
||||||
snippet meta:refresh
|
snippet meta:refresh
|
||||||
<meta http-equiv="refresh" content="text/html;charset=UTF-8" />${3}
|
<meta http-equiv="refresh" content="text/html;charset=UTF-8" />
|
||||||
snippet meta:utf
|
snippet meta:utf
|
||||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />${3}
|
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||||
snippet meter
|
snippet meter
|
||||||
<meter>${1}</meter>
|
<meter>${0}</meter>
|
||||||
snippet nav
|
snippet nav
|
||||||
<nav>
|
<nav>
|
||||||
${1}
|
${0}
|
||||||
</nav>
|
</nav>
|
||||||
snippet nav.
|
snippet nav.
|
||||||
<nav class="${1}">
|
<nav class="${1}">
|
||||||
${2}
|
${0}
|
||||||
</nav>
|
</nav>
|
||||||
snippet nav#
|
snippet nav#
|
||||||
<nav id="${1}">
|
<nav id="${1}">
|
||||||
${2}
|
${0}
|
||||||
</nav>
|
</nav>
|
||||||
snippet noscript
|
snippet noscript
|
||||||
<noscript>
|
<noscript>
|
||||||
${1}
|
${0}
|
||||||
</noscript>
|
</noscript>
|
||||||
snippet object
|
snippet object
|
||||||
<object data="${1}" type="${2}">
|
<object data="${1}" type="${2}">
|
||||||
${3}
|
${3}
|
||||||
</object>${4}
|
</object>
|
||||||
# Embed QT Movie
|
# Embed QT Movie
|
||||||
snippet movie
|
snippet movie
|
||||||
<object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
|
<object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
|
||||||
@ -635,198 +635,198 @@ snippet movie
|
|||||||
controller="${4:true}" autoplay="${5:true}"
|
controller="${4:true}" autoplay="${5:true}"
|
||||||
scale="tofit" cache="true"
|
scale="tofit" cache="true"
|
||||||
pluginspage="http://www.apple.com/quicktime/download/" />
|
pluginspage="http://www.apple.com/quicktime/download/" />
|
||||||
</object>${6}
|
</object>
|
||||||
snippet ol
|
snippet ol
|
||||||
<ol>
|
<ol>
|
||||||
${1}
|
${0}
|
||||||
</ol>
|
</ol>
|
||||||
snippet ol.
|
snippet ol.
|
||||||
<ol class="${1}>
|
<ol class="${1}>
|
||||||
${2}
|
${0}
|
||||||
</ol>
|
</ol>
|
||||||
snippet ol#
|
snippet ol#
|
||||||
<ol id="${1}>
|
<ol id="${1}>
|
||||||
${2}
|
${0}
|
||||||
</ol>
|
</ol>
|
||||||
snippet ol+
|
snippet ol+
|
||||||
<ol>
|
<ol>
|
||||||
<li>${1}</li>
|
<li>${1}</li>
|
||||||
li+${2}
|
li+${0}
|
||||||
</ol>
|
</ol>
|
||||||
snippet opt
|
snippet opt
|
||||||
<option value="${1}">${2:$1}</option>
|
<option value="${1}">${0:$1}</option>
|
||||||
snippet opt+
|
snippet opt+
|
||||||
<option value="${1}">${2:$1}</option>
|
<option value="${1}">${2:$1}</option>
|
||||||
opt+${3}
|
opt+${0}
|
||||||
snippet optt
|
snippet optt
|
||||||
<option>${1}</option>
|
<option>${0}</option>
|
||||||
snippet optgroup
|
snippet optgroup
|
||||||
<optgroup>
|
<optgroup>
|
||||||
<option value="${1}">${2:$1}</option>
|
<option value="${1}">${2:$1}</option>
|
||||||
opt+${3}
|
opt+${0}
|
||||||
</optgroup>
|
</optgroup>
|
||||||
snippet output
|
snippet output
|
||||||
<output>${1}</output>
|
<output>${0}</output>
|
||||||
snippet p
|
snippet p
|
||||||
<p>${1}</p>
|
<p>${0}</p>
|
||||||
snippet param
|
snippet param
|
||||||
<param name="${1}" value="${2}" />${3}
|
<param name="${1}" value="${2}" />
|
||||||
snippet pre
|
snippet pre
|
||||||
<pre>
|
<pre>
|
||||||
${1}
|
${0}
|
||||||
</pre>
|
</pre>
|
||||||
snippet progress
|
snippet progress
|
||||||
<progress>${1}</progress>
|
<progress>${0}</progress>
|
||||||
snippet q
|
snippet q
|
||||||
<q>${1}</q>
|
<q>${0}</q>
|
||||||
snippet rp
|
snippet rp
|
||||||
<rp>${1}</rp>
|
<rp>${0}</rp>
|
||||||
snippet rt
|
snippet rt
|
||||||
<rt>${1}</rt>
|
<rt>${0}</rt>
|
||||||
snippet ruby
|
snippet ruby
|
||||||
<ruby>
|
<ruby>
|
||||||
<rp><rt>${1}</rt></rp>
|
<rp><rt>${0}</rt></rp>
|
||||||
</ruby>
|
</ruby>
|
||||||
snippet s
|
snippet s
|
||||||
<s>${1}</s>
|
<s>${0}</s>
|
||||||
snippet samp
|
snippet samp
|
||||||
<samp>
|
<samp>
|
||||||
${1}
|
${0}
|
||||||
</samp>
|
</samp>
|
||||||
snippet script
|
snippet script
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
${1}
|
${0}
|
||||||
</script>
|
</script>
|
||||||
snippet scriptsrc
|
snippet scriptsrc
|
||||||
<script src="${1}.js" type="text/javascript" charset="utf-8"></script>
|
<script src="${0}.js" type="text/javascript" charset="utf-8"></script>
|
||||||
snippet section
|
snippet section
|
||||||
<section>
|
<section>
|
||||||
${1}
|
${0}
|
||||||
</section>
|
</section>
|
||||||
snippet section.
|
snippet section.
|
||||||
<section class="${1}">
|
<section class="${1}">
|
||||||
${2}
|
${0}
|
||||||
</section>
|
</section>
|
||||||
snippet section#
|
snippet section#
|
||||||
<section id="${1}">
|
<section id="${1}">
|
||||||
${2}
|
${0}
|
||||||
</section>
|
</section>
|
||||||
snippet select
|
snippet select
|
||||||
<select name="${1}" id="${2:$1}">
|
<select name="${1}" id="${2:$1}">
|
||||||
${3}
|
${0}
|
||||||
</select>
|
</select>
|
||||||
snippet select.
|
snippet select.
|
||||||
<select name="${1}" id="${2:$1}" class="${3}>
|
<select name="${1}" id="${2:$1}" class="${3}>
|
||||||
${4}
|
${0}
|
||||||
</select>
|
</select>
|
||||||
snippet select+
|
snippet select+
|
||||||
<select name="${1}" id="${2:$1}">
|
<select name="${1}" id="${2:$1}">
|
||||||
<option value="${3}">${4:$3}</option>
|
<option value="${3}">${4:$3}</option>
|
||||||
opt+${5}
|
opt+${0}
|
||||||
</select>
|
</select>
|
||||||
snippet small
|
snippet small
|
||||||
<small>${1}</small>
|
<small>${0}</small>
|
||||||
snippet source
|
snippet source
|
||||||
<source src="${1}" type="${2}" media="${3}" />
|
<source src="${1}" type="${2}" media="${0}" />
|
||||||
snippet span
|
snippet span
|
||||||
<span>${1}</span>
|
<span>${0}</span>
|
||||||
snippet span.
|
snippet span.
|
||||||
<span class="${1}">${2}</span>
|
<span class="${1}">${0}</span>
|
||||||
snippet span#
|
snippet span#
|
||||||
<span id="${1}">${2}</span>
|
<span id="${1}">${0}</span>
|
||||||
snippet strong
|
snippet strong
|
||||||
<strong>${1}</strong>
|
<strong>${0}</strong>
|
||||||
snippet style
|
snippet style
|
||||||
<style type="text/css" media="${1:all}">
|
<style type="text/css" media="${1:all}">
|
||||||
${2}
|
${0}
|
||||||
</style>
|
</style>
|
||||||
snippet sub
|
snippet sub
|
||||||
<sub>${1}</sub>
|
<sub>${0}</sub>
|
||||||
snippet summary
|
snippet summary
|
||||||
<summary>
|
<summary>
|
||||||
${1}
|
${0}
|
||||||
</summary>
|
</summary>
|
||||||
snippet sup
|
snippet sup
|
||||||
<sup>${1}</sup>
|
<sup>${0}</sup>
|
||||||
snippet table
|
snippet table
|
||||||
<table border="${1:0}">
|
<table border="${1:0}">
|
||||||
${2}
|
${0}
|
||||||
</table>
|
</table>
|
||||||
snippet table.
|
snippet table.
|
||||||
<table class="${1}" border="${2:0}">
|
<table class="${1}" border="${2:0}">
|
||||||
${3}
|
${0}
|
||||||
</table>
|
</table>
|
||||||
snippet table#
|
snippet table#
|
||||||
<table id="${1}" border="${2:0}">
|
<table id="${1}" border="${2:0}">
|
||||||
${3}
|
${0}
|
||||||
</table>
|
</table>
|
||||||
snippet tbody
|
snippet tbody
|
||||||
<tbody>
|
<tbody>
|
||||||
${1}
|
${0}
|
||||||
</tbody>
|
</tbody>
|
||||||
snippet td
|
snippet td
|
||||||
<td>${1}</td>
|
<td>${0}</td>
|
||||||
snippet td.
|
snippet td.
|
||||||
<td class="${1}">${2}</td>
|
<td class="${1}">${0}</td>
|
||||||
snippet td#
|
snippet td#
|
||||||
<td id="${1}">${2}</td>
|
<td id="${1}">${0}</td>
|
||||||
snippet td+
|
snippet td+
|
||||||
<td>${1}</td>
|
<td>${1}</td>
|
||||||
td+${2}
|
td+${0}
|
||||||
snippet textarea
|
snippet textarea
|
||||||
<textarea name="${1}" id=${2:$1} rows="${3:8}" cols="${4:40}">${5}</textarea>${6}
|
<textarea name="${1}" id=${2:$1} rows="${3:8}" cols="${4:40}">${5}</textarea>
|
||||||
snippet tfoot
|
snippet tfoot
|
||||||
<tfoot>
|
<tfoot>
|
||||||
${1}
|
${0}
|
||||||
</tfoot>
|
</tfoot>
|
||||||
snippet th
|
snippet th
|
||||||
<th>${1}</th>
|
<th>${0}</th>
|
||||||
snippet th.
|
snippet th.
|
||||||
<th class="${1}">${2}</th>
|
<th class="${1}">${0}</th>
|
||||||
snippet th#
|
snippet th#
|
||||||
<th id="${1}">${2}</th>
|
<th id="${1}">${0}</th>
|
||||||
snippet th+
|
snippet th+
|
||||||
<th>${1}</th>
|
<th>${1}</th>
|
||||||
th+${2}
|
th+${0}
|
||||||
snippet thead
|
snippet thead
|
||||||
<thead>
|
<thead>
|
||||||
${1}
|
${0}
|
||||||
</thead>
|
</thead>
|
||||||
snippet time
|
snippet time
|
||||||
<time datetime="${1}" pubdate="${2:$1}">${3:$1}</time>
|
<time datetime="${1}" pubdate="${2:$1}">${0:$1}</time>
|
||||||
snippet title
|
snippet title
|
||||||
<title>${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`}</title>
|
<title>${0:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`}</title>
|
||||||
snippet tr
|
snippet tr
|
||||||
<tr>
|
<tr>
|
||||||
${1}
|
${0}
|
||||||
</tr>
|
</tr>
|
||||||
snippet tr+
|
snippet tr+
|
||||||
<tr>
|
<tr>
|
||||||
<td>${1}</td>
|
<td>${1}</td>
|
||||||
td+${2}
|
td+${0}
|
||||||
</tr>
|
</tr>
|
||||||
snippet track
|
snippet track
|
||||||
<track src="${1}" srclang="${2}" label="${3}" default="${4:default}>${5}</track>${6}
|
<track src="${1}" srclang="${2}" label="${3}" default="${4:default}>${5}</track>
|
||||||
snippet ul
|
snippet ul
|
||||||
<ul>
|
<ul>
|
||||||
${1}
|
${0}
|
||||||
</ul>
|
</ul>
|
||||||
snippet ul.
|
snippet ul.
|
||||||
<ul class="${1}">
|
<ul class="${1}">
|
||||||
${2}
|
${0}
|
||||||
</ul>
|
</ul>
|
||||||
snippet ul#
|
snippet ul#
|
||||||
<ul id="${1}">
|
<ul id="${1}">
|
||||||
${2}
|
${0}
|
||||||
</ul>
|
</ul>
|
||||||
snippet ul+
|
snippet ul+
|
||||||
<ul>
|
<ul>
|
||||||
<li>${1}</li>
|
<li>${1}</li>
|
||||||
li+${2}
|
li+${0}
|
||||||
</ul>
|
</ul>
|
||||||
snippet var
|
snippet var
|
||||||
<var>${1}</var>
|
<var>${0}</var>
|
||||||
snippet video
|
snippet video
|
||||||
<video src="${1} height="${2}" width="${3}" preload="${5:none}" autoplay="${6:autoplay}>${7}</video>${8}
|
<video src="${1} height="${2}" width="${3}" preload="${5:none}" autoplay="${6:autoplay}>${7}</video>
|
||||||
snippet wbr
|
snippet wbr
|
||||||
<wbr />${1}
|
<wbr />
|
||||||
|
@ -18,31 +18,31 @@ snippet html5
|
|||||||
# ==== TAGS
|
# ==== TAGS
|
||||||
# you always need these:
|
# you always need these:
|
||||||
snippet .
|
snippet .
|
||||||
class="${1}"${2}
|
class="${1}"
|
||||||
snippet n
|
snippet n
|
||||||
name="${1}"${2}
|
name="${1}"
|
||||||
snippet r
|
snippet r
|
||||||
rel="${1}"${2}
|
rel="${1}"
|
||||||
snippet t
|
snippet t
|
||||||
title="${1}"${2}
|
title="${1}"
|
||||||
|
|
||||||
# not using # because id is faster to type
|
# not using # because id is faster to type
|
||||||
snippet id
|
snippet id
|
||||||
id="${1}"${2}
|
id="${1}"
|
||||||
snippet idn
|
snippet idn
|
||||||
id="${1}" name="${2:$1}"
|
id="${1}" name="${0:$1}"
|
||||||
|
|
||||||
snippet label_and_input
|
snippet label_and_input
|
||||||
<label for="${2:$1}">${1}</label>
|
<label for="${0:$1}">${1}</label>
|
||||||
<input type="${3:text}" name="${4:$2}" id="${5:$2}" value="${6}">${7}
|
<input type="${3:text}" name="${4:$2}" id="${5:$2}" value="${6}">
|
||||||
|
|
||||||
|
|
||||||
# FORMS
|
# FORMS
|
||||||
# use idn . or n to add id
|
# use idn . or n to add id
|
||||||
snippet input
|
snippet input
|
||||||
<input type="${1:text}" value="${2}" ${3}>${7}
|
<input type="${1:text}" value="${2}" ${3}>
|
||||||
snippet submit
|
snippet submit
|
||||||
<input type="submit" value="${2}" ${3}>${7}
|
<input type="submit" value="${2}" ${3}>
|
||||||
snippet textarea
|
snippet textarea
|
||||||
<textarea $1>$2</textarea>
|
<textarea $1>$2</textarea>
|
||||||
|
|
||||||
@ -61,9 +61,9 @@ snippet img
|
|||||||
<img src="$1" alt="$2"/>
|
<img src="$1" alt="$2"/>
|
||||||
# JS/CSS
|
# JS/CSS
|
||||||
snippet css_file
|
snippet css_file
|
||||||
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}">${3}
|
|
||||||
snippet css_block
|
|
||||||
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}">
|
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}">
|
||||||
|
snippet css_block
|
||||||
|
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${0:all}">
|
||||||
</link>
|
</link>
|
||||||
|
|
||||||
snippet script_block
|
snippet script_block
|
||||||
|
@ -1,89 +1,89 @@
|
|||||||
# Generic tags
|
# Generic tags
|
||||||
|
|
||||||
snippet %
|
snippet %
|
||||||
{% ${1} %}${2}
|
{% ${1} %}
|
||||||
snippet %%
|
snippet %%
|
||||||
{% ${1:tag_name} %}
|
{% ${1:tag_name} %}
|
||||||
${2}
|
${0}
|
||||||
{% end$1 %}
|
{% end$1 %}
|
||||||
snippet {
|
snippet {
|
||||||
{{ ${1} }}${2}
|
{{ ${1} }}
|
||||||
# Template Tags
|
# Template Tags
|
||||||
|
|
||||||
snippet autoescape
|
snippet autoescape
|
||||||
{% autoescape ${1:off} %}
|
{% autoescape ${1:off} %}
|
||||||
${2}
|
${0}
|
||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
snippet block
|
snippet block
|
||||||
{% block ${1} %}
|
{% block ${1} %}
|
||||||
${2}
|
${0}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
snippet #
|
snippet #
|
||||||
{# ${1:comment} #}
|
{# ${0:comment} #}
|
||||||
snippet comment
|
snippet comment
|
||||||
{% comment %}
|
{% comment %}
|
||||||
${1}
|
${0}
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
snippet cycle
|
snippet cycle
|
||||||
{% cycle ${1:val1} ${2:val2} ${3:as ${4}} %}
|
{% cycle ${1:val1} ${2:val2} ${3:as ${4}} %}
|
||||||
snippet debug
|
snippet debug
|
||||||
{% debug %}
|
{% debug %}
|
||||||
snippet extends
|
snippet extends
|
||||||
{% extends "${1:base.html}" %}
|
{% extends "${0:base.html}" %}
|
||||||
snippet filter
|
snippet filter
|
||||||
{% filter ${1} %}
|
{% filter ${1} %}
|
||||||
${2}
|
${0}
|
||||||
{% endfilter %}
|
{% endfilter %}
|
||||||
snippet firstof
|
snippet firstof
|
||||||
{% firstof ${1} %}
|
{% firstof ${1} %}
|
||||||
snippet for
|
snippet for
|
||||||
{% for ${1} in ${2} %}
|
{% for ${1} in ${2} %}
|
||||||
${3}
|
${0}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
snippet empty
|
snippet empty
|
||||||
{% empty %}
|
{% empty %}
|
||||||
${1}
|
${0}
|
||||||
snippet if
|
snippet if
|
||||||
{% if ${1} %}
|
{% if ${1} %}
|
||||||
${2}
|
${0}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
snippet el
|
snippet el
|
||||||
{% else %}
|
{% else %}
|
||||||
${1}
|
${1}
|
||||||
snippet eif
|
snippet eif
|
||||||
{% elif ${1} %}
|
{% elif ${1} %}
|
||||||
${2}
|
${0}
|
||||||
snippet ifchanged
|
snippet ifchanged
|
||||||
{% ifchanged %}${1}{% endifchanged %}
|
{% ifchanged %}${1}{% endifchanged %}
|
||||||
snippet ifequal
|
snippet ifequal
|
||||||
{% ifequal ${1} ${2} %}
|
{% ifequal ${1} ${2} %}
|
||||||
${3}
|
${0}
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
snippet ifnotequal
|
snippet ifnotequal
|
||||||
{% ifnotequal ${1} ${2} %}
|
{% ifnotequal ${1} ${2} %}
|
||||||
${3}
|
${0}
|
||||||
{% endifnotequal %}
|
{% endifnotequal %}
|
||||||
snippet include
|
snippet include
|
||||||
{% include "${1}" %}
|
{% include "${0}" %}
|
||||||
snippet load
|
snippet load
|
||||||
{% load ${1} %}
|
{% load ${0} %}
|
||||||
snippet now
|
snippet now
|
||||||
{% now "${1:jS F Y H:i}" %}
|
{% now "${0:jS F Y H:i}" %}
|
||||||
snippet regroup
|
snippet regroup
|
||||||
{% regroup ${1} by ${2} as ${3} %}
|
{% regroup ${1} by ${2} as ${0} %}
|
||||||
snippet spaceless
|
snippet spaceless
|
||||||
{% spaceless %}${1}{% endspaceless %}
|
{% spaceless %}${0}{% endspaceless %}
|
||||||
snippet ssi
|
snippet ssi
|
||||||
{% ssi ${1} %}
|
{% ssi ${0} %}
|
||||||
snippet trans
|
snippet trans
|
||||||
{% trans "${1:string}" %}
|
{% trans "${0:string}" %}
|
||||||
snippet url
|
snippet url
|
||||||
{% url ${1} as ${2} %}
|
{% url ${1} as ${0} %}
|
||||||
snippet widthratio
|
snippet widthratio
|
||||||
{% widthratio ${1:this_value} ${2:max_value} ${3:100} %}
|
{% widthratio ${1:this_value} ${2:max_value} ${0:100} %}
|
||||||
snippet with
|
snippet with
|
||||||
{% with ${1} as ${2} %}
|
{% with ${1} as ${2} %}
|
||||||
${3}
|
${0}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
# Template Filters
|
# Template Filters
|
||||||
@ -95,47 +95,47 @@ snippet with
|
|||||||
# Note: Template tags that take no arguments are not implemented.
|
# Note: Template tags that take no arguments are not implemented.
|
||||||
|
|
||||||
snippet add
|
snippet add
|
||||||
add:"${1}"
|
add:"${0}"
|
||||||
snippet center
|
snippet center
|
||||||
center:"${1}"
|
center:"${0}"
|
||||||
snippet cut
|
snippet cut
|
||||||
cut:"${1}"
|
cut:"${0}"
|
||||||
snippet date
|
snippet date
|
||||||
date:"${1}"
|
date:"${0}"
|
||||||
snippet default
|
snippet default
|
||||||
default:"${1}"
|
default:"${0}"
|
||||||
snippet defaultifnone
|
snippet defaultifnone
|
||||||
default_if_none:"${1}"
|
default_if_none:"${0}"
|
||||||
snippet dictsort
|
snippet dictsort
|
||||||
dictsort:"${1}"
|
dictsort:"${0}"
|
||||||
snippet dictsortrev
|
snippet dictsortrev
|
||||||
dictsortreversed:"${1}"
|
dictsortreversed:"${0}"
|
||||||
snippet divisibleby
|
snippet divisibleby
|
||||||
divisibleby:"${1}"
|
divisibleby:"${0}"
|
||||||
snippet floatformat
|
snippet floatformat
|
||||||
floatformat:"${1}"
|
floatformat:"${0}"
|
||||||
snippet getdigit
|
snippet getdigit
|
||||||
get_digit:"${1}"
|
get_digit:"${0}"
|
||||||
snippet join
|
snippet join
|
||||||
join:"${1}"
|
join:"${0}"
|
||||||
snippet lengthis
|
snippet lengthis
|
||||||
length_is:"${1}"
|
length_is:"${0}"
|
||||||
snippet pluralize
|
snippet pluralize
|
||||||
pluralize:"${1}"
|
pluralize:"${0}"
|
||||||
snippet removetags
|
snippet removetags
|
||||||
removetags:"${1}"
|
removetags:"${0}"
|
||||||
snippet slice
|
snippet slice
|
||||||
slice:"${1}"
|
slice:"${0}"
|
||||||
snippet stringformat
|
snippet stringformat
|
||||||
stringformat:"${1}"
|
stringformat:"${0}"
|
||||||
snippet time
|
snippet time
|
||||||
time:"${1}"
|
time:"${0}"
|
||||||
snippet truncatewords
|
snippet truncatewords
|
||||||
truncatewords:${1}
|
truncatewords:${0}
|
||||||
snippet truncatewordshtml
|
snippet truncatewordshtml
|
||||||
truncatewords_html:${1}
|
truncatewords_html:${0}
|
||||||
snippet urlizetrunc
|
snippet urlizetrunc
|
||||||
urlizetrunc:${1}
|
urlizetrunc:${0}
|
||||||
snippet wordwrap
|
snippet wordwrap
|
||||||
wordwrap:${1}
|
wordwrap:${0}
|
||||||
|
|
||||||
|
@ -1,55 +1,55 @@
|
|||||||
# Generic tags
|
# Generic tags
|
||||||
|
|
||||||
snippet {
|
snippet {
|
||||||
{{ ${1} }}
|
{{ ${0} }}
|
||||||
|
|
||||||
# Template tags
|
# Template tags
|
||||||
|
|
||||||
snippet extends
|
snippet extends
|
||||||
{% extends "${1:base.html}" %}
|
{% extends "${0:base.html}" %}
|
||||||
snippet autoescape
|
snippet autoescape
|
||||||
{% autoescape ${1:xhtml_escape | None} %}
|
{% autoescape ${0:xhtml_escape | None} %}
|
||||||
snippet apply
|
snippet apply
|
||||||
{% apply ${1:function} %}
|
{% apply ${1:function} %}
|
||||||
${2}
|
${0}
|
||||||
{% end %}
|
{% end %}
|
||||||
snippet block
|
snippet block
|
||||||
{% block ${1} %}
|
{% block ${1} %}
|
||||||
${2}
|
${0}
|
||||||
{% end %}
|
{% end %}
|
||||||
snippet for
|
snippet for
|
||||||
{% for ${1:item} in ${2} %}
|
{% for ${1:item} in ${2} %}
|
||||||
${3}
|
${0}
|
||||||
{% end %}
|
{% end %}
|
||||||
snippet from
|
snippet from
|
||||||
{% from ${1:x} import ${2:y} %}
|
{% from ${1:x} import ${0:y} %}
|
||||||
snippet if
|
snippet if
|
||||||
{% if ${1:condition} %}
|
{% if ${1:condition} %}
|
||||||
${2}
|
${0}
|
||||||
{% end %}
|
{% end %}
|
||||||
snippet eif
|
snippet eif
|
||||||
{% elif ${1:condition} %}
|
{% elif ${0:condition} %}
|
||||||
snippet el
|
snippet el
|
||||||
{% else %}
|
{% else %}
|
||||||
snippet import
|
snippet import
|
||||||
{% import ${1:module} %}
|
{% import ${0:module} %}
|
||||||
snippet include
|
snippet include
|
||||||
{% include "${1:filename}" %}
|
{% include "${0:filename}" %}
|
||||||
snippet module
|
snippet module
|
||||||
{% module ${1:expression} %}
|
{% module ${0:expression} %}
|
||||||
snippet raw
|
snippet raw
|
||||||
{% raw ${1:expression} %}
|
{% raw ${0:expression} %}
|
||||||
snippet set
|
snippet set
|
||||||
{% set ${1:x} = ${2:y} %}
|
{% set ${1:x} = ${0:y} %}
|
||||||
snippet try
|
snippet try
|
||||||
{% try %}
|
{% try %}
|
||||||
${1}
|
${1}
|
||||||
{% except %}
|
{% except %}
|
||||||
${2}
|
${2}
|
||||||
{% finallly %}
|
{% finallly %}
|
||||||
${3}
|
${0}
|
||||||
{% end %}
|
{% end %}
|
||||||
snippet wh
|
snippet wh
|
||||||
{% while ${1:condition} %}
|
{% while ${1:condition} %}
|
||||||
${2}
|
${0}
|
||||||
{% end %}
|
{% end %}
|
||||||
|
@ -9,16 +9,16 @@ snippet pr
|
|||||||
## Annotations
|
## Annotations
|
||||||
snippet before
|
snippet before
|
||||||
@Before
|
@Before
|
||||||
static void ${1:intercept}(${2:args}) { ${3} }
|
static void ${1:intercept}(${2:args}) { ${0} }
|
||||||
snippet mm
|
snippet mm
|
||||||
@ManyToMany
|
@ManyToMany
|
||||||
${1}
|
${0}
|
||||||
snippet mo
|
snippet mo
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
${1}
|
${0}
|
||||||
snippet om
|
snippet om
|
||||||
@OneToMany${1:(cascade=CascadeType.ALL)}
|
@OneToMany${1:(cascade=CascadeType.ALL)}
|
||||||
${2}
|
${0}
|
||||||
snippet oo
|
snippet oo
|
||||||
@OneToOne
|
@OneToOne
|
||||||
${1}
|
${1}
|
||||||
@ -39,11 +39,11 @@ snippet j.u
|
|||||||
##
|
##
|
||||||
## Class
|
## Class
|
||||||
snippet cl
|
snippet cl
|
||||||
class ${1:`vim_snippets#Filename("", "untitled")`} ${2}
|
class ${1:`vim_snippets#Filename("", "untitled")`} ${0}
|
||||||
snippet in
|
snippet in
|
||||||
interface ${1:`vim_snippets#Filename("", "untitled")`} ${2:extends Parent}${3}
|
interface ${1:`vim_snippets#Filename("", "untitled")`} ${2:extends Parent}
|
||||||
snippet tc
|
snippet tc
|
||||||
public class ${1:`vim_snippets#Filename()`} extends ${2:TestCase}
|
public class ${1:`vim_snippets#Filename()`} extends ${0:TestCase}
|
||||||
##
|
##
|
||||||
## Class Enhancements
|
## Class Enhancements
|
||||||
snippet ext
|
snippet ext
|
||||||
@ -54,40 +54,40 @@ snippet imp
|
|||||||
## Comments
|
## Comments
|
||||||
snippet /*
|
snippet /*
|
||||||
/*
|
/*
|
||||||
* ${1}
|
* ${0}
|
||||||
*/
|
*/
|
||||||
##
|
##
|
||||||
## Constants
|
## Constants
|
||||||
snippet co
|
snippet co
|
||||||
static public final ${1:String} ${2:var} = ${3};${4}
|
static public final ${1:String} ${2:var} = ${3};
|
||||||
snippet cos
|
snippet cos
|
||||||
static public final String ${1:var} = "${2}";${3}
|
static public final String ${1:var} = "${2}";
|
||||||
##
|
##
|
||||||
## Control Statements
|
## Control Statements
|
||||||
snippet case
|
snippet case
|
||||||
case ${1}:
|
case ${1}:
|
||||||
${2}
|
${0}
|
||||||
snippet def
|
snippet def
|
||||||
default:
|
default:
|
||||||
${2}
|
${0}
|
||||||
snippet el
|
snippet el
|
||||||
else
|
else
|
||||||
snippet eif
|
snippet eif
|
||||||
else if (${1}) ${2}
|
else if (${1}) ${0}
|
||||||
snippet if
|
snippet if
|
||||||
if (${1}) ${2}
|
if (${1}) ${0}
|
||||||
snippet sw
|
snippet sw
|
||||||
switch (${1}) {
|
switch (${1}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
##
|
##
|
||||||
## Create a Method
|
## Create a Method
|
||||||
snippet m
|
snippet m
|
||||||
${1:void} ${2:method}(${3}) ${4:throws }${5}
|
${1:void} ${2:method}(${3}) ${4:throws }
|
||||||
##
|
##
|
||||||
## Create a Variable
|
## Create a Variable
|
||||||
snippet v
|
snippet v
|
||||||
${1:String} ${2:var}${3: = null}${4};${5}
|
${1:String} ${2:var}${3: = null}${4};
|
||||||
##
|
##
|
||||||
## Enhancements to Methods, variables, classes, etc.
|
## Enhancements to Methods, variables, classes, etc.
|
||||||
snippet ab
|
snippet ab
|
||||||
@ -101,107 +101,107 @@ snippet sy
|
|||||||
##
|
##
|
||||||
## Error Methods
|
## Error Methods
|
||||||
snippet err
|
snippet err
|
||||||
System.err.print("${1:Message}");
|
System.err.print("${0:Message}");
|
||||||
snippet errf
|
snippet errf
|
||||||
System.err.printf("${1:Message}", ${2:exception});
|
System.err.printf("${1:Message}", ${0:exception});
|
||||||
snippet errln
|
snippet errln
|
||||||
System.err.println("${1:Message}");
|
System.err.println("${0:Message}");
|
||||||
##
|
##
|
||||||
## Exception Handling
|
## Exception Handling
|
||||||
snippet as
|
snippet as
|
||||||
assert ${1:test} : "${2:Failure message}";${3}
|
assert ${1:test} : "${2:Failure message}";
|
||||||
snippet ca
|
snippet ca
|
||||||
catch(${1:Exception} ${2:e}) ${3}
|
catch(${1:Exception} ${2:e}) ${0}
|
||||||
snippet thr
|
snippet thr
|
||||||
throw
|
throw
|
||||||
snippet ths
|
snippet ths
|
||||||
throws
|
throws
|
||||||
snippet try
|
snippet try
|
||||||
try {
|
try {
|
||||||
${3}
|
${0}
|
||||||
} catch(${1:Exception} ${2:e}) {
|
} catch(${1:Exception} ${2:e}) {
|
||||||
}
|
}
|
||||||
snippet tryf
|
snippet tryf
|
||||||
try {
|
try {
|
||||||
${3}
|
${0}
|
||||||
} catch(${1:Exception} ${2:e}) {
|
} catch(${1:Exception} ${2:e}) {
|
||||||
} finally {
|
} finally {
|
||||||
}
|
}
|
||||||
##
|
##
|
||||||
## Find Methods
|
## Find Methods
|
||||||
snippet findall
|
snippet findall
|
||||||
List<${1:listName}> ${2:items} = ${1}.findAll();${3}
|
List<${1:listName}> ${2:items} = ${1}.findAll();
|
||||||
snippet findbyid
|
snippet findbyid
|
||||||
${1:var} ${2:item} = ${1}.findById(${3});${4}
|
${1:var} ${2:item} = ${1}.findById(${3});
|
||||||
##
|
##
|
||||||
## Javadocs
|
## Javadocs
|
||||||
snippet /**
|
snippet /**
|
||||||
/**
|
/**
|
||||||
* ${1}
|
* ${0}
|
||||||
*/
|
*/
|
||||||
snippet @au
|
snippet @au
|
||||||
@author `system("grep \`id -un\` /etc/passwd | cut -d \":\" -f5 | cut -d \",\" -f1")`
|
@author `system("grep \`id -un\` /etc/passwd | cut -d \":\" -f5 | cut -d \",\" -f1")`
|
||||||
snippet @br
|
snippet @br
|
||||||
@brief ${1:Description}
|
@brief ${0:Description}
|
||||||
snippet @fi
|
snippet @fi
|
||||||
@file ${1:`vim_snippets#Filename()`}.java
|
@file ${0:`vim_snippets#Filename()`}.java
|
||||||
snippet @pa
|
snippet @pa
|
||||||
@param ${1:param}
|
@param ${0:param}
|
||||||
snippet @re
|
snippet @re
|
||||||
@return ${1:param}
|
@return ${0:param}
|
||||||
##
|
##
|
||||||
## Logger Methods
|
## Logger Methods
|
||||||
snippet debug
|
snippet debug
|
||||||
Logger.debug(${1:param});${2}
|
Logger.debug(${1:param});
|
||||||
snippet error
|
snippet error
|
||||||
Logger.error(${1:param});${2}
|
Logger.error(${1:param});
|
||||||
snippet info
|
snippet info
|
||||||
Logger.info(${1:param});${2}
|
Logger.info(${1:param});
|
||||||
snippet warn
|
snippet warn
|
||||||
Logger.warn(${1:param});${2}
|
Logger.warn(${1:param});
|
||||||
##
|
##
|
||||||
## Loops
|
## Loops
|
||||||
snippet enfor
|
snippet enfor
|
||||||
for (${1} : ${2}) ${3}
|
for (${1} : ${2}) ${0}
|
||||||
snippet for
|
snippet for
|
||||||
for (${1}; ${2}; ${3}) ${4}
|
for (${1}; ${2}; ${3}) ${0}
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1}) ${2}
|
while (${1}) ${0}
|
||||||
##
|
##
|
||||||
## Main method
|
## Main method
|
||||||
snippet main
|
snippet main
|
||||||
public static void main (String[] args) {
|
public static void main (String[] args) {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
##
|
##
|
||||||
## Print Methods
|
## Print Methods
|
||||||
snippet print
|
snippet print
|
||||||
System.out.print("${1:Message}");
|
System.out.print("${0:Message}");
|
||||||
snippet printf
|
snippet printf
|
||||||
System.out.printf("${1:Message}", ${2:args});
|
System.out.printf("${1:Message}", ${0:args});
|
||||||
snippet println
|
snippet println
|
||||||
System.out.println(${1});
|
System.out.println(${0});
|
||||||
##
|
##
|
||||||
## Render Methods
|
## Render Methods
|
||||||
snippet ren
|
snippet ren
|
||||||
render(${1:param});${2}
|
render(${1:param});
|
||||||
snippet rena
|
snippet rena
|
||||||
renderArgs.put("${1}", ${2});${3}
|
renderArgs.put("${1}", ${2});
|
||||||
snippet renb
|
snippet renb
|
||||||
renderBinary(${1:param});${2}
|
renderBinary(${1:param});
|
||||||
snippet renj
|
snippet renj
|
||||||
renderJSON(${1:param});${2}
|
renderJSON(${1:param});
|
||||||
snippet renx
|
snippet renx
|
||||||
renderXml(${1:param});${2}
|
renderXml(${1:param});
|
||||||
##
|
##
|
||||||
## Setter and Getter Methods
|
## Setter and Getter Methods
|
||||||
snippet set
|
snippet set
|
||||||
${1:public} void set${3:}(${2:String} ${4:}){
|
${1:public} void set${3:}(${2:String} ${0:}){
|
||||||
this.$4 = $4;
|
this.$4 = $4;
|
||||||
}
|
}
|
||||||
snippet get
|
snippet get
|
||||||
${1:public} ${2:String} get${3:}(){
|
${1:public} ${2:String} get${3:}(){
|
||||||
return this.${4:};
|
return this.${0:};
|
||||||
}
|
}
|
||||||
##
|
##
|
||||||
## Terminate Methods or Loops
|
## Terminate Methods or Loops
|
||||||
@ -213,12 +213,12 @@ snippet br
|
|||||||
## Test Methods
|
## Test Methods
|
||||||
snippet t
|
snippet t
|
||||||
public void test${1:Name}() throws Exception {
|
public void test${1:Name}() throws Exception {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet test
|
snippet test
|
||||||
@Test
|
@Test
|
||||||
public void test${1:Name}() throws Exception {
|
public void test${1:Name}() throws Exception {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
##
|
##
|
||||||
## Utils
|
## Utils
|
||||||
@ -227,14 +227,14 @@ snippet Sc
|
|||||||
##
|
##
|
||||||
## Miscellaneous
|
## Miscellaneous
|
||||||
snippet action
|
snippet action
|
||||||
public static void ${1:index}(${2:args}) { ${3} }
|
public static void ${1:index}(${2:args}) { ${0} }
|
||||||
snippet rnf
|
snippet rnf
|
||||||
notFound(${1:param});${2}
|
notFound(${1:param});
|
||||||
snippet rnfin
|
snippet rnfin
|
||||||
notFoundIfNull(${1:param});${2}
|
notFoundIfNull(${1:param});
|
||||||
snippet rr
|
snippet rr
|
||||||
redirect(${1:param});${2}
|
redirect(${1:param});
|
||||||
snippet ru
|
snippet ru
|
||||||
unauthorized(${1:param});${2}
|
unauthorized(${1:param});
|
||||||
snippet unless
|
snippet unless
|
||||||
(unless=${1:param});${2}
|
(unless=${1:param});
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
snippet add
|
snippet add
|
||||||
${1:obj}.add('${2:selector expression}')${3}
|
${1:obj}.add('${2:selector expression}')
|
||||||
snippet addClass
|
snippet addClass
|
||||||
${1:obj}.addClass('${2:class name}')${3}
|
${1:obj}.addClass('${2:class name}')
|
||||||
snippet after
|
snippet after
|
||||||
${1:obj}.after('${2:Some text <b>and bold!</b>}')${3}
|
${1:obj}.after('${2:Some text <b>and bold!</b>}')
|
||||||
snippet ajax
|
snippet ajax
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '${1:mydomain.com/url}',
|
url: '${1:mydomain.com/url}',
|
||||||
@ -17,41 +17,41 @@ snippet ajax
|
|||||||
${6:// success callback}
|
${6:// success callback}
|
||||||
},
|
},
|
||||||
error: function (jqXHR, textStatus, errorThrown) {
|
error: function (jqXHR, textStatus, errorThrown) {
|
||||||
${7:// error callback}
|
${0:// error callback}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
snippet ajaxcomplete
|
snippet ajaxcomplete
|
||||||
${1:obj}.ajaxComplete(function (${1:e}, xhr, settings) {
|
${1:obj}.ajaxComplete(function (${1:e}, xhr, settings) {
|
||||||
${2:// callback}
|
${0:// callback}
|
||||||
});
|
});
|
||||||
snippet ajaxerror
|
snippet ajaxerror
|
||||||
${1:obj}.ajaxError(function (${1:e}, xhr, settings, thrownError) {
|
${1:obj}.ajaxError(function (${1:e}, xhr, settings, thrownError) {
|
||||||
${2:// error callback}
|
${2:// error callback}
|
||||||
});
|
});
|
||||||
${3}
|
${0}
|
||||||
snippet ajaxget
|
snippet ajaxget
|
||||||
$.get('${1:mydomain.com/url}',
|
$.get('${1:mydomain.com/url}',
|
||||||
${2:{ param1: value1 },}
|
${2:{ param1: value1 },}
|
||||||
function (data, textStatus, jqXHR) {
|
function (data, textStatus, jqXHR) {
|
||||||
${3:// success callback}
|
${0:// success callback}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
snippet ajaxpost
|
snippet ajaxpost
|
||||||
$.post('${1:mydomain.com/url}',
|
$.post('${1:mydomain.com/url}',
|
||||||
${2:{ param1: value1 },}
|
${2:{ param1: value1 },}
|
||||||
function (data, textStatus, jqXHR) {
|
function (data, textStatus, jqXHR) {
|
||||||
${3:// success callback}
|
${0:// success callback}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
snippet ajaxprefilter
|
snippet ajaxprefilter
|
||||||
$.ajaxPrefilter(function (${1:options}, ${2:originalOptions}, jqXHR) {
|
$.ajaxPrefilter(function (${1:options}, ${2:originalOptions}, jqXHR) {
|
||||||
${3: // Modify options, control originalOptions, store jqXHR, etc}
|
${0: // Modify options, control originalOptions, store jqXHR, etc}
|
||||||
});
|
});
|
||||||
snippet ajaxsend
|
snippet ajaxsend
|
||||||
${1:obj}.ajaxSend(function (${1:request, settings}) {
|
${1:obj}.ajaxSend(function (${1:request, settings}) {
|
||||||
${2:// error callback}
|
${2:// error callback}
|
||||||
});
|
});
|
||||||
${3}
|
${0}
|
||||||
snippet ajaxsetup
|
snippet ajaxsetup
|
||||||
$.ajaxSetup({
|
$.ajaxSetup({
|
||||||
url: "${1:mydomain.com/url}",
|
url: "${1:mydomain.com/url}",
|
||||||
@ -65,525 +65,525 @@ snippet ajaxsetup
|
|||||||
${6:// success callback}
|
${6:// success callback}
|
||||||
},
|
},
|
||||||
error: function (jqXHR, textStatus, errorThrown) {
|
error: function (jqXHR, textStatus, errorThrown) {
|
||||||
${7:// error callback}
|
${0:// error callback}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
snippet ajaxstart
|
snippet ajaxstart
|
||||||
$.ajaxStart(function () {
|
$.ajaxStart(function () {
|
||||||
${1:// handler for when an AJAX call is started and no other AJAX calls are in progress};
|
${1:// handler for when an AJAX call is started and no other AJAX calls are in progress};
|
||||||
});
|
});
|
||||||
${2}
|
${0}
|
||||||
snippet ajaxstop
|
snippet ajaxstop
|
||||||
$.ajaxStop(function () {
|
$.ajaxStop(function () {
|
||||||
${1:// handler for when all AJAX calls have been completed};
|
${1:// handler for when all AJAX calls have been completed};
|
||||||
});
|
});
|
||||||
${2}
|
${0}
|
||||||
snippet ajaxsuccess
|
snippet ajaxsuccess
|
||||||
$.ajaxSuccess(function (${1:e}, xhr, settings) {
|
$.ajaxSuccess(function (${1:e}, xhr, settings) {
|
||||||
${2:// handler for when any AJAX call is successfully completed};
|
${2:// handler for when any AJAX call is successfully completed};
|
||||||
});
|
});
|
||||||
${2}
|
${0}
|
||||||
snippet andself
|
snippet andself
|
||||||
${1:obj}.andSelf()${2}
|
${1:obj}.andSelf()
|
||||||
snippet animate
|
snippet animate
|
||||||
${1:obj}.animate({${2:param1: value1, param2: value2}}, ${3:speed})${4}
|
${1:obj}.animate({${2:param1: value1, param2: value2}}, ${3:speed})
|
||||||
snippet append
|
snippet append
|
||||||
${1:obj}.append('${2:Some text <b>and bold!</b>}')${3}
|
${1:obj}.append('${2:Some text <b>and bold!</b>}')
|
||||||
snippet appendTo
|
snippet appendTo
|
||||||
${1:obj}.appendTo('${2:selector expression}')${3}
|
${1:obj}.appendTo('${2:selector expression}')
|
||||||
snippet attr
|
snippet attr
|
||||||
${1:obj}.attr('${2:attribute}', '${3:value}')${4}
|
${1:obj}.attr('${2:attribute}', '${3:value}')
|
||||||
snippet attrm
|
snippet attrm
|
||||||
${1:obj}.attr({'${2:attr1}': '${3:value1}', '${4:attr2}': '${5:value2}'})${6}
|
${1:obj}.attr({'${2:attr1}': '${3:value1}', '${4:attr2}': '${5:value2}'})
|
||||||
snippet before
|
snippet before
|
||||||
${1:obj}.before('${2:Some text <b>and bold!</b>}')${3}
|
${1:obj}.before('${2:Some text <b>and bold!</b>}')
|
||||||
snippet bind
|
snippet bind
|
||||||
${1:obj}.bind('${2:event name}', function (${3:e}) {
|
${1:obj}.bind('${2:event name}', function (${3:e}) {
|
||||||
${4:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet blur
|
snippet blur
|
||||||
${1:obj}.blur(function (${2:e}) {
|
${1:obj}.blur(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet C
|
snippet C
|
||||||
$.Callbacks()${1}
|
$.Callbacks()
|
||||||
snippet Cadd
|
snippet Cadd
|
||||||
${1:callbacks}.add(${2:callbacks})${3}
|
${1:callbacks}.add(${2:callbacks})
|
||||||
snippet Cdis
|
snippet Cdis
|
||||||
${1:callbacks}.disable()${2}
|
${1:callbacks}.disable()
|
||||||
snippet Cempty
|
snippet Cempty
|
||||||
${1:callbacks}.empty()${2}
|
${1:callbacks}.empty()
|
||||||
snippet Cfire
|
snippet Cfire
|
||||||
${1:callbacks}.fire(${2:args})${3}
|
${1:callbacks}.fire(${2:args})
|
||||||
snippet Cfired
|
snippet Cfired
|
||||||
${1:callbacks}.fired()${2}
|
${1:callbacks}.fired()
|
||||||
snippet Cfirew
|
snippet Cfirew
|
||||||
${1:callbacks}.fireWith(${2:this}, ${3:args})${4}
|
${1:callbacks}.fireWith(${2:this}, ${3:args})
|
||||||
snippet Chas
|
snippet Chas
|
||||||
${1:callbacks}.has(${2:callback})${3}
|
${1:callbacks}.has(${2:callback})
|
||||||
snippet Clock
|
snippet Clock
|
||||||
${1:callbacks}.lock()${2}
|
${1:callbacks}.lock()
|
||||||
snippet Clocked
|
snippet Clocked
|
||||||
${1:callbacks}.locked()${2}
|
${1:callbacks}.locked()
|
||||||
snippet Crem
|
snippet Crem
|
||||||
${1:callbacks}.remove(${2:callbacks})${3}
|
${1:callbacks}.remove(${2:callbacks})
|
||||||
snippet change
|
snippet change
|
||||||
${1:obj}.change(function (${2:e}) {
|
${1:obj}.change(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet children
|
snippet children
|
||||||
${1:obj}.children('${2:selector expression}')${3}
|
${1:obj}.children('${2:selector expression}')
|
||||||
snippet clearq
|
snippet clearq
|
||||||
${1:obj}.clearQueue(${2:'queue name'})${3}
|
${1:obj}.clearQueue(${2:'queue name'})
|
||||||
snippet click
|
snippet click
|
||||||
${1:obj}.click(function (${2:e}) {
|
${1:obj}.click(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet clone
|
snippet clone
|
||||||
${1:obj}.clone()${2}
|
${1:obj}.clone()
|
||||||
snippet contains
|
snippet contains
|
||||||
$.contains(${1:container}, ${2:contents});
|
$.contains(${1:container}, ${0:contents});
|
||||||
snippet css
|
snippet css
|
||||||
${1:obj}.css('${2:attribute}', '${3:value}')${4}
|
${1:obj}.css('${2:attribute}', '${3:value}')
|
||||||
snippet csshooks
|
snippet csshooks
|
||||||
$.cssHooks['${1:CSS prop}'] = {
|
$.cssHooks['${1:CSS prop}'] = {
|
||||||
get: function (elem, computed, extra) {
|
get: function (elem, computed, extra) {
|
||||||
${2: // handle getting the CSS property}
|
${2: // handle getting the CSS property}
|
||||||
},
|
},
|
||||||
set: function (elem, value) {
|
set: function (elem, value) {
|
||||||
${3: // handle setting the CSS value}
|
${0: // handle setting the CSS value}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
snippet cssm
|
snippet cssm
|
||||||
${1:obj}.css({${2:attribute1}: '${3:value1}', ${4:attribute2}: '${5:value2}'})${6}
|
${1:obj}.css({${2:attribute1}: '${3:value1}', ${4:attribute2}: '${5:value2}'})
|
||||||
snippet D
|
snippet D
|
||||||
$.Deferred()${1}
|
$.Deferred()
|
||||||
snippet Dalways
|
snippet Dalways
|
||||||
${1:deferred}.always(${2:callbacks})${3}
|
${1:deferred}.always(${2:callbacks})
|
||||||
snippet Ddone
|
snippet Ddone
|
||||||
${1:deferred}.done(${2:callbacks})${3}
|
${1:deferred}.done(${2:callbacks})
|
||||||
snippet Dfail
|
snippet Dfail
|
||||||
${1:deferred}.fail(${2:callbacks})${3}
|
${1:deferred}.fail(${2:callbacks})
|
||||||
snippet Disrej
|
snippet Disrej
|
||||||
${1:deferred}.isRejected()${2}
|
${1:deferred}.isRejected()
|
||||||
snippet Disres
|
snippet Disres
|
||||||
${1:deferred}.isResolved()${2}
|
${1:deferred}.isResolved()
|
||||||
snippet Dnotify
|
snippet Dnotify
|
||||||
${1:deferred}.notify(${2:args})${3}
|
${1:deferred}.notify(${2:args})
|
||||||
snippet Dnotifyw
|
snippet Dnotifyw
|
||||||
${1:deferred}.notifyWith(${2:this}, ${3:args})${4}
|
${1:deferred}.notifyWith(${2:this}, ${3:args})
|
||||||
snippet Dpipe
|
snippet Dpipe
|
||||||
${1:deferred}.then(${2:doneFilter}, ${3:failFilter}, ${4:progressFilter})${5}
|
${1:deferred}.then(${2:doneFilter}, ${3:failFilter}, ${4:progressFilter})
|
||||||
snippet Dprog
|
snippet Dprog
|
||||||
${1:deferred}.progress(${2:callbacks})${3}
|
${1:deferred}.progress(${2:callbacks})
|
||||||
snippet Dprom
|
snippet Dprom
|
||||||
${1:deferred}.promise(${2:target})${3}
|
${1:deferred}.promise(${2:target})
|
||||||
snippet Drej
|
snippet Drej
|
||||||
${1:deferred}.reject(${2:args})${3}
|
${1:deferred}.reject(${2:args})
|
||||||
snippet Drejw
|
snippet Drejw
|
||||||
${1:deferred}.rejectWith(${2:this}, ${3:args})${4}
|
${1:deferred}.rejectWith(${2:this}, ${3:args})
|
||||||
snippet Dres
|
snippet Dres
|
||||||
${1:deferred}.resolve(${2:args})${3}
|
${1:deferred}.resolve(${2:args})
|
||||||
snippet Dresw
|
snippet Dresw
|
||||||
${1:deferred}.resolveWith(${2:this}, ${3:args})${4}
|
${1:deferred}.resolveWith(${2:this}, ${3:args})
|
||||||
snippet Dstate
|
snippet Dstate
|
||||||
${1:deferred}.state()${2}
|
${1:deferred}.state()
|
||||||
snippet Dthen
|
snippet Dthen
|
||||||
${1:deferred}.then(${2:doneCallbacks}, ${3:failCallbacks}, ${4:progressCallbacks})${5}
|
${1:deferred}.then(${2:doneCallbacks}, ${3:failCallbacks}, ${4:progressCallbacks})
|
||||||
snippet Dwhen
|
snippet Dwhen
|
||||||
$.when(${1:deferreds})${2}
|
$.when(${1:deferreds})
|
||||||
snippet data
|
snippet data
|
||||||
${1:obj}.data(${2:obj})${3}
|
${1:obj}.data(${2:obj})
|
||||||
snippet dataa
|
snippet dataa
|
||||||
$.data('${1:selector expression}', '${2:key}'${3:, 'value'})${4}
|
$.data('${1:selector expression}', '${2:key}'${3:, 'value'})
|
||||||
snippet dblclick
|
snippet dblclick
|
||||||
${1:obj}.dblclick(function (${2:e}) {
|
${1:obj}.dblclick(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet delay
|
snippet delay
|
||||||
${1:obj}.delay('${2:slow/400/fast}'${3:, 'queue name'})${4}
|
${1:obj}.delay('${2:slow/400/fast}'${3:, 'queue name'})
|
||||||
snippet dele
|
snippet dele
|
||||||
${1:obj}.delegate('${2:selector expression}', '${3:event name}', function (${4:e}) {
|
${1:obj}.delegate('${2:selector expression}', '${3:event name}', function (${4:e}) {
|
||||||
${5:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet deq
|
snippet deq
|
||||||
${1:obj}.dequeue(${2:'queue name'})${3}
|
${1:obj}.dequeue(${2:'queue name'})
|
||||||
snippet deqq
|
snippet deqq
|
||||||
$.dequeue('${1:selector expression}'${2:, 'queue name'})${3}
|
$.dequeue('${1:selector expression}'${2:, 'queue name'})
|
||||||
snippet detach
|
snippet detach
|
||||||
${1:obj}.detach('${2:selector expression}')${3}
|
${1:obj}.detach('${2:selector expression}')
|
||||||
snippet die
|
snippet die
|
||||||
${1:obj}.die(${2:event}, ${3:handler})${4}
|
${1:obj}.die(${2:event}, ${3:handler})
|
||||||
snippet each
|
snippet each
|
||||||
${1:obj}.each(function (index) {
|
${1:obj}.each(function (index) {
|
||||||
${2:this.innerHTML = this + " is the element, " + index + " is the position";}
|
${0:this.innerHTML = this + " is the element, " + index + " is the position";}
|
||||||
});
|
});
|
||||||
snippet el
|
snippet el
|
||||||
$('<${1}/>'${2:, {}})${3}
|
$('<${1}/>'${2:, {}})
|
||||||
snippet eltrim
|
snippet eltrim
|
||||||
$.trim('${1:string}')${2}
|
$.trim('${1:string}')
|
||||||
snippet empty
|
snippet empty
|
||||||
${1:obj}.empty()${2}
|
${1:obj}.empty()
|
||||||
snippet end
|
snippet end
|
||||||
${1:obj}.end()${2}
|
${1:obj}.end()
|
||||||
snippet eq
|
snippet eq
|
||||||
${1:obj}.eq(${2:element index})${3}
|
${1:obj}.eq(${2:element index})
|
||||||
snippet error
|
snippet error
|
||||||
${1:obj}.error(function (${2:e}) {
|
${1:obj}.error(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet eventsmap
|
snippet eventsmap
|
||||||
{
|
{
|
||||||
:f${1}
|
:f${0}
|
||||||
}
|
}
|
||||||
snippet extend
|
snippet extend
|
||||||
$.extend(${1:true, }${2:target}, ${3:obj})${4}
|
$.extend(${1:true, }${2:target}, ${3:obj})
|
||||||
snippet fadein
|
snippet fadein
|
||||||
${1:obj}.fadeIn('${2:slow/400/fast}')${3}
|
${1:obj}.fadeIn('${2:slow/400/fast}')
|
||||||
snippet fadeinc
|
snippet fadeinc
|
||||||
${1:obj}.fadeIn('slow/400/fast', function () {
|
${1:obj}.fadeIn('slow/400/fast', function () {
|
||||||
${2:// callback};
|
${0:// callback};
|
||||||
});
|
});
|
||||||
snippet fadeout
|
snippet fadeout
|
||||||
${1:obj}.fadeOut('${2:slow/400/fast}')${3}
|
${1:obj}.fadeOut('${2:slow/400/fast}')
|
||||||
snippet fadeoutc
|
snippet fadeoutc
|
||||||
${1:obj}.fadeOut('slow/400/fast', function () {
|
${1:obj}.fadeOut('slow/400/fast', function () {
|
||||||
${2:// callback};
|
${0:// callback};
|
||||||
});
|
});
|
||||||
snippet fadeto
|
snippet fadeto
|
||||||
${1:obj}.fadeTo('${2:slow/400/fast}', ${3:0.5})${4}
|
${1:obj}.fadeTo('${2:slow/400/fast}', ${3:0.5})
|
||||||
snippet fadetoc
|
snippet fadetoc
|
||||||
${1:obj}.fadeTo('slow/400/fast', ${2:0.5}, function () {
|
${1:obj}.fadeTo('slow/400/fast', ${2:0.5}, function () {
|
||||||
${3:// callback};
|
${0:// callback};
|
||||||
});
|
});
|
||||||
snippet filter
|
snippet filter
|
||||||
${1:obj}.filter('${2:selector expression}')${3}
|
${1:obj}.filter('${2:selector expression}')
|
||||||
snippet filtert
|
snippet filtert
|
||||||
${1:obj}.filter(function (${2:index}) {
|
${1:obj}.filter(function (${2:index}) {
|
||||||
${3}
|
${3}
|
||||||
})${4}
|
})
|
||||||
snippet find
|
snippet find
|
||||||
${1:obj}.find('${2:selector expression}')${3}
|
${1:obj}.find('${2:selector expression}')
|
||||||
snippet focus
|
snippet focus
|
||||||
${1:obj}.focus(function (${2:e}) {
|
${1:obj}.focus(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet focusin
|
snippet focusin
|
||||||
${1:obj}.focusIn(function (${2:e}) {
|
${1:obj}.focusIn(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet focusout
|
snippet focusout
|
||||||
${1:obj}.focusOut(function (${2:e}) {
|
${1:obj}.focusOut(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet get
|
snippet get
|
||||||
${1:obj}.get(${2:element index})${3}
|
${1:obj}.get(${2:element index})
|
||||||
snippet getjson
|
snippet getjson
|
||||||
$.getJSON('${1:mydomain.com/url}',
|
$.getJSON('${1:mydomain.com/url}',
|
||||||
${2:{ param1: value1 },}
|
${2:{ param1: value1 },}
|
||||||
function (data, textStatus, jqXHR) {
|
function (data, textStatus, jqXHR) {
|
||||||
${3:// success callback}
|
${0:// success callback}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
snippet getscript
|
snippet getscript
|
||||||
$.getScript('${1:mydomain.com/url}', function (script, textStatus, jqXHR) {
|
$.getScript('${1:mydomain.com/url}', function (script, textStatus, jqXHR) {
|
||||||
${2:// callback}
|
${0:// callback}
|
||||||
});
|
});
|
||||||
snippet grep
|
snippet grep
|
||||||
$.grep(${1:array}, function (item, index) {
|
$.grep(${1:array}, function (item, index) {
|
||||||
${2}
|
${2}
|
||||||
}${3:, true});
|
}${0:, true});
|
||||||
snippet hasc
|
snippet hasc
|
||||||
${1:obj}.hasClass('${2:className}')${3}
|
${1:obj}.hasClass('${2:className}')
|
||||||
snippet hasd
|
snippet hasd
|
||||||
$.hasData('${1:selector expression}');
|
$.hasData('${0:selector expression}');
|
||||||
snippet height
|
snippet height
|
||||||
${1:obj}.height(${2:integer})${3}
|
${1:obj}.height(${2:integer})
|
||||||
snippet hide
|
snippet hide
|
||||||
${1:obj}.hide('${2:slow/400/fast}')${3}
|
${1:obj}.hide('${2:slow/400/fast}')
|
||||||
snippet hidec
|
snippet hidec
|
||||||
${1:obj}.hide('${2:slow/400/fast}', function () {
|
${1:obj}.hide('${2:slow/400/fast}', function () {
|
||||||
${3:// callback}
|
${0:// callback}
|
||||||
});
|
});
|
||||||
snippet hover
|
snippet hover
|
||||||
${1:obj}.hover(function (${2:e}) {
|
${1:obj}.hover(function (${2:e}) {
|
||||||
${3:// event handler}
|
${3:// event handler}
|
||||||
}, function ($2) {
|
}, function ($2) {
|
||||||
${4:// event handler}
|
${4:// event handler}
|
||||||
});${5}
|
});
|
||||||
snippet html
|
snippet html
|
||||||
${1:obj}.html('${2:Some text <b>and bold!</b>}')${3}
|
${1:obj}.html('${2:Some text <b>and bold!</b>}')
|
||||||
snippet inarr
|
snippet inarr
|
||||||
$.inArray(${1:value}, ${2:array});
|
$.inArray(${1:value}, ${0:array});
|
||||||
snippet insa
|
snippet insa
|
||||||
${1:obj}.insertAfter('${2:selector expression}')${3}
|
${1:obj}.insertAfter('${2:selector expression}')
|
||||||
snippet insb
|
snippet insb
|
||||||
${1:obj}.insertBefore('${2:selector expression}')${3}
|
${1:obj}.insertBefore('${2:selector expression}')
|
||||||
snippet is
|
snippet is
|
||||||
${1:obj}.is('${2:selector expression}')${3}
|
${1:obj}.is('${2:selector expression}')
|
||||||
snippet isarr
|
snippet isarr
|
||||||
$.isArray(${1:obj})${2}
|
$.isArray(${1:obj})
|
||||||
snippet isempty
|
snippet isempty
|
||||||
$.isEmptyObject(${1:obj})${2}
|
$.isEmptyObject(${1:obj})
|
||||||
snippet isfunc
|
snippet isfunc
|
||||||
$.isFunction(${1:obj})${2}
|
$.isFunction(${1:obj})
|
||||||
snippet isnum
|
snippet isnum
|
||||||
$.isNumeric(${1:value})${2}
|
$.isNumeric(${1:value})
|
||||||
snippet isobj
|
snippet isobj
|
||||||
$.isPlainObject(${1:obj})${2}
|
$.isPlainObject(${1:obj})
|
||||||
snippet iswin
|
snippet iswin
|
||||||
$.isWindow(${1:obj})${2}
|
$.isWindow(${1:obj})
|
||||||
snippet isxml
|
snippet isxml
|
||||||
$.isXMLDoc(${1:node})${2}
|
$.isXMLDoc(${1:node})
|
||||||
snippet jj
|
snippet jj
|
||||||
$('${1:selector}')${2}
|
$('${1:selector}')
|
||||||
snippet kdown
|
snippet kdown
|
||||||
${1:obj}.keydown(function (${2:e}) {
|
${1:obj}.keydown(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet kpress
|
snippet kpress
|
||||||
${1:obj}.keypress(function (${2:e}) {
|
${1:obj}.keypress(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet kup
|
snippet kup
|
||||||
${1:obj}.keyup(function (${2:e}) {
|
${1:obj}.keyup(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet last
|
snippet last
|
||||||
${1:obj}.last('${1:selector expression}')${3}
|
${1:obj}.last('${1:selector expression}')
|
||||||
snippet live
|
snippet live
|
||||||
${1:obj}.live('${2:events}', function (${3:e}) {
|
${1:obj}.live('${2:events}', function (${3:e}) {
|
||||||
${4:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet load
|
snippet load
|
||||||
${1:obj}.load(function (${2:e}) {
|
${1:obj}.load(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet loadf
|
snippet loadf
|
||||||
${1:obj}.load('${2:mydomain.com/url}',
|
${1:obj}.load('${2:mydomain.com/url}',
|
||||||
${2:{ param1: value1 },}
|
${2:{ param1: value1 },}
|
||||||
function (responseText, textStatus, xhr) {
|
function (responseText, textStatus, xhr) {
|
||||||
${3:// success callback}
|
${0:// success callback}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
snippet makearray
|
snippet makearray
|
||||||
$.makeArray(${1:obj});
|
$.makeArray(${0:obj});
|
||||||
snippet map
|
snippet map
|
||||||
${1:obj}.map(function (${2:index}, ${3:element}) {
|
${1:obj}.map(function (${2:index}, ${3:element}) {
|
||||||
${4:// callback}
|
${0:// callback}
|
||||||
});
|
});
|
||||||
snippet mapp
|
snippet mapp
|
||||||
$.map(${1:arrayOrObject}, function (${2:value}, ${3:indexOrKey}) {
|
$.map(${1:arrayOrObject}, function (${2:value}, ${3:indexOrKey}) {
|
||||||
${4:// callback}
|
${0:// callback}
|
||||||
});
|
});
|
||||||
snippet merge
|
snippet merge
|
||||||
$.merge(${1:target}, ${2:original});
|
$.merge(${1:target}, ${0:original});
|
||||||
snippet mdown
|
snippet mdown
|
||||||
${1:obj}.mousedown(function (${2:e}) {
|
${1:obj}.mousedown(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet menter
|
snippet menter
|
||||||
${1:obj}.mouseenter(function (${2:e}) {
|
${1:obj}.mouseenter(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet mleave
|
snippet mleave
|
||||||
${1:obj}.mouseleave(function (${2:e}) {
|
${1:obj}.mouseleave(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet mmove
|
snippet mmove
|
||||||
${1:obj}.mousemove(function (${2:e}) {
|
${1:obj}.mousemove(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet mout
|
snippet mout
|
||||||
${1:obj}.mouseout(function (${2:e}) {
|
${1:obj}.mouseout(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet mover
|
snippet mover
|
||||||
${1:obj}.mouseover(function (${2:e}) {
|
${1:obj}.mouseover(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet mup
|
snippet mup
|
||||||
${1:obj}.mouseup(function (${2:e}) {
|
${1:obj}.mouseup(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet next
|
snippet next
|
||||||
${1:obj}.next('${2:selector expression}')${3}
|
${1:obj}.next('${2:selector expression}')
|
||||||
snippet nexta
|
snippet nexta
|
||||||
${1:obj}.nextAll('${2:selector expression}')${3}
|
${1:obj}.nextAll('${2:selector expression}')
|
||||||
snippet nextu
|
snippet nextu
|
||||||
${1:obj}.nextUntil('${2:selector expression}'${3:, 'filter expression'})${4}
|
${1:obj}.nextUntil('${2:selector expression}'${3:, 'filter expression'})
|
||||||
snippet not
|
snippet not
|
||||||
${1:obj}.not('${2:selector expression}')${3}
|
${1:obj}.not('${2:selector expression}')
|
||||||
snippet off
|
snippet off
|
||||||
${1:obj}.off('${2:events}', '${3:selector expression}'${4:, handler})${5}
|
${1:obj}.off('${2:events}', '${3:selector expression}'${4:, handler})
|
||||||
snippet offset
|
snippet offset
|
||||||
${1:obj}.offset()${2}
|
${1:obj}.offset()
|
||||||
snippet offsetp
|
snippet offsetp
|
||||||
${1:obj}.offsetParent()${2}
|
${1:obj}.offsetParent()
|
||||||
snippet on
|
snippet on
|
||||||
${1:obj}.on('${2:events}', '${3:selector expression}', function (${4:e}) {
|
${1:obj}.on('${2:events}', '${3:selector expression}', function (${4:e}) {
|
||||||
${5:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet one
|
snippet one
|
||||||
${1:obj}.one('${2:event name}', function (${3:e}) {
|
${1:obj}.one('${2:event name}', function (${3:e}) {
|
||||||
${4:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet outerh
|
snippet outerh
|
||||||
${1:obj}.outerHeight()${2}
|
${1:obj}.outerHeight()
|
||||||
snippet outerw
|
snippet outerw
|
||||||
${1:obj}.outerWidth()${2}
|
${1:obj}.outerWidth()
|
||||||
snippet param
|
snippet param
|
||||||
$.param(${1:obj})${2}
|
$.param(${1:obj})
|
||||||
snippet parent
|
snippet parent
|
||||||
${1:obj}.parent('${2:selector expression}')${3}
|
${1:obj}.parent('${2:selector expression}')
|
||||||
snippet parents
|
snippet parents
|
||||||
${1:obj}.parents('${2:selector expression}')${3}
|
${1:obj}.parents('${2:selector expression}')
|
||||||
snippet parentsu
|
snippet parentsu
|
||||||
${1:obj}.parentsUntil('${2:selector expression}'${3:, 'filter expression'})${4}
|
${1:obj}.parentsUntil('${2:selector expression}'${3:, 'filter expression'})
|
||||||
snippet parsejson
|
snippet parsejson
|
||||||
$.parseJSON(${1:data})${2}
|
$.parseJSON(${1:data})
|
||||||
snippet parsexml
|
snippet parsexml
|
||||||
$.parseXML(${1:data})${2}
|
$.parseXML(${1:data})
|
||||||
snippet pos
|
snippet pos
|
||||||
${1:obj}.position()${2}
|
${1:obj}.position()
|
||||||
snippet prepend
|
snippet prepend
|
||||||
${1:obj}.prepend('${2:Some text <b>and bold!</b>}')${3}
|
${1:obj}.prepend('${2:Some text <b>and bold!</b>}')
|
||||||
snippet prependto
|
snippet prependto
|
||||||
${1:obj}.prependTo('${2:selector expression}')${3}
|
${1:obj}.prependTo('${2:selector expression}')
|
||||||
snippet prev
|
snippet prev
|
||||||
${1:obj}.prev('${2:selector expression}')${3}
|
${1:obj}.prev('${2:selector expression}')
|
||||||
snippet preva
|
snippet preva
|
||||||
${1:obj}.prevAll('${2:selector expression}')${3}
|
${1:obj}.prevAll('${2:selector expression}')
|
||||||
snippet prevu
|
snippet prevu
|
||||||
${1:obj}.prevUntil('${2:selector expression}'${3:, 'filter expression'})${4}
|
${1:obj}.prevUntil('${2:selector expression}'${3:, 'filter expression'})
|
||||||
snippet promise
|
snippet promise
|
||||||
${1:obj}.promise(${2:'fx'}, ${3:target})${4}
|
${1:obj}.promise(${2:'fx'}, ${3:target})
|
||||||
snippet prop
|
snippet prop
|
||||||
${1:obj}.prop('${2:property name}')${3}
|
${1:obj}.prop('${2:property name}')
|
||||||
snippet proxy
|
snippet proxy
|
||||||
$.proxy(${1:function}, ${2:this})${3}
|
$.proxy(${1:function}, ${2:this})
|
||||||
snippet pushstack
|
snippet pushstack
|
||||||
${1:obj}.pushStack(${2:elements})${3}
|
${1:obj}.pushStack(${2:elements})
|
||||||
snippet queue
|
snippet queue
|
||||||
${1:obj}.queue(${2:name}${3:, newQueue})${4}
|
${1:obj}.queue(${2:name}${3:, newQueue})
|
||||||
snippet queuee
|
snippet queuee
|
||||||
$.queue(${1:element}${2:, name}${3:, newQueue})${4}
|
$.queue(${1:element}${2:, name}${3:, newQueue})
|
||||||
snippet ready
|
snippet ready
|
||||||
$(function () {
|
$(function () {
|
||||||
${1}
|
${0}
|
||||||
});
|
});
|
||||||
snippet rem
|
snippet rem
|
||||||
${1:obj}.remove()${2}
|
${1:obj}.remove()
|
||||||
snippet rema
|
snippet rema
|
||||||
${1:obj}.removeAttr('${2:attribute name}')${3}
|
${1:obj}.removeAttr('${2:attribute name}')
|
||||||
snippet remc
|
snippet remc
|
||||||
${1:obj}.removeClass('${2:class name}')${3}
|
${1:obj}.removeClass('${2:class name}')
|
||||||
snippet remd
|
snippet remd
|
||||||
${1:obj}.removeData('${2:key name}')${3}
|
${1:obj}.removeData('${2:key name}')
|
||||||
snippet remdd
|
snippet remdd
|
||||||
$.removeData(${1:element}${2:, 'key name}')${3}
|
$.removeData(${1:element}${2:, 'key name}')
|
||||||
snippet remp
|
snippet remp
|
||||||
${1:obj}.removeProp('${2:property name}')${3}
|
${1:obj}.removeProp('${2:property name}')
|
||||||
snippet repa
|
snippet repa
|
||||||
${1:obj}.replaceAll(${2:target})${3}
|
${1:obj}.replaceAll(${2:target})
|
||||||
snippet repw
|
snippet repw
|
||||||
${1:obj}.replaceWith(${2:content})${3}
|
${1:obj}.replaceWith(${2:content})
|
||||||
snippet reset
|
snippet reset
|
||||||
${1:obj}.reset(function (${2:e}) {
|
${1:obj}.reset(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet resize
|
snippet resize
|
||||||
${1:obj}.resize(function (${2:e}) {
|
${1:obj}.resize(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet scroll
|
snippet scroll
|
||||||
${1:obj}.scroll(function (${2:e}) {
|
${1:obj}.scroll(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet scrolll
|
snippet scrolll
|
||||||
${1:obj}.scrollLeft(${2:value})${3}
|
${1:obj}.scrollLeft(${2:value})
|
||||||
snippet scrollt
|
snippet scrollt
|
||||||
${1:obj}.scrollTop(${2:value})${3}
|
${1:obj}.scrollTop(${2:value})
|
||||||
snippet sdown
|
snippet sdown
|
||||||
${1:obj}.slideDown('${2:slow/400/fast}')${3}
|
${1:obj}.slideDown('${2:slow/400/fast}')
|
||||||
snippet sdownc
|
snippet sdownc
|
||||||
${1:obj}.slideDown('${2:slow/400/fast}', function () {
|
${1:obj}.slideDown('${2:slow/400/fast}', function () {
|
||||||
${3:// callback};
|
${0:// callback};
|
||||||
});
|
});
|
||||||
snippet select
|
snippet select
|
||||||
${1:obj}.select(function (${2:e}) {
|
${1:obj}.select(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet serialize
|
snippet serialize
|
||||||
${1:obj}.serialize()${2}
|
${1:obj}.serialize()
|
||||||
snippet serializea
|
snippet serializea
|
||||||
${1:obj}.serializeArray()${2}
|
${1:obj}.serializeArray()
|
||||||
snippet show
|
snippet show
|
||||||
${1:obj}.show('${2:slow/400/fast}')${3}
|
${1:obj}.show('${2:slow/400/fast}')
|
||||||
snippet showc
|
snippet showc
|
||||||
${1:obj}.show('${2:slow/400/fast}', function () {
|
${1:obj}.show('${2:slow/400/fast}', function () {
|
||||||
${3:// callback}
|
${0:// callback}
|
||||||
});
|
});
|
||||||
snippet sib
|
snippet sib
|
||||||
${1:obj}.siblings('${2:selector expression}')${3}
|
${1:obj}.siblings('${2:selector expression}')
|
||||||
snippet size
|
snippet size
|
||||||
${1:obj}.size()${2}
|
${1:obj}.size()
|
||||||
snippet slice
|
snippet slice
|
||||||
${1:obj}.slice(${2:start}${3:, end})${4}
|
${1:obj}.slice(${2:start}${3:, end})
|
||||||
snippet stoggle
|
snippet stoggle
|
||||||
${1:obj}.slideToggle('${2:slow/400/fast}')${3}
|
${1:obj}.slideToggle('${2:slow/400/fast}')
|
||||||
snippet stop
|
snippet stop
|
||||||
${1:obj}.stop('${2:queue}', ${3:false}, ${4:false})${5}
|
${1:obj}.stop('${2:queue}', ${3:false}, ${4:false})
|
||||||
snippet submit
|
snippet submit
|
||||||
${1:obj}.submit(function (${2:e}) {
|
${1:obj}.submit(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet sup
|
snippet sup
|
||||||
${1:obj}.slideUp('${2:slow/400/fast}')${3}
|
${1:obj}.slideUp('${2:slow/400/fast}')
|
||||||
snippet supc
|
snippet supc
|
||||||
${1:obj}.slideUp('${2:slow/400/fast}', function () {
|
${1:obj}.slideUp('${2:slow/400/fast}', function () {
|
||||||
${3:// callback};
|
${0:// callback};
|
||||||
});
|
});
|
||||||
snippet text
|
snippet text
|
||||||
${1:obj}.text(${2:'some text'})${3}
|
${1:obj}.text(${2:'some text'})
|
||||||
snippet this
|
snippet this
|
||||||
$(this)${1}
|
$(this)
|
||||||
snippet toarr
|
snippet toarr
|
||||||
${1:obj}.toArray()
|
${0:obj}.toArray()
|
||||||
snippet tog
|
snippet tog
|
||||||
${1:obj}.toggle(function (${2:e}) {
|
${1:obj}.toggle(function (${2:e}) {
|
||||||
${3:// event handler}
|
${3:// event handler}
|
||||||
}, function ($2) {
|
}, function ($2) {
|
||||||
${4:// event handler}
|
${4:// event handler}
|
||||||
});
|
});
|
||||||
${4}
|
${0}
|
||||||
snippet togclass
|
snippet togclass
|
||||||
${1:obj}.toggleClass('${2:class name}')${3}
|
${1:obj}.toggleClass('${2:class name}')
|
||||||
snippet togsh
|
snippet togsh
|
||||||
${1:obj}.toggle('${2:slow/400/fast}')${3}
|
${1:obj}.toggle('${2:slow/400/fast}')
|
||||||
snippet trig
|
snippet trig
|
||||||
${1:obj}.trigger('${2:event name}')${3}
|
${1:obj}.trigger('${2:event name}')
|
||||||
snippet trigh
|
snippet trigh
|
||||||
${1:obj}.triggerHandler('${2:event name}')${3}
|
${1:obj}.triggerHandler('${2:event name}')
|
||||||
snippet $trim
|
snippet $trim
|
||||||
$.trim(${1:str})${2}
|
$.trim(${1:str})
|
||||||
snippet $type
|
snippet $type
|
||||||
$.type(${1:obj})${2}
|
$.type(${1:obj})
|
||||||
snippet unbind
|
snippet unbind
|
||||||
${1:obj}.unbind('${2:event name}')${3}
|
${1:obj}.unbind('${2:event name}')
|
||||||
snippet undele
|
snippet undele
|
||||||
${1:obj}.undelegate(${2:selector expression}, ${3:event}, ${4:handler})${5}
|
${1:obj}.undelegate(${2:selector expression}, ${3:event}, ${4:handler})
|
||||||
snippet uniq
|
snippet uniq
|
||||||
$.unique(${1:array})${2}
|
$.unique(${1:array})
|
||||||
snippet unload
|
snippet unload
|
||||||
${1:obj}.unload(function (${2:e}) {
|
${1:obj}.unload(function (${2:e}) {
|
||||||
${3:// event handler}
|
${0:// event handler}
|
||||||
});
|
});
|
||||||
snippet unwrap
|
snippet unwrap
|
||||||
${1:obj}.unwrap()${2}
|
${1:obj}.unwrap()
|
||||||
snippet val
|
snippet val
|
||||||
${1:obj}.val('${2:text}')${3}
|
${1:obj}.val('${2:text}')
|
||||||
snippet width
|
snippet width
|
||||||
${1:obj}.width(${2:integer})${3}
|
${1:obj}.width(${2:integer})
|
||||||
snippet wrap
|
snippet wrap
|
||||||
${1:obj}.wrap('${2:<div class="extra-wrapper"></div>}')${3}
|
${1:obj}.wrap('${2:<div class="extra-wrapper"></div>}')
|
||||||
|
@ -2,45 +2,45 @@
|
|||||||
snippet proto
|
snippet proto
|
||||||
${1:class_name}.prototype.${2:method_name} =
|
${1:class_name}.prototype.${2:method_name} =
|
||||||
function(${3:first_argument}) {
|
function(${3:first_argument}) {
|
||||||
${4:// body...}
|
${0:// body...}
|
||||||
};
|
};
|
||||||
# Function
|
# Function
|
||||||
snippet fun
|
snippet fun
|
||||||
function ${1:function_name}(${2:argument}) {
|
function ${1:function_name}(${2:argument}) {
|
||||||
${3:// body...}
|
${0:// body...}
|
||||||
}
|
}
|
||||||
# Anonymous Function
|
# Anonymous Function
|
||||||
snippet f
|
snippet f
|
||||||
function (${1}) {
|
function (${1}) {
|
||||||
${3}
|
${0}
|
||||||
}${2:;}
|
}${2:;}
|
||||||
# Immediate function
|
# Immediate function
|
||||||
snippet (f
|
snippet (f
|
||||||
(function (${1}) {
|
(function (${1}) {
|
||||||
${3}
|
${0}
|
||||||
}(${2}));
|
}(${2}));
|
||||||
# if
|
# if
|
||||||
snippet if
|
snippet if
|
||||||
if (${1:true}) {
|
if (${1:true}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# if ... else
|
# if ... else
|
||||||
snippet ife
|
snippet ife
|
||||||
if (${1:true}) {
|
if (${1:true}) {
|
||||||
${2}
|
${2}
|
||||||
} else {
|
} else {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
# tertiary conditional
|
# tertiary conditional
|
||||||
snippet ter
|
snippet ter
|
||||||
${1:/* condition */} ? ${2:a} : ${3:b}
|
${1:/* condition */} ? ${2:a} : ${0:b}
|
||||||
# switch
|
# switch
|
||||||
snippet switch
|
snippet switch
|
||||||
switch (${1:expression}) {
|
switch (${1:expression}) {
|
||||||
case '${3:case}':
|
case '${3:case}':
|
||||||
${4}
|
${4}
|
||||||
break;
|
break;
|
||||||
${5}
|
${0}
|
||||||
default:
|
default:
|
||||||
${2}
|
${2}
|
||||||
}
|
}
|
||||||
@ -49,85 +49,85 @@ snippet case
|
|||||||
case '${1:case}':
|
case '${1:case}':
|
||||||
${2}
|
${2}
|
||||||
break;
|
break;
|
||||||
${3}
|
${0}
|
||||||
# for (...) {...}
|
# for (...) {...}
|
||||||
snippet for
|
snippet for
|
||||||
for (var ${2:i} = 0, l = ${1:arr}.length; $2 < l; $2 ++) {
|
for (var ${2:i} = 0, l = ${1:arr}.length; $2 < l; $2 ++) {
|
||||||
var ${3:v} = $1[$2];${4:}
|
var ${3:v} = $1[$2];${0:}
|
||||||
}
|
}
|
||||||
# for (...) {...} (Improved Native For-Loop)
|
# for (...) {...} (Improved Native For-Loop)
|
||||||
snippet forr
|
snippet forr
|
||||||
for (var ${2:i} = ${1:arr}.length - 1; $2 >= 0; $2 --) {
|
for (var ${2:i} = ${1:arr}.length - 1; $2 >= 0; $2 --) {
|
||||||
var ${3:v} = $1[$2];${4:}
|
var ${3:v} = $1[$2];${0:}
|
||||||
}
|
}
|
||||||
# while (...) {...}
|
# while (...) {...}
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1:/* condition */}) {
|
while (${1:/* condition */}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# try
|
# try
|
||||||
snippet try
|
snippet try
|
||||||
try {
|
try {
|
||||||
${1}
|
${1}
|
||||||
} catch (${2:e}) {
|
} catch (${2:e}) {
|
||||||
${3:/* handle error */}
|
${0:/* handle error */}
|
||||||
}
|
}
|
||||||
# do...while
|
# do...while
|
||||||
snippet do
|
snippet do
|
||||||
do {
|
do {
|
||||||
${2}
|
${0}
|
||||||
} while (${1:/* condition */});
|
} while (${1:/* condition */});
|
||||||
# Object Method
|
# Object Method
|
||||||
snippet :f
|
snippet :f
|
||||||
${1:method_name}: function (${2:attribute}) {
|
${1:method_name}: function (${2:attribute}) {
|
||||||
${4}
|
${0}
|
||||||
}${3:,}
|
}${3:,}
|
||||||
# setTimeout function
|
# setTimeout function
|
||||||
snippet timeout
|
snippet timeout
|
||||||
setTimeout(function () {${3}}${2}, ${1:10});
|
setTimeout(function () {${0}}${2}, ${1:10});
|
||||||
# Get Elements
|
# Get Elements
|
||||||
snippet get
|
snippet get
|
||||||
getElementsBy${1:TagName}('${2}')${3}
|
getElementsBy${1:TagName}('${2}')
|
||||||
# Get Element
|
# Get Element
|
||||||
snippet gett
|
snippet gett
|
||||||
getElementBy${1:Id}('${2}')${3}
|
getElementBy${1:Id}('${2}')
|
||||||
# console.log (Firebug)
|
# console.log (Firebug)
|
||||||
snippet cl
|
snippet cl
|
||||||
console.log(${1});
|
console.log(${0});
|
||||||
# return
|
# return
|
||||||
snippet ret
|
snippet ret
|
||||||
return ${1:result}
|
return ${0:result}
|
||||||
# for (property in object ) { ... }
|
# for (property in object ) { ... }
|
||||||
snippet fori
|
snippet fori
|
||||||
for (var ${1:prop} in ${2:Things}) {
|
for (var ${1:prop} in ${2:Things}) {
|
||||||
${3:$2[$1]}
|
${0:$2[$1]}
|
||||||
}
|
}
|
||||||
# hasOwnProperty
|
# hasOwnProperty
|
||||||
snippet has
|
snippet has
|
||||||
hasOwnProperty(${1})
|
hasOwnProperty(${0})
|
||||||
# docstring
|
# docstring
|
||||||
snippet /**
|
snippet /**
|
||||||
/**
|
/**
|
||||||
* ${1:description}
|
* ${0:description}
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
snippet @par
|
snippet @par
|
||||||
@param {${1:type}} ${2:name} ${3:description}
|
@param {${1:type}} ${2:name} ${0:description}
|
||||||
snippet @ret
|
snippet @ret
|
||||||
@return {${1:type}} ${2:description}
|
@return {${1:type}} ${0:description}
|
||||||
# JSON.parse
|
# JSON.parse
|
||||||
snippet jsonp
|
snippet jsonp
|
||||||
JSON.parse(${1:jstr});
|
JSON.parse(${0:jstr});
|
||||||
# JSON.stringify
|
# JSON.stringify
|
||||||
snippet jsons
|
snippet jsons
|
||||||
JSON.stringify(${1:object});
|
JSON.stringify(${0:object});
|
||||||
# self-defining function
|
# self-defining function
|
||||||
snippet sdf
|
snippet sdf
|
||||||
var ${1:function_name} = function (${2:argument}) {
|
var ${1:function_name} = function (${2:argument}) {
|
||||||
${3}
|
${3}
|
||||||
|
|
||||||
$1 = function ($2) {
|
$1 = function ($2) {
|
||||||
${4}
|
${0}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# singleton
|
# singleton
|
||||||
@ -150,7 +150,7 @@ snippet sing
|
|||||||
// reset the constructor pointer
|
// reset the constructor pointer
|
||||||
instance.constructor = $1;
|
instance.constructor = $1;
|
||||||
|
|
||||||
${3}
|
${0}
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
@ -176,7 +176,7 @@ snippet props
|
|||||||
value : ${4:value},
|
value : ${4:value},
|
||||||
writeable : ${5:boolean},
|
writeable : ${5:boolean},
|
||||||
enumerable : ${6:boolean},
|
enumerable : ${6:boolean},
|
||||||
configurable : ${7:boolean}
|
configurable : ${0:boolean}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -195,6 +195,6 @@ snippet prop
|
|||||||
value : ${3:value},
|
value : ${3:value},
|
||||||
writeable : ${4:boolean},
|
writeable : ${4:boolean},
|
||||||
enumerable : ${5:boolean},
|
enumerable : ${5:boolean},
|
||||||
configurable : ${6:boolean}
|
configurable : ${0:boolean}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -10,90 +10,90 @@ snippet jstl:fn
|
|||||||
snippet cpath
|
snippet cpath
|
||||||
${pageContext.request.contextPath}
|
${pageContext.request.contextPath}
|
||||||
snippet cout
|
snippet cout
|
||||||
<c:out value="${1}" default="${2}" />
|
<c:out value="${1}" default="${0}" />
|
||||||
snippet cset
|
snippet cset
|
||||||
<c:set var="${1}" value="${2}" />
|
<c:set var="${1}" value="${0}" />
|
||||||
snippet cremove
|
snippet cremove
|
||||||
<c:remove var="${1}" scope="${2:page}" />
|
<c:remove var="${1}" scope="${0:page}" />
|
||||||
snippet ccatch
|
snippet ccatch
|
||||||
<c:catch var="${1}" />
|
<c:catch var="${0}" />
|
||||||
snippet cif
|
snippet cif
|
||||||
<c:if test="${${1}}">
|
<c:if test="${${1}}">
|
||||||
${2}
|
${0}
|
||||||
</c:if>
|
</c:if>
|
||||||
snippet cchoose
|
snippet cchoose
|
||||||
<c:choose>
|
<c:choose>
|
||||||
${1}
|
${0}
|
||||||
</c:choose>
|
</c:choose>
|
||||||
snippet cwhen
|
snippet cwhen
|
||||||
<c:when test="${${1}}">
|
<c:when test="${${1}}">
|
||||||
${2}
|
${0}
|
||||||
</c:when>
|
</c:when>
|
||||||
snippet cother
|
snippet cother
|
||||||
<c:otherwise>
|
<c:otherwise>
|
||||||
${1}
|
${0}
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
snippet cfore
|
snippet cfore
|
||||||
<c:forEach items="${${1}}" var="${2}" varStatus="${3}">
|
<c:forEach items="${${1}}" var="${2}" varStatus="${3}">
|
||||||
${4:<c:out value="$2" />}
|
${0:<c:out value="$2" />}
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
snippet cfort
|
snippet cfort
|
||||||
<c:set var="${1}">${2:item1,item2,item3}</c:set>
|
<c:set var="${1}">${2:item1,item2,item3}</c:set>
|
||||||
<c:forTokens var="${3}" items="${$1}" delims="${4:,}">
|
<c:forTokens var="${3}" items="${$1}" delims="${4:,}">
|
||||||
${5:<c:out value="$3" />}
|
${0:<c:out value="$3" />}
|
||||||
</c:forTokens>
|
</c:forTokens>
|
||||||
snippet cparam
|
snippet cparam
|
||||||
<c:param name="${1}" value="${2}" />
|
<c:param name="${1}" value="${0}" />
|
||||||
snippet cparam+
|
snippet cparam+
|
||||||
<c:param name="${1}" value="${2}" />
|
<c:param name="${1}" value="${2}" />
|
||||||
cparam+${3}
|
cparam+${0}
|
||||||
snippet cimport
|
snippet cimport
|
||||||
<c:import url="${1}" />
|
<c:import url="${1}" />
|
||||||
snippet cimport+
|
snippet cimport+
|
||||||
<c:import url="${1}">
|
<c:import url="${1}">
|
||||||
<c:param name="${2}" value="${3}" />
|
<c:param name="${2}" value="${3}" />
|
||||||
cparam+${4}
|
cparam+${0}
|
||||||
</c:import>
|
</c:import>
|
||||||
snippet curl
|
snippet curl
|
||||||
<c:url value="${1}" var="${2}" />
|
<c:url value="${1}" var="${2}" />
|
||||||
<a href="${$2}">${3}</a>
|
<a href="${$2}">${0}</a>
|
||||||
snippet curl+
|
snippet curl+
|
||||||
<c:url value="${1}" var="${2}">
|
<c:url value="${1}" var="${2}">
|
||||||
<c:param name="${4}" value="${5}" />
|
<c:param name="${4}" value="${5}" />
|
||||||
cparam+${6}
|
cparam+${0}
|
||||||
</c:url>
|
</c:url>
|
||||||
<a href="${$2}">${3}</a>
|
<a href="${$2}">${3}</a>
|
||||||
snippet credirect
|
snippet credirect
|
||||||
<c:redirect url="${1}" />
|
<c:redirect url="${0}" />
|
||||||
snippet contains
|
snippet contains
|
||||||
${fn:contains(${1:string}, ${2:substr})}
|
${fn:contains(${1:string}, ${0:substr})}
|
||||||
snippet contains:i
|
snippet contains:i
|
||||||
${fn:containsIgnoreCase(${1:string}, ${2:substr})}
|
${fn:containsIgnoreCase(${1:string}, ${0:substr})}
|
||||||
snippet endswith
|
snippet endswith
|
||||||
${fn:endsWith(${1:string}, ${2:suffix})}
|
${fn:endsWith(${1:string}, ${0:suffix})}
|
||||||
snippet escape
|
snippet escape
|
||||||
${fn:escapeXml(${1:string})}
|
${fn:escapeXml(${0:string})}
|
||||||
snippet indexof
|
snippet indexof
|
||||||
${fn:indexOf(${1:string}, ${2:substr})}
|
${fn:indexOf(${1:string}, ${0:substr})}
|
||||||
snippet join
|
snippet join
|
||||||
${fn:join(${1:collection}, ${2:delims})}
|
${fn:join(${1:collection}, ${0:delims})}
|
||||||
snippet length
|
snippet length
|
||||||
${fn:length(${1:collection_or_string})}
|
${fn:length(${0:collection_or_string})}
|
||||||
snippet replace
|
snippet replace
|
||||||
${fn:replace(${1:string}, ${2:substr}, ${3:replace})}
|
${fn:replace(${1:string}, ${2:substr}, ${0:replace})}
|
||||||
snippet split
|
snippet split
|
||||||
${fn:split(${1:string}, ${2:delims})}
|
${fn:split(${1:string}, ${0:delims})}
|
||||||
snippet startswith
|
snippet startswith
|
||||||
${fn:startsWith(${1:string}, ${2:prefix})}
|
${fn:startsWith(${1:string}, ${0:prefix})}
|
||||||
snippet substr
|
snippet substr
|
||||||
${fn:substring(${1:string}, ${2:begin}, ${3:end})}
|
${fn:substring(${1:string}, ${2:begin}, ${0:end})}
|
||||||
snippet substr:a
|
snippet substr:a
|
||||||
${fn:substringAfter(${1:string}, ${2:substr})}
|
${fn:substringAfter(${1:string}, ${0:substr})}
|
||||||
snippet substr:b
|
snippet substr:b
|
||||||
${fn:substringBefore(${1:string}, ${2:substr})}
|
${fn:substringBefore(${1:string}, ${0:substr})}
|
||||||
snippet lc
|
snippet lc
|
||||||
${fn:toLowerCase(${1:string})}
|
${fn:toLowerCase(${0:string})}
|
||||||
snippet uc
|
snippet uc
|
||||||
${fn:toUpperCase(${1:string})}
|
${fn:toUpperCase(${0:string})}
|
||||||
snippet trim
|
snippet trim
|
||||||
${fn:trim(${1:string})}
|
${fn:trim(${0:string})}
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
snippet ent
|
snippet ent
|
||||||
`strftime("%Y/%m/%d")` ${1:transaction}
|
`strftime("%Y/%m/%d")` ${1:transaction}
|
||||||
${2:account} ${3:value}
|
${2:account} ${3:value}
|
||||||
${4:account}
|
${0:account}
|
||||||
|
@ -2,20 +2,20 @@ snippet #!
|
|||||||
#!/usr/bin/env lua
|
#!/usr/bin/env lua
|
||||||
$1
|
$1
|
||||||
snippet local
|
snippet local
|
||||||
local ${1:x} = ${2:1}
|
local ${1:x} = ${0:1}
|
||||||
snippet fun
|
snippet fun
|
||||||
function ${1:fname}(${2:...})
|
function ${1:fname}(${2:...})
|
||||||
${3:-- body}
|
${0:-- body}
|
||||||
end
|
end
|
||||||
snippet for
|
snippet for
|
||||||
for ${1:i}=${2:1},${3:10} do
|
for ${1:i}=${2:1},${3:10} do
|
||||||
${4:print(i)}
|
${0:print(i)}
|
||||||
end
|
end
|
||||||
snippet forp
|
snippet forp
|
||||||
for ${1:i},${2:v} in pairs(${3:table_name}) do
|
for ${1:i},${2:v} in pairs(${3:table_name}) do
|
||||||
${4:-- body}
|
${0:-- body}
|
||||||
end
|
end
|
||||||
snippet fori
|
snippet fori
|
||||||
for ${1:i},${2:v} in ipairs(${3:table_name}) do
|
for ${1:i},${2:v} in ipairs(${3:table_name}) do
|
||||||
${4:-- body}
|
${0:-- body}
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
snippet ifeq
|
snippet ifeq
|
||||||
ifeq (${1:cond0},${2:cond1})
|
ifeq (${1:cond0},${2:cond1})
|
||||||
${3}
|
${0}
|
||||||
endif
|
endif
|
||||||
|
@ -1,54 +1,54 @@
|
|||||||
snippet def
|
snippet def
|
||||||
<%def name="${1:name}">
|
<%def name="${1:name}">
|
||||||
${2:}
|
${0:}
|
||||||
</%def>
|
</%def>
|
||||||
snippet call
|
snippet call
|
||||||
<%call expr="${1:name}">
|
<%call expr="${1:name}">
|
||||||
${2:}
|
${0:}
|
||||||
</%call>
|
</%call>
|
||||||
snippet doc
|
snippet doc
|
||||||
<%doc>
|
<%doc>
|
||||||
${1:}
|
${0:}
|
||||||
</%doc>
|
</%doc>
|
||||||
snippet text
|
snippet text
|
||||||
<%text>
|
<%text>
|
||||||
${1:}
|
${0:}
|
||||||
</%text>
|
</%text>
|
||||||
snippet for
|
snippet for
|
||||||
% for ${1:i} in ${2:iter}:
|
% for ${1:i} in ${2:iter}:
|
||||||
${3:}
|
${0:}
|
||||||
% endfor
|
% endfor
|
||||||
snippet if if
|
snippet if if
|
||||||
% if ${1:condition}:
|
% if ${1:condition}:
|
||||||
${2:}
|
${0:}
|
||||||
% endif
|
% endif
|
||||||
snippet ife if/else
|
snippet ife if/else
|
||||||
% if ${1:condition}:
|
% if ${1:condition}:
|
||||||
${2:}
|
${2:}
|
||||||
% else:
|
% else:
|
||||||
${3:}
|
${0:}
|
||||||
% endif
|
% endif
|
||||||
snippet try
|
snippet try
|
||||||
% try:
|
% try:
|
||||||
${1:}
|
${1:}
|
||||||
% except${2:}:
|
% except${2:}:
|
||||||
${3:pass}
|
${0:pass}
|
||||||
% endtry
|
% endtry
|
||||||
snippet wh
|
snippet wh
|
||||||
% while ${1:}:
|
% while ${1:}:
|
||||||
${2:}
|
${0:}
|
||||||
% endwhile
|
% endwhile
|
||||||
snippet $
|
snippet $
|
||||||
${ ${1:} }
|
${ ${0:} }
|
||||||
snippet <%
|
snippet <%
|
||||||
<% ${1:} %>
|
<% ${0:} %>
|
||||||
snippet <!%
|
snippet <!%
|
||||||
<!% ${1:} %>
|
<!% ${0:} %>
|
||||||
snippet inherit
|
snippet inherit
|
||||||
<%inherit file="${1:filename}" />
|
<%inherit file="${0:filename}" />
|
||||||
snippet include
|
snippet include
|
||||||
<%include file="${1:filename}" />
|
<%include file="${0:filename}" />
|
||||||
snippet namespace
|
snippet namespace
|
||||||
<%namespace file="${1:name}" />
|
<%namespace file="${0:name}" />
|
||||||
snippet page
|
snippet page
|
||||||
<%page args="${1:}" />
|
<%page args="${0:}" />
|
||||||
|
@ -3,85 +3,85 @@
|
|||||||
# Includes octopress (http://octopress.org/) snippets
|
# Includes octopress (http://octopress.org/) snippets
|
||||||
|
|
||||||
snippet [
|
snippet [
|
||||||
[${1:text}](http://${2:address} "${3:title}")
|
[${1:text}](http://${2:address} "${0:title}")
|
||||||
snippet [*
|
snippet [*
|
||||||
[${1:link}](${2:`@*`} "${3:title}")${4}
|
[${1:link}](${2:`@*`} "${3:title}")
|
||||||
|
|
||||||
snippet [:
|
snippet [:
|
||||||
[${1:id}]: http://${2:url} "${3:title}"
|
[${1:id}]: http://${2:url} "${0:title}"
|
||||||
snippet [:*
|
snippet [:*
|
||||||
[${1:id}]: ${2:`@*`} "${3:title}"
|
[${1:id}]: ${2:`@*`} "${0:title}"
|
||||||
|
|
||||||
snippet ![
|
snippet ![
|
||||||
![${1:alttext}](${2:/images/image.jpg} "${3:title}")
|
![${1:alttext}](${2:/images/image.jpg} "${0:title}")
|
||||||
snippet ![*
|
snippet ![*
|
||||||
![${1:alt}](${2:`@*`} "${3:title}")${4}
|
![${1:alt}](${2:`@*`} "${3:title}")
|
||||||
|
|
||||||
snippet ![:
|
snippet ![:
|
||||||
![${1:id}]: ${2:url} "${3:title}"
|
![${1:id}]: ${2:url} "${0:title}"
|
||||||
snippet ![:*
|
snippet ![:*
|
||||||
![${1:id}]: ${2:`@*`} "${3:title}"
|
![${1:id}]: ${2:`@*`} "${0:title}"
|
||||||
|
|
||||||
snippet ===
|
snippet ===
|
||||||
`repeat('=', strlen(getline(line(".") - 1)) - strlen(getline('.')))`
|
`repeat('=', strlen(getline(line(".") - 1)) - strlen(getline('.')))`
|
||||||
|
|
||||||
${1}
|
${0}
|
||||||
snippet ---
|
snippet ---
|
||||||
`repeat('-', strlen(getline(line(".") - 1)) - strlen(getline('.')))`
|
`repeat('-', strlen(getline(line(".") - 1)) - strlen(getline('.')))`
|
||||||
|
|
||||||
${1}
|
${0}
|
||||||
|
|
||||||
snippet blockquote
|
snippet blockquote
|
||||||
{% blockquote %}
|
{% blockquote %}
|
||||||
${1:quote}
|
${0:quote}
|
||||||
{% endblockquote %}
|
{% endblockquote %}
|
||||||
|
|
||||||
snippet blockquote-author
|
snippet blockquote-author
|
||||||
{% blockquote ${1:author}, ${2:title} %}
|
{% blockquote ${1:author}, ${2:title} %}
|
||||||
${3:quote}
|
${0:quote}
|
||||||
{% endblockquote %}
|
{% endblockquote %}
|
||||||
|
|
||||||
snippet blockquote-link
|
snippet blockquote-link
|
||||||
{% blockquote ${1:author} ${2:URL} ${3:link_text} %}
|
{% blockquote ${1:author} ${2:URL} ${3:link_text} %}
|
||||||
${4:quote}
|
${0:quote}
|
||||||
{% endblockquote %}
|
{% endblockquote %}
|
||||||
|
|
||||||
snippet bt-codeblock-short
|
snippet bt-codeblock-short
|
||||||
```
|
```
|
||||||
${1:code_snippet}
|
${0:code_snippet}
|
||||||
```
|
```
|
||||||
|
|
||||||
snippet bt-codeblock-full
|
snippet bt-codeblock-full
|
||||||
``` ${1:language} ${2:title} ${3:URL} ${4:link_text}
|
``` ${1:language} ${2:title} ${3:URL} ${4:link_text}
|
||||||
${5:code_snippet}
|
${0:code_snippet}
|
||||||
```
|
```
|
||||||
|
|
||||||
snippet codeblock-short
|
snippet codeblock-short
|
||||||
{% codeblock %}
|
{% codeblock %}
|
||||||
${1:code_snippet}
|
${0:code_snippet}
|
||||||
{% endcodeblock %}
|
{% endcodeblock %}
|
||||||
|
|
||||||
snippet codeblock-full
|
snippet codeblock-full
|
||||||
{% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}
|
{% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}
|
||||||
${5:code_snippet}
|
${0:code_snippet}
|
||||||
{% endcodeblock %}
|
{% endcodeblock %}
|
||||||
|
|
||||||
snippet gist-full
|
snippet gist-full
|
||||||
{% gist ${1:gist_id} ${2:filename} %}
|
{% gist ${1:gist_id} ${0:filename} %}
|
||||||
|
|
||||||
snippet gist-short
|
snippet gist-short
|
||||||
{% gist ${1:gist_id} %}
|
{% gist ${0:gist_id} %}
|
||||||
|
|
||||||
snippet img
|
snippet img
|
||||||
{% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}
|
{% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${0:alt_text} %}
|
||||||
|
|
||||||
snippet youtube
|
snippet youtube
|
||||||
{% youtube ${1:video_id} %}
|
{% youtube ${0:video_id} %}
|
||||||
|
|
||||||
# The quote should appear only once in the text. It is inherently part of it.
|
# The quote should appear only once in the text. It is inherently part of it.
|
||||||
# See http://octopress.org/docs/plugins/pullquote/ for more info.
|
# See http://octopress.org/docs/plugins/pullquote/ for more info.
|
||||||
|
|
||||||
snippet pullquote
|
snippet pullquote
|
||||||
{% pullquote %}
|
{% pullquote %}
|
||||||
${1:text} {" ${2:quote} "} ${3:text}
|
${1:text} {" ${2:quote} "} ${0:text}
|
||||||
{% endpullquote %}
|
{% endpullquote %}
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
# #import <...>
|
# #import <...>
|
||||||
snippet Imp
|
snippet Imp
|
||||||
#import <${1:Cocoa/Cocoa.h}>${2}
|
#import <${1:Cocoa/Cocoa.h}>
|
||||||
# #import "..."
|
# #import "..."
|
||||||
snippet imp
|
snippet imp
|
||||||
#import "${1:`vim_snippets#Filename()`.h}"${2}
|
#import "${1:`vim_snippets#Filename()`.h}"
|
||||||
# @selector(...)
|
# @selector(...)
|
||||||
snippet sel
|
snippet sel
|
||||||
@selector(${1:method}:)${3}
|
@selector(${1:method}:)
|
||||||
# @"..." string
|
# @"..." string
|
||||||
snippet s
|
snippet s
|
||||||
@"${1}"${2}
|
@"${1}"
|
||||||
# Object
|
# Object
|
||||||
snippet o
|
snippet o
|
||||||
${1:NSObject} *${2:foo} = [${3:$1 alloc}]${4};${5}
|
${1:NSObject} *${2:foo} = [${3:$1 alloc}]${4};
|
||||||
# NSLog(...)
|
# NSLog(...)
|
||||||
snippet log
|
snippet log
|
||||||
NSLog(@"${1:%@}"${2});${3}
|
NSLog(@"${1:%@}"${2});
|
||||||
# Class
|
# Class
|
||||||
snippet objc
|
snippet objc
|
||||||
@interface ${1:`vim_snippets#Filename('', 'someClass')`} : ${2:NSObject}
|
@interface ${1:`vim_snippets#Filename('', 'someClass')`} : ${2:NSObject}
|
||||||
@ -24,45 +24,45 @@ snippet objc
|
|||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation $1
|
@implementation $1
|
||||||
${3}
|
${0}
|
||||||
@end
|
@end
|
||||||
# Class Interface
|
# Class Interface
|
||||||
snippet int
|
snippet int
|
||||||
@interface ${1:`vim_snippets#Filename('', 'someClass')`} : ${2:NSObject}
|
@interface ${1:`vim_snippets#Filename('', 'someClass')`} : ${2:NSObject}
|
||||||
{${3}
|
{${3}
|
||||||
}
|
}
|
||||||
${4}
|
${0}
|
||||||
@end
|
@end
|
||||||
snippet @interface
|
snippet @interface
|
||||||
@interface ${1:`vim_snippets#Filename('', 'someClass')`} : ${2:NSObject}
|
@interface ${1:`vim_snippets#Filename('', 'someClass')`} : ${2:NSObject}
|
||||||
{${3}
|
{${3}
|
||||||
}
|
}
|
||||||
${4}
|
${0}
|
||||||
@end
|
@end
|
||||||
# Class Implementation
|
# Class Implementation
|
||||||
snippet impl
|
snippet impl
|
||||||
@implementation ${1:`vim_snippets#Filename('', 'someClass')`}
|
@implementation ${1:`vim_snippets#Filename('', 'someClass')`}
|
||||||
${2}
|
${0}
|
||||||
@end
|
@end
|
||||||
snippet @implementation
|
snippet @implementation
|
||||||
@implementation ${1:`vim_snippets#Filename('', 'someClass')`}
|
@implementation ${1:`vim_snippets#Filename('', 'someClass')`}
|
||||||
${2}
|
${0}
|
||||||
@end
|
@end
|
||||||
# Protocol
|
# Protocol
|
||||||
snippet pro
|
snippet pro
|
||||||
@protocol ${1:`vim_snippets#Filename('$1Delegate', 'MyProtocol')`} ${2:<NSObject>}
|
@protocol ${1:`vim_snippets#Filename('$1Delegate', 'MyProtocol')`} ${2:<NSObject>}
|
||||||
${3}
|
${0}
|
||||||
@end
|
@end
|
||||||
snippet @protocol
|
snippet @protocol
|
||||||
@protocol ${1:`vim_snippets#Filename('$1Delegate', 'MyProtocol')`} ${2:<NSObject>}
|
@protocol ${1:`vim_snippets#Filename('$1Delegate', 'MyProtocol')`} ${2:<NSObject>}
|
||||||
${3}
|
${0}
|
||||||
@end
|
@end
|
||||||
# init Definition
|
# init Definition
|
||||||
snippet init
|
snippet init
|
||||||
- (id)init
|
- (id)init
|
||||||
{
|
{
|
||||||
if (self = [super init]) {
|
if (self = [super init]) {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
@ -70,61 +70,61 @@ snippet init
|
|||||||
snippet dealloc
|
snippet dealloc
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
${1:deallocations}
|
${0:deallocations}
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
snippet su
|
snippet su
|
||||||
[super ${1:init}]${2}
|
[super ${1:init}]
|
||||||
snippet ibo
|
snippet ibo
|
||||||
IBOutlet ${1:NSSomeClass} *${2:$1};${3}
|
IBOutlet ${1:NSSomeClass} *${2:$1};
|
||||||
# Category
|
# Category
|
||||||
snippet cat
|
snippet cat
|
||||||
@interface ${1:NSObject} (${2:MyCategory})
|
@interface ${1:NSObject} (${2:MyCategory})
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation $1 ($2)
|
@implementation $1 ($2)
|
||||||
${3}
|
${0}
|
||||||
@end
|
@end
|
||||||
# Category Interface
|
# Category Interface
|
||||||
snippet cath
|
snippet cath
|
||||||
@interface ${1:`vim_snippets#Filename('$1', 'NSObject')`} (${2:MyCategory})
|
@interface ${1:`vim_snippets#Filename('$1', 'NSObject')`} (${2:MyCategory})
|
||||||
${3}
|
${0}
|
||||||
@end
|
@end
|
||||||
# Method
|
# Method
|
||||||
snippet m
|
snippet m
|
||||||
- (${1:id})${2:method}
|
- (${1:id})${2:method}
|
||||||
{
|
{
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
# Method declaration
|
# Method declaration
|
||||||
snippet md
|
snippet md
|
||||||
- (${1:id})${2:method};${3}
|
- (${1:id})${2:method};
|
||||||
# IBAction declaration
|
# IBAction declaration
|
||||||
snippet ibad
|
snippet ibad
|
||||||
- (IBAction)${1:method}:(${2:id})sender;${3}
|
- (IBAction)${1:method}:(${2:id})sender;
|
||||||
# IBAction method
|
# IBAction method
|
||||||
snippet iba
|
snippet iba
|
||||||
- (IBAction)${1:method}:(${2:id})sender
|
- (IBAction)${1:method}:(${2:id})sender
|
||||||
{
|
{
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
# awakeFromNib method
|
# awakeFromNib method
|
||||||
snippet wake
|
snippet wake
|
||||||
- (void)awakeFromNib
|
- (void)awakeFromNib
|
||||||
{
|
{
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
# Class Method
|
# Class Method
|
||||||
snippet M
|
snippet M
|
||||||
+ (${1:id})${2:method}
|
+ (${1:id})${2:method}
|
||||||
{
|
{
|
||||||
${3:return nil;}
|
${0:return nil;}
|
||||||
}
|
}
|
||||||
# Sub-method (Call super)
|
# Sub-method (Call super)
|
||||||
snippet sm
|
snippet sm
|
||||||
- (${1:id})${2:method}
|
- (${1:id})${2:method}
|
||||||
{
|
{
|
||||||
[super $2];${3}
|
[super $2];${0}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
# Accessor Methods For:
|
# Accessor Methods For:
|
||||||
@ -140,29 +140,29 @@ snippet objacc
|
|||||||
[$3 retain];
|
[$3 retain];
|
||||||
[$2 release];
|
[$2 release];
|
||||||
$2 = $3;
|
$2 = $3;
|
||||||
}${4}
|
}
|
||||||
# for (object in array)
|
# for (object in array)
|
||||||
snippet forin
|
snippet forin
|
||||||
for (${1:Class} *${2:some$1} in ${3:array}) {
|
for (${1:Class} *${2:some$1} in ${3:array}) {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
snippet fore
|
snippet fore
|
||||||
for (${1:object} in ${2:array}) {
|
for (${1:object} in ${2:array}) {
|
||||||
${3:statements}
|
${0:statements}
|
||||||
}
|
}
|
||||||
snippet forarray
|
snippet forarray
|
||||||
unsigned int ${1:object}Count = [${2:array} count];
|
unsigned int ${1:object}Count = [${2:array} count];
|
||||||
|
|
||||||
for (unsigned int index = 0; index < $1Count; index++) {
|
for (unsigned int index = 0; index < $1Count; index++) {
|
||||||
${3:id} $1 = [$2 $1AtIndex:index];
|
${3:id} $1 = [$2 $1AtIndex:index];
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
snippet fora
|
snippet fora
|
||||||
unsigned int ${1:object}Count = [${2:array} count];
|
unsigned int ${1:object}Count = [${2:array} count];
|
||||||
|
|
||||||
for (unsigned int index = 0; index < $1Count; index++) {
|
for (unsigned int index = 0; index < $1Count; index++) {
|
||||||
${3:id} $1 = [$2 $1AtIndex:index];
|
${3:id} $1 = [$2 $1AtIndex:index];
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
# Try / Catch Block
|
# Try / Catch Block
|
||||||
snippet @try
|
snippet @try
|
||||||
@ -173,75 +173,75 @@ snippet @try
|
|||||||
${2:handler}
|
${2:handler}
|
||||||
}
|
}
|
||||||
@finally {
|
@finally {
|
||||||
${3:statements}
|
${0:statements}
|
||||||
}
|
}
|
||||||
snippet @catch
|
snippet @catch
|
||||||
@catch (${1:exception}) {
|
@catch (${1:exception}) {
|
||||||
${2:handler}
|
${0:handler}
|
||||||
}
|
}
|
||||||
snippet @finally
|
snippet @finally
|
||||||
@finally {
|
@finally {
|
||||||
${1:statements}
|
${0:statements}
|
||||||
}
|
}
|
||||||
# IBOutlet
|
# IBOutlet
|
||||||
# @property (Objective-C 2.0)
|
# @property (Objective-C 2.0)
|
||||||
snippet prop
|
snippet prop
|
||||||
@property (${1:retain}) ${2:NSSomeClass} ${3:*$2};${4}
|
@property (${1:retain}) ${2:NSSomeClass} ${3:*$2};
|
||||||
# @synthesize (Objective-C 2.0)
|
# @synthesize (Objective-C 2.0)
|
||||||
snippet syn
|
snippet syn
|
||||||
@synthesize ${1:property};${2}
|
@synthesize ${1:property};
|
||||||
# [[ alloc] init]
|
# [[ alloc] init]
|
||||||
snippet alloc
|
snippet alloc
|
||||||
[[${1:foo} alloc] init${2}];${3}
|
[[${1:foo} alloc] init${2}];
|
||||||
snippet a
|
snippet a
|
||||||
[[${1:foo} alloc] init${2}];${3}
|
[[${1:foo} alloc] init${2}];
|
||||||
# retain
|
# retain
|
||||||
snippet ret
|
snippet ret
|
||||||
[${1:foo} retain];${2}
|
[${1:foo} retain];
|
||||||
# release
|
# release
|
||||||
snippet rel
|
snippet rel
|
||||||
[${1:foo} release];
|
[${0:foo} release];
|
||||||
# autorelease
|
# autorelease
|
||||||
snippet arel
|
snippet arel
|
||||||
[${1:foo} autorelease];
|
[${0:foo} autorelease];
|
||||||
# autorelease pool
|
# autorelease pool
|
||||||
snippet pool
|
snippet pool
|
||||||
NSAutoreleasePool *${1:pool} = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool *${1:pool} = [[NSAutoreleasePool alloc] init];
|
||||||
${2}
|
${0}
|
||||||
[$1 drain];
|
[$1 drain];
|
||||||
# Throw an exception
|
# Throw an exception
|
||||||
snippet except
|
snippet except
|
||||||
NSException *${1:badness};
|
NSException *${1:badness};
|
||||||
$1 = [NSException exceptionWithName:@"${2:$1Name}"
|
$1 = [NSException exceptionWithName:@"${2:$1Name}"
|
||||||
reason:@"${3}"
|
reason:@"${0}"
|
||||||
userInfo:nil];
|
userInfo:nil];
|
||||||
[$1 raise];
|
[$1 raise];
|
||||||
snippet prag
|
snippet prag
|
||||||
#pragma mark ${1:-}
|
#pragma mark ${0:-}
|
||||||
snippet cl
|
snippet cl
|
||||||
@class ${1:Foo};${2}
|
@class ${1:Foo};
|
||||||
snippet color
|
snippet color
|
||||||
[[NSColor ${1:blackColor}] set];
|
[[NSColor ${0:blackColor}] set];
|
||||||
# NSArray
|
# NSArray
|
||||||
snippet array
|
snippet array
|
||||||
NSMutableArray *${1:array} = [NSMutable array];${2}
|
NSMutableArray *${1:array} = [NSMutable array];
|
||||||
snippet nsa
|
snippet nsa
|
||||||
NSArray ${1}
|
NSArray ${0}
|
||||||
snippet nsma
|
snippet nsma
|
||||||
NSMutableArray ${1}
|
NSMutableArray ${0}
|
||||||
snippet aa
|
snippet aa
|
||||||
NSArray * array;${1}
|
NSArray * array;
|
||||||
snippet ma
|
snippet ma
|
||||||
NSMutableArray * array;${1}
|
NSMutableArray * array;
|
||||||
# NSDictionary
|
# NSDictionary
|
||||||
snippet dict
|
snippet dict
|
||||||
NSMutableDictionary *${1:dict} = [NSMutableDictionary dictionary];${2}
|
NSMutableDictionary *${1:dict} = [NSMutableDictionary dictionary];
|
||||||
snippet nsd
|
snippet nsd
|
||||||
NSDictionary ${1}
|
NSDictionary ${0}
|
||||||
snippet nsmd
|
snippet nsmd
|
||||||
NSMutableDictionary ${1}
|
NSMutableDictionary ${0}
|
||||||
# NSString
|
# NSString
|
||||||
snippet nss
|
snippet nss
|
||||||
NSString ${1}
|
NSString ${0}
|
||||||
snippet nsms
|
snippet nsms
|
||||||
NSMutableString ${1}
|
NSMutableString ${0}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# 0/*
|
# 0/*
|
||||||
snippet fv
|
snippet fv
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform ${1};
|
value uniform ${0};
|
||||||
snippet zg
|
snippet zg
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
snippet sym
|
snippet sym
|
||||||
@ -17,7 +17,7 @@ snippet forces
|
|||||||
outputInterval ${2:1};
|
outputInterval ${2:1};
|
||||||
patches (${3});
|
patches (${3});
|
||||||
log ${4:true};
|
log ${4:true};
|
||||||
CofR (${5:0 0 0});
|
CofR (${0:0 0 0});
|
||||||
}
|
}
|
||||||
# system/fvSolution
|
# system/fvSolution
|
||||||
# solvers
|
# solvers
|
||||||
@ -26,7 +26,7 @@ snippet gamg
|
|||||||
{
|
{
|
||||||
solver GAMG;
|
solver GAMG;
|
||||||
tolerance 1e-${2:6};
|
tolerance 1e-${2:6};
|
||||||
relTol ${3:0.0};
|
relTol ${0:0.0};
|
||||||
smoother GaussSeidel;
|
smoother GaussSeidel;
|
||||||
cacheAgglomeration true;
|
cacheAgglomeration true;
|
||||||
nCellsInCoarsestLevel 10;
|
nCellsInCoarsestLevel 10;
|
||||||
@ -39,7 +39,7 @@ snippet pbicg
|
|||||||
solver PBiCG;
|
solver PBiCG;
|
||||||
preconditioner DILU;
|
preconditioner DILU;
|
||||||
tolerance 1e-${2:6};
|
tolerance 1e-${2:6};
|
||||||
relTol ${3:0.0};
|
relTol ${0:0.0};
|
||||||
}
|
}
|
||||||
# PIMPLE
|
# PIMPLE
|
||||||
snippet pimple
|
snippet pimple
|
||||||
@ -49,5 +49,5 @@ snippet pimple
|
|||||||
nCorrectors ${2:inner};
|
nCorrectors ${2:inner};
|
||||||
nNonOrthogonalCorrectors ${3:nonOrtho};
|
nNonOrthogonalCorrectors ${3:nonOrtho};
|
||||||
pRefCell ${4:cell};
|
pRefCell ${4:cell};
|
||||||
pRefValue ${5:value for $4};
|
pRefValue ${0:value for $4};
|
||||||
}
|
}
|
||||||
|
@ -8,12 +8,12 @@ snippet .
|
|||||||
# Function
|
# Function
|
||||||
snippet sub
|
snippet sub
|
||||||
sub ${1:function_name} {
|
sub ${1:function_name} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# Conditional
|
# Conditional
|
||||||
snippet if
|
snippet if
|
||||||
if (${1}) {
|
if (${1}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# Conditional if..else
|
# Conditional if..else
|
||||||
snippet ife
|
snippet ife
|
||||||
@ -21,7 +21,7 @@ snippet ife
|
|||||||
${2}
|
${2}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
# Conditional if..elsif..else
|
# Conditional if..elsif..else
|
||||||
snippet ifee
|
snippet ifee
|
||||||
@ -32,23 +32,23 @@ snippet ifee
|
|||||||
${4:# elsif...}
|
${4:# elsif...}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
${5}
|
${0}
|
||||||
}
|
}
|
||||||
snippet eif
|
snippet eif
|
||||||
elsif (${1}) {
|
elsif (${1}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# Conditional One-line
|
# Conditional One-line
|
||||||
snippet xif
|
snippet xif
|
||||||
${1:expression} if ${2:condition};${3}
|
${1:expression} if ${2:condition};
|
||||||
# Unless conditional
|
# Unless conditional
|
||||||
snippet unless
|
snippet unless
|
||||||
unless (${1}) {
|
unless (${1}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# Unless conditional One-line
|
# Unless conditional One-line
|
||||||
snippet xunless
|
snippet xunless
|
||||||
${1:expression} unless ${2:condition};${3}
|
${1:expression} unless ${2:condition};
|
||||||
# Try/Except
|
# Try/Except
|
||||||
snippet eval
|
snippet eval
|
||||||
local $@;
|
local $@;
|
||||||
@ -56,37 +56,37 @@ snippet eval
|
|||||||
${1:# do something risky...}
|
${1:# do something risky...}
|
||||||
};
|
};
|
||||||
if (my $e = $@) {
|
if (my $e = $@) {
|
||||||
${2:# handle failure...}
|
${0:# handle failure...}
|
||||||
}
|
}
|
||||||
# While Loop
|
# While Loop
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1}) {
|
while (${1}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# While Loop One-line
|
# While Loop One-line
|
||||||
snippet xwh
|
snippet xwh
|
||||||
${1:expression} while ${2:condition};${3}
|
${1:expression} while ${2:condition};
|
||||||
# C-style For Loop
|
# C-style For Loop
|
||||||
snippet cfor
|
snippet cfor
|
||||||
for (my $${2:var} = 0; $$2 < ${1:count}; $$2${3:++}) {
|
for (my $${2:var} = 0; $$2 < ${1:count}; $$2${3:++}) {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
# For loop one-line
|
# For loop one-line
|
||||||
snippet xfor
|
snippet xfor
|
||||||
${1:expression} for @${2:array};${3}
|
${1:expression} for @${2:array};
|
||||||
# Foreach Loop
|
# Foreach Loop
|
||||||
snippet for
|
snippet for
|
||||||
foreach my $${1:x} (@${2:array}) {
|
foreach my $${1:x} (@${2:array}) {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
# Foreach Loop One-line
|
# Foreach Loop One-line
|
||||||
snippet fore
|
snippet fore
|
||||||
${1:expression} foreach @${2:array};${3}
|
${1:expression} foreach @${2:array};
|
||||||
# Package
|
# Package
|
||||||
snippet package
|
snippet package
|
||||||
package ${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`};
|
package ${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`};
|
||||||
|
|
||||||
${2}
|
${0}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ snippet package
|
|||||||
snippet packagev514
|
snippet packagev514
|
||||||
package ${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`} ${2:0.99};
|
package ${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`} ${2:0.99};
|
||||||
|
|
||||||
${3}
|
${0}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
@ -106,14 +106,14 @@ snippet moose
|
|||||||
use namespace::autoclean;
|
use namespace::autoclean;
|
||||||
${1:#}BEGIN {extends '${2:ParentClass}'};
|
${1:#}BEGIN {extends '${2:ParentClass}'};
|
||||||
|
|
||||||
${3}
|
${0}
|
||||||
# parent
|
# parent
|
||||||
snippet parent
|
snippet parent
|
||||||
use parent qw(${1:Parent Class});
|
use parent qw(${0:Parent Class});
|
||||||
# Read File
|
# Read File
|
||||||
snippet slurp
|
snippet slurp
|
||||||
my $${1:var} = do { local $/; open my $file, '<', "${2:file}"; <$file> };
|
my $${1:var} = do { local $/; open my $file, '<', "${2:file}"; <$file> };
|
||||||
${3}
|
${0}
|
||||||
# strict warnings
|
# strict warnings
|
||||||
snippet strwar
|
snippet strwar
|
||||||
use strict;
|
use strict;
|
||||||
@ -121,7 +121,7 @@ snippet strwar
|
|||||||
# older versioning with perlcritic bypass
|
# older versioning with perlcritic bypass
|
||||||
snippet vers
|
snippet vers
|
||||||
## no critic
|
## no critic
|
||||||
our $VERSION = '${1:version}';
|
our $VERSION = '${0:version}';
|
||||||
eval $VERSION;
|
eval $VERSION;
|
||||||
## use critic
|
## use critic
|
||||||
# new 'switch' like feature
|
# new 'switch' like feature
|
||||||
@ -131,7 +131,7 @@ snippet switch
|
|||||||
# Anonymous subroutine
|
# Anonymous subroutine
|
||||||
snippet asub
|
snippet asub
|
||||||
sub {
|
sub {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -139,56 +139,56 @@ snippet asub
|
|||||||
# Begin block
|
# Begin block
|
||||||
snippet begin
|
snippet begin
|
||||||
BEGIN {
|
BEGIN {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
# call package function with some parameter
|
# call package function with some parameter
|
||||||
snippet pkgmv
|
snippet pkgmv
|
||||||
__PACKAGE__->${1:package_method}(${2:var})
|
__PACKAGE__->${1:package_method}(${0:var})
|
||||||
|
|
||||||
# call package function without a parameter
|
# call package function without a parameter
|
||||||
snippet pkgm
|
snippet pkgm
|
||||||
__PACKAGE__->${1:package_method}()
|
__PACKAGE__->${0:package_method}()
|
||||||
|
|
||||||
# call package "get_" function without a parameter
|
# call package "get_" function without a parameter
|
||||||
snippet pkget
|
snippet pkget
|
||||||
__PACKAGE__->get_${1:package_method}()
|
__PACKAGE__->get_${0:package_method}()
|
||||||
|
|
||||||
# call package function with a parameter
|
# call package function with a parameter
|
||||||
snippet pkgetv
|
snippet pkgetv
|
||||||
__PACKAGE__->get_${1:package_method}(${2:var})
|
__PACKAGE__->get_${1:package_method}(${0:var})
|
||||||
|
|
||||||
# complex regex
|
# complex regex
|
||||||
snippet qrx
|
snippet qrx
|
||||||
qr/
|
qr/
|
||||||
${1:regex}
|
${0:regex}
|
||||||
/xms
|
/xms
|
||||||
|
|
||||||
#simpler regex
|
#simpler regex
|
||||||
snippet qr/
|
snippet qr/
|
||||||
qr/${1:regex}/x
|
qr/${0:regex}/x
|
||||||
|
|
||||||
#given
|
#given
|
||||||
snippet given
|
snippet given
|
||||||
given ($${1:var}) {
|
given ($${1:var}) {
|
||||||
${2:# cases}
|
${2:# cases}
|
||||||
${3:# default}
|
${0:# default}
|
||||||
}
|
}
|
||||||
|
|
||||||
# switch-like case
|
# switch-like case
|
||||||
snippet when
|
snippet when
|
||||||
when (${1:case}) {
|
when (${1:case}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
# hash slice
|
# hash slice
|
||||||
snippet hslice
|
snippet hslice
|
||||||
@{ ${1:hash} }{ ${2:array} }
|
@{ ${1:hash} }{ ${0:array} }
|
||||||
|
|
||||||
|
|
||||||
# map
|
# map
|
||||||
snippet map
|
snippet map
|
||||||
map { ${2: body } } ${1: @array } ;
|
map { ${0: body } } ${1: @array } ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ snippet ppod
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
${4:# longer description...}
|
${0:# longer description...}
|
||||||
|
|
||||||
|
|
||||||
=head1 INTERFACE
|
=head1 INTERFACE
|
||||||
@ -222,13 +222,13 @@ snippet ppod
|
|||||||
snippet psub
|
snippet psub
|
||||||
=head2 ${1:MethodName}
|
=head2 ${1:MethodName}
|
||||||
|
|
||||||
${2:Summary....}
|
${0:Summary....}
|
||||||
|
|
||||||
# Heading for inline subroutine pod
|
# Heading for inline subroutine pod
|
||||||
snippet psubi
|
snippet psubi
|
||||||
=head2 ${1:MethodName}
|
=head2 ${1:MethodName}
|
||||||
|
|
||||||
${2:Summary...}
|
${0:Summary...}
|
||||||
|
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
@ -241,7 +241,7 @@ snippet subpod
|
|||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub ${1:subroutine_name} {
|
sub ${1:subroutine_name} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# Subroutine signature
|
# Subroutine signature
|
||||||
snippet parg
|
snippet parg
|
||||||
@ -269,7 +269,7 @@ snippet parg
|
|||||||
|
|
||||||
|
|
||||||
=item
|
=item
|
||||||
C<${3:...return data}>
|
C<${0:...return data}>
|
||||||
|
|
||||||
|
|
||||||
=back
|
=back
|
||||||
@ -287,7 +287,7 @@ snippet has
|
|||||||
default => sub {
|
default => sub {
|
||||||
${4:defaultvalue}
|
${4:defaultvalue}
|
||||||
},
|
},
|
||||||
${5:# other attributes}
|
${0:# other attributes}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -295,7 +295,7 @@ snippet has
|
|||||||
snippet override
|
snippet override
|
||||||
override ${1:attribute} => sub {
|
override ${1:attribute} => sub {
|
||||||
${2:# my $self = shift;};
|
${2:# my $self = shift;};
|
||||||
${3:# my ($self, $args) = @_;};
|
${0:# my ($self, $args) = @_;};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -311,18 +311,18 @@ snippet tlib
|
|||||||
|
|
||||||
#test methods
|
#test methods
|
||||||
snippet tmeths
|
snippet tmeths
|
||||||
$ENV{TEST_METHOD} = '${1:regex}';
|
$ENV{TEST_METHOD} = '${0:regex}';
|
||||||
|
|
||||||
# runtestclass
|
# runtestclass
|
||||||
snippet trunner
|
snippet trunner
|
||||||
use ${1:test_class};
|
use ${0:test_class};
|
||||||
$1->runtests();
|
$1->runtests();
|
||||||
|
|
||||||
# Test::Class-style test
|
# Test::Class-style test
|
||||||
snippet tsub
|
snippet tsub
|
||||||
sub t${1:number}_${2:test_case} :Test(${3:num_of_tests}) {
|
sub t${1:number}_${2:test_case} :Test(${3:num_of_tests}) {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
${4}
|
${0}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -330,14 +330,14 @@ snippet tsub
|
|||||||
snippet trsub
|
snippet trsub
|
||||||
test ${1:test_name} => { description => '${2:Description of test.}'} => sub {
|
test ${1:test_name} => { description => '${2:Description of test.}'} => sub {
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
${3}
|
${0}
|
||||||
};
|
};
|
||||||
|
|
||||||
#prep test method
|
#prep test method
|
||||||
snippet tprep
|
snippet tprep
|
||||||
sub prep${1:number}_${2:test_case} :Test(startup) {
|
sub prep${1:number}_${2:test_case} :Test(startup) {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
# cause failures to print stack trace
|
# cause failures to print stack trace
|
||||||
|
@ -1,54 +1,54 @@
|
|||||||
snippet <?
|
snippet <?
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
${1}
|
${0}
|
||||||
snippet ec
|
snippet ec
|
||||||
echo ${1};
|
echo ${0};
|
||||||
snippet <?e
|
snippet <?e
|
||||||
<?php echo ${1} ?>
|
<?php echo ${0} ?>
|
||||||
# this one is for php5.4
|
# this one is for php5.4
|
||||||
snippet <?=
|
snippet <?=
|
||||||
<?=${1}?>
|
<?=${0}?>
|
||||||
snippet ?=
|
snippet ?=
|
||||||
<?= ${1} ?>
|
<?= ${0} ?>
|
||||||
snippet ?
|
snippet ?
|
||||||
<?php ${1} ?>
|
<?php ${0} ?>
|
||||||
snippet ?f
|
snippet ?f
|
||||||
<?php foreach ($${1:vars} as $${2:$var}): ?>
|
<?php foreach ($${1:vars} as $${2:$var}): ?>
|
||||||
${3}
|
${0}
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
snippet ?i
|
snippet ?i
|
||||||
<?php if ($${1:var}): ?>
|
<?php if ($${1:var}): ?>
|
||||||
${2}
|
${0}
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
snippet ns
|
snippet ns
|
||||||
namespace ${1:Foo\Bar\Baz};
|
namespace ${1:Foo\Bar\Baz};
|
||||||
${2}
|
${0}
|
||||||
snippet use
|
snippet use
|
||||||
use ${1:Foo\Bar\Baz};
|
use ${1:Foo\Bar\Baz};
|
||||||
${2}
|
${0}
|
||||||
snippet c
|
snippet c
|
||||||
class ${1:`vim_snippets#Filename()`}
|
class ${1:`vim_snippets#Filename()`}
|
||||||
{
|
{
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet i
|
snippet i
|
||||||
interface ${1:`vim_snippets#Filename()`}
|
interface ${1:`vim_snippets#Filename()`}
|
||||||
{
|
{
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet t.
|
snippet t.
|
||||||
$this->${1}
|
$this->
|
||||||
snippet f
|
snippet f
|
||||||
function ${1:foo}(${2:array }${3:$bar})
|
function ${1:foo}(${2:array }${3:$bar})
|
||||||
{
|
{
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
# method
|
# method
|
||||||
snippet m
|
snippet m
|
||||||
${1:protected} function ${2:foo}()
|
${1:protected} function ${2:foo}()
|
||||||
{
|
{
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
# setter method
|
# setter method
|
||||||
snippet sm
|
snippet sm
|
||||||
@ -63,7 +63,7 @@ snippet sm
|
|||||||
{
|
{
|
||||||
$this->${8:$1} = $$1;
|
$this->${8:$1} = $$1;
|
||||||
return $this;
|
return $this;
|
||||||
}${9}
|
}
|
||||||
# getter method
|
# getter method
|
||||||
snippet gm
|
snippet gm
|
||||||
/**
|
/**
|
||||||
@ -74,50 +74,50 @@ snippet gm
|
|||||||
${3:public} function get${4:$2}()
|
${3:public} function get${4:$2}()
|
||||||
{
|
{
|
||||||
return $this->${5:$1};
|
return $this->${5:$1};
|
||||||
}${6}
|
}
|
||||||
#setter
|
#setter
|
||||||
snippet $s
|
snippet $s
|
||||||
${1:$foo}->set${2:Bar}(${3});
|
${1:$foo}->set${2:Bar}(${0});
|
||||||
#getter
|
#getter
|
||||||
snippet $g
|
snippet $g
|
||||||
${1:$foo}->get${2:Bar}();
|
${1:$foo}->get${0:Bar}();
|
||||||
|
|
||||||
# Tertiary conditional
|
# Tertiary conditional
|
||||||
snippet =?:
|
snippet =?:
|
||||||
$${1:foo} = ${2:true} ? ${3:a} : ${4};
|
$${1:foo} = ${2:true} ? ${3:a} : ${0};
|
||||||
snippet ?:
|
snippet ?:
|
||||||
${1:true} ? ${2:a} : ${3}
|
${1:true} ? ${2:a} : ${0}
|
||||||
|
|
||||||
snippet C
|
snippet C
|
||||||
$_COOKIE['${1:variable}']${2}
|
$_COOKIE['${1:variable}']
|
||||||
snippet E
|
snippet E
|
||||||
$_ENV['${1:variable}']${2}
|
$_ENV['${1:variable}']
|
||||||
snippet F
|
snippet F
|
||||||
$_FILES['${1:variable}']${2}
|
$_FILES['${1:variable}']
|
||||||
snippet G
|
snippet G
|
||||||
$_GET['${1:variable}']${2}
|
$_GET['${1:variable}']
|
||||||
snippet P
|
snippet P
|
||||||
$_POST['${1:variable}']${2}
|
$_POST['${1:variable}']
|
||||||
snippet R
|
snippet R
|
||||||
$_REQUEST['${1:variable}']${2}
|
$_REQUEST['${1:variable}']
|
||||||
snippet S
|
snippet S
|
||||||
$_SERVER['${1:variable}']${2}
|
$_SERVER['${1:variable}']
|
||||||
snippet SS
|
snippet SS
|
||||||
$_SESSION['${1:variable}']${2}
|
$_SESSION['${1:variable}']
|
||||||
|
|
||||||
# the following are old ones
|
# the following are old ones
|
||||||
snippet inc
|
snippet inc
|
||||||
include '${1:file}';${2}
|
include '${1:file}';
|
||||||
snippet inc1
|
snippet inc1
|
||||||
include_once '${1:file}';${2}
|
include_once '${1:file}';
|
||||||
snippet req
|
snippet req
|
||||||
require '${1:file}';${2}
|
require '${1:file}';
|
||||||
snippet req1
|
snippet req1
|
||||||
require_once '${1:file}';${2}
|
require_once '${1:file}';
|
||||||
# Start Docblock
|
# Start Docblock
|
||||||
snippet /*
|
snippet /*
|
||||||
/**
|
/**
|
||||||
* ${1}
|
* ${0}
|
||||||
*/
|
*/
|
||||||
# Class - post doc
|
# Class - post doc
|
||||||
snippet doc_cp
|
snippet doc_cp
|
||||||
@ -127,14 +127,14 @@ snippet doc_cp
|
|||||||
* @package ${2:default}
|
* @package ${2:default}
|
||||||
* @subpackage ${3:default}
|
* @subpackage ${3:default}
|
||||||
* @author ${4:`g:snips_author`}
|
* @author ${4:`g:snips_author`}
|
||||||
*/${5}
|
*/
|
||||||
# Class Variable - post doc
|
# Class Variable - post doc
|
||||||
snippet doc_vp
|
snippet doc_vp
|
||||||
/**
|
/**
|
||||||
* ${1:undocumented class variable}
|
* ${1:undocumented class variable}
|
||||||
*
|
*
|
||||||
* @var ${2:string}
|
* @var ${2:string}
|
||||||
*/${3}
|
*/
|
||||||
# Class Variable
|
# Class Variable
|
||||||
snippet doc_v
|
snippet doc_v
|
||||||
/**
|
/**
|
||||||
@ -142,7 +142,7 @@ snippet doc_v
|
|||||||
*
|
*
|
||||||
* @var ${4:string}
|
* @var ${4:string}
|
||||||
*/
|
*/
|
||||||
${1:var} $${2};${5}
|
${1:var} $${2};
|
||||||
# Class
|
# Class
|
||||||
snippet doc_c
|
snippet doc_c
|
||||||
/**
|
/**
|
||||||
@ -154,19 +154,19 @@ snippet doc_c
|
|||||||
*/
|
*/
|
||||||
${1:}class ${2:}
|
${1:}class ${2:}
|
||||||
{
|
{
|
||||||
${7}
|
${0}
|
||||||
} // END $1class $2
|
} // END $1class $2
|
||||||
# Constant Definition - post doc
|
# Constant Definition - post doc
|
||||||
snippet doc_dp
|
snippet doc_dp
|
||||||
/**
|
/**
|
||||||
* ${1:undocumented constant}
|
* ${1:undocumented constant}
|
||||||
*/${2}
|
*/
|
||||||
# Constant Definition
|
# Constant Definition
|
||||||
snippet doc_d
|
snippet doc_d
|
||||||
/**
|
/**
|
||||||
* ${3:undocumented constant}
|
* ${3:undocumented constant}
|
||||||
*/
|
*/
|
||||||
define(${1}, ${2});${4}
|
define(${1}, ${2});
|
||||||
# Function - post doc
|
# Function - post doc
|
||||||
snippet doc_fp
|
snippet doc_fp
|
||||||
/**
|
/**
|
||||||
@ -174,7 +174,7 @@ snippet doc_fp
|
|||||||
*
|
*
|
||||||
* @return ${2:void}
|
* @return ${2:void}
|
||||||
* @author ${3:`g:snips_author`}
|
* @author ${3:`g:snips_author`}
|
||||||
*/${4}
|
*/
|
||||||
# Function signature
|
# Function signature
|
||||||
snippet doc_s
|
snippet doc_s
|
||||||
/**
|
/**
|
||||||
@ -183,7 +183,7 @@ snippet doc_s
|
|||||||
* @return ${5:void}
|
* @return ${5:void}
|
||||||
* @author ${6:`g:snips_author`}
|
* @author ${6:`g:snips_author`}
|
||||||
*/
|
*/
|
||||||
${1}function ${2}(${3});${7}
|
${1}function ${2}(${3});
|
||||||
# Function
|
# Function
|
||||||
snippet doc_f
|
snippet doc_f
|
||||||
/**
|
/**
|
||||||
@ -193,7 +193,7 @@ snippet doc_f
|
|||||||
* @author ${6:`g:snips_author`}
|
* @author ${6:`g:snips_author`}
|
||||||
*/
|
*/
|
||||||
${1}function ${2}(${3})
|
${1}function ${2}(${3})
|
||||||
{${7}
|
{${0}
|
||||||
}
|
}
|
||||||
# Header
|
# Header
|
||||||
snippet doc_h
|
snippet doc_h
|
||||||
@ -203,7 +203,7 @@ snippet doc_h
|
|||||||
* @author ${2:`g:snips_author`}
|
* @author ${2:`g:snips_author`}
|
||||||
* @version ${3:$Id$}
|
* @version ${3:$Id$}
|
||||||
* @copyright ${4:$2}, `strftime('%d %B, %Y')`
|
* @copyright ${4:$2}, `strftime('%d %B, %Y')`
|
||||||
* @package ${5:default}
|
* @package ${0:default}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
# Interface
|
# Interface
|
||||||
@ -216,7 +216,7 @@ snippet interface
|
|||||||
*/
|
*/
|
||||||
interface ${1:`vim_snippets#Filename()`}
|
interface ${1:`vim_snippets#Filename()`}
|
||||||
{
|
{
|
||||||
${5}
|
${0}
|
||||||
}
|
}
|
||||||
# class ...
|
# class ...
|
||||||
snippet class
|
snippet class
|
||||||
@ -231,7 +231,7 @@ snippet class
|
|||||||
*/
|
*/
|
||||||
${5:public} function ${6:__construct}(${7:argument})
|
${5:public} function ${6:__construct}(${7:argument})
|
||||||
{
|
{
|
||||||
${8}
|
${0}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
snippet nc
|
snippet nc
|
||||||
@ -239,30 +239,30 @@ snippet nc
|
|||||||
|
|
||||||
${2:abstract }class ${3:`vim_snippets#Filename()`}
|
${2:abstract }class ${3:`vim_snippets#Filename()`}
|
||||||
{
|
{
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
# define(...)
|
# define(...)
|
||||||
snippet def
|
snippet def
|
||||||
define('${1}'${2});${3}
|
define('${1}'${2});
|
||||||
# defined(...)
|
# defined(...)
|
||||||
snippet def?
|
snippet def?
|
||||||
${1}defined('${2}')${3}
|
${1}defined('${2}')
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1:/* condition */}) {
|
while (${1:/* condition */}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# do ... while
|
# do ... while
|
||||||
snippet do
|
snippet do
|
||||||
do {
|
do {
|
||||||
${2}
|
${0}
|
||||||
} while (${1:/* condition */});
|
} while (${1:/* condition */});
|
||||||
snippet if
|
snippet if
|
||||||
if (${1:/* condition */}) {
|
if (${1:/* condition */}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet ifil
|
snippet ifil
|
||||||
<?php if (${1:/* condition */}): ?>
|
<?php if (${1:/* condition */}): ?>
|
||||||
${2}
|
${0}
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
snippet ife
|
snippet ife
|
||||||
if (${1:/* condition */}) {
|
if (${1:/* condition */}) {
|
||||||
@ -270,28 +270,28 @@ snippet ife
|
|||||||
} else {
|
} else {
|
||||||
${3}
|
${3}
|
||||||
}
|
}
|
||||||
${4}
|
${0}
|
||||||
snippet ifeil
|
snippet ifeil
|
||||||
<?php if (${1:/* condition */}): ?>
|
<?php if (${1:/* condition */}): ?>
|
||||||
${2:<!-- html... -->}
|
${2:<!-- html... -->}
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
${3:<!-- html... -->}
|
${3:<!-- html... -->}
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
${4}
|
${0}
|
||||||
snippet el
|
snippet el
|
||||||
else {
|
else {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet eif
|
snippet eif
|
||||||
elseif (${1:/* condition */}) {
|
elseif (${1:/* condition */}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet switch
|
snippet switch
|
||||||
switch ($${1:variable}) {
|
switch ($${1:variable}) {
|
||||||
case '${2:value}':
|
case '${2:value}':
|
||||||
${3}
|
${3}
|
||||||
break;
|
break;
|
||||||
${5}
|
${0}
|
||||||
default:
|
default:
|
||||||
${4}
|
${4}
|
||||||
break;
|
break;
|
||||||
@ -299,52 +299,52 @@ snippet switch
|
|||||||
snippet case
|
snippet case
|
||||||
case '${1:value}':
|
case '${1:value}':
|
||||||
${2}
|
${2}
|
||||||
break;${3}
|
break;
|
||||||
snippet for
|
snippet for
|
||||||
for ($${2:i} = 0; $$2 < ${1:count}; $$2${3:++}) {
|
for ($${2:i} = 0; $$2 < ${1:count}; $$2${3:++}) {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
snippet foreach
|
snippet foreach
|
||||||
foreach ($${1:variable} as $${2:value}) {
|
foreach ($${1:variable} as $${2:value}) {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet foreachil
|
snippet foreachil
|
||||||
<?php foreach ($${1:variable} as $${2:value}): ?>
|
<?php foreach ($${1:variable} as $${2:value}): ?>
|
||||||
${3:<!-- html... -->}
|
${0:<!-- html... -->}
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
snippet foreachk
|
snippet foreachk
|
||||||
foreach ($${1:variable} as $${2:key} => $${3:value}) {
|
foreach ($${1:variable} as $${2:key} => $${3:value}) {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
snippet foreachkil
|
snippet foreachkil
|
||||||
<?php foreach ($${1:variable} as $${2:key} => $${3:value}): ?>
|
<?php foreach ($${1:variable} as $${2:key} => $${3:value}): ?>
|
||||||
${4:<!-- html... -->}
|
${0:<!-- html... -->}
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
# $... = array (...)
|
# $... = array (...)
|
||||||
snippet array
|
snippet array
|
||||||
$${1:arrayName} = array('${2}' => ${3});${4}
|
$${1:arrayName} = array('${2}' => ${3});
|
||||||
snippet try
|
snippet try
|
||||||
try {
|
try {
|
||||||
${2}
|
${0}
|
||||||
} catch (${1:Exception} $e) {
|
} catch (${1:Exception} $e) {
|
||||||
}
|
}
|
||||||
# lambda with closure
|
# lambda with closure
|
||||||
snippet lambda
|
snippet lambda
|
||||||
${1:static }function (${2:args}) use (${3:&$x, $y /*put vars in scope (closure) */}) {
|
${1:static }function (${2:args}) use (${3:&$x, $y /*put vars in scope (closure) */}) {
|
||||||
${4}
|
${0}
|
||||||
};
|
};
|
||||||
# pre_dump();
|
# pre_dump();
|
||||||
snippet pd
|
snippet pd
|
||||||
echo '<pre>'; var_dump(${1}); echo '</pre>';
|
echo '<pre>'; var_dump(${0}); echo '</pre>';
|
||||||
# pre_dump(); die();
|
# pre_dump(); die();
|
||||||
snippet pdd
|
snippet pdd
|
||||||
echo '<pre>'; var_dump(${1}); echo '</pre>'; die(${2:});
|
echo '<pre>'; var_dump(${1}); echo '</pre>'; die(${0:});
|
||||||
snippet vd
|
snippet vd
|
||||||
var_dump(${1});
|
var_dump(${0});
|
||||||
snippet vdd
|
snippet vdd
|
||||||
var_dump(${1}); die(${2:});
|
var_dump(${1}); die(${0:});
|
||||||
snippet vdf
|
snippet vdf
|
||||||
error_log(print_r($${1:foo}, true), 3, '${2:/tmp/debug.log}');${3}
|
error_log(print_r($${1:foo}, true), 3, '${2:/tmp/debug.log}');
|
||||||
snippet http_redirect
|
snippet http_redirect
|
||||||
header ("HTTP/1.1 301 Moved Permanently");
|
header ("HTTP/1.1 301 Moved Permanently");
|
||||||
header ("Location: ".URL);
|
header ("Location: ".URL);
|
||||||
@ -372,13 +372,13 @@ snippet gs
|
|||||||
{
|
{
|
||||||
$this->$4 = $$1;
|
$this->$4 = $$1;
|
||||||
return $this;
|
return $this;
|
||||||
}${8}
|
}
|
||||||
# anotation, get, and set, useful for doctrine
|
# anotation, get, and set, useful for doctrine
|
||||||
snippet ags
|
snippet ags
|
||||||
/**
|
/**
|
||||||
* ${1:description}
|
* ${1:description}
|
||||||
*
|
*
|
||||||
* @${7}
|
* @${0}
|
||||||
*/
|
*/
|
||||||
${2:protected} $${3:foo};
|
${2:protected} $${3:foo};
|
||||||
|
|
||||||
@ -398,12 +398,12 @@ snippet retf
|
|||||||
return false;
|
return false;
|
||||||
snippet am
|
snippet am
|
||||||
$${1:foo} = array_map(function($${2:v}) {
|
$${1:foo} = array_map(function($${2:v}) {
|
||||||
${3}
|
${0}
|
||||||
return $$2;
|
return $$2;
|
||||||
}, $$1);
|
}, $$1);
|
||||||
snippet aw
|
snippet aw
|
||||||
array_walk($${1:foo}, function(&$${2:v}, $${3:k}) {
|
array_walk($${1:foo}, function(&$${2:v}, $${3:k}) {
|
||||||
$$2 = ${4};
|
$$2 = ${0};
|
||||||
});
|
});
|
||||||
|
|
||||||
# static var assign once
|
# static var assign once
|
||||||
|
@ -2,28 +2,28 @@
|
|||||||
snippet ps
|
snippet ps
|
||||||
create or replace package ${1:name}
|
create or replace package ${1:name}
|
||||||
as
|
as
|
||||||
${2:-- spec}
|
${0:-- spec}
|
||||||
end; -- end of package spec $1
|
end; -- end of package spec $1
|
||||||
# create package body
|
# create package body
|
||||||
snippet pb
|
snippet pb
|
||||||
create or replace package body ${1:name}
|
create or replace package body ${1:name}
|
||||||
as
|
as
|
||||||
${2:-- body}
|
${0:-- body}
|
||||||
end; -- end of package body $1;
|
end; -- end of package body $1;
|
||||||
# package procedure spec
|
# package procedure spec
|
||||||
snippet pps
|
snippet pps
|
||||||
procedure ${1:name}(${2:args});
|
procedure ${1:name}(${0:args});
|
||||||
# package procedure body
|
# package procedure body
|
||||||
snippet ppb
|
snippet ppb
|
||||||
procedure ${1:name}(${2:args})
|
procedure ${1:name}(${2:args})
|
||||||
as
|
as
|
||||||
begin
|
begin
|
||||||
${3:-- body}
|
${0:-- body}
|
||||||
end $2;
|
end $2;
|
||||||
# package function spec
|
# package function spec
|
||||||
snippet pfs
|
snippet pfs
|
||||||
function ${1:name}(${2:args})
|
function ${1:name}(${2:args})
|
||||||
return ${3:type};
|
return ${0:type};
|
||||||
# package function body
|
# package function body
|
||||||
snippet pfb
|
snippet pfb
|
||||||
function ${1:name}(${2:args})
|
function ${1:name}(${2:args})
|
||||||
@ -31,7 +31,7 @@ snippet pfb
|
|||||||
as
|
as
|
||||||
l_res $3;
|
l_res $3;
|
||||||
begin
|
begin
|
||||||
${4:-- body};
|
${0:-- body};
|
||||||
return l_res;
|
return l_res;
|
||||||
end $1;
|
end $1;
|
||||||
# snow errors
|
# snow errors
|
||||||
@ -39,71 +39,71 @@ snippet err
|
|||||||
show errors;
|
show errors;
|
||||||
# proc/func in parameter
|
# proc/func in parameter
|
||||||
snippet p
|
snippet p
|
||||||
${1:name} ${2:in} ${3:type} ${4: := null}
|
${1:name} ${2:in} ${3:type} ${0: := null}
|
||||||
# package type: record
|
# package type: record
|
||||||
snippet tr
|
snippet tr
|
||||||
type tr_${1:name} is record (${2:/* columns */});
|
type tr_${1:name} is record (${0:/* columns */});
|
||||||
# package type: nested table
|
# package type: nested table
|
||||||
snippet tt
|
snippet tt
|
||||||
type tt_${1:name} is table of tr_${2:name};
|
type tt_${1:name} is table of tr_${0:name};
|
||||||
# package type: indexed table
|
# package type: indexed table
|
||||||
snippet tti
|
snippet tti
|
||||||
type tt_${1:name} is table of tr_${2:name} index by binary_integer;
|
type tt_${1:name} is table of tr_${0:name} index by binary_integer;
|
||||||
# proc/func comment
|
# proc/func comment
|
||||||
snippet doc
|
snippet doc
|
||||||
/*
|
/*
|
||||||
* ${1: comment ...}
|
* ${0: comment ...}
|
||||||
*/
|
*/
|
||||||
# plsql block
|
# plsql block
|
||||||
snippet beg
|
snippet beg
|
||||||
begin
|
begin
|
||||||
${1}
|
${0}
|
||||||
end;
|
end;
|
||||||
# plsql block with declare part
|
# plsql block with declare part
|
||||||
snippet dec
|
snippet dec
|
||||||
declare
|
declare
|
||||||
${1}
|
${1}
|
||||||
begin
|
begin
|
||||||
${2}
|
${0}
|
||||||
end;
|
end;
|
||||||
# return pipe row
|
# return pipe row
|
||||||
snippet rpipe
|
snippet rpipe
|
||||||
for ${1:i} in 1 .. ${2:l_res}.count loop
|
for ${1:i} in 1 .. ${0:l_res}.count loop
|
||||||
pipe row( $2($1) );
|
pipe row( $2($1) );
|
||||||
end loop;
|
end loop;
|
||||||
return;
|
return;
|
||||||
# bulk collect
|
# bulk collect
|
||||||
snippet bc
|
snippet bc
|
||||||
bulk collect into ${1}
|
bulk collect into ${0}
|
||||||
# local variable
|
# local variable
|
||||||
snippet l
|
snippet l
|
||||||
l_${1} ${2:number};
|
l_${1} ${0:number};
|
||||||
# output
|
# output
|
||||||
snippet log
|
snippet log
|
||||||
dbms_output.put_line('${1}');
|
dbms_output.put_line('${0}');
|
||||||
# for loop
|
# for loop
|
||||||
snippet for
|
snippet for
|
||||||
for ${1:i} in ${2:1}..${3:42} loop
|
for ${1:i} in ${2:1}..${3:42} loop
|
||||||
${3}
|
${0}
|
||||||
end loop;
|
end loop;
|
||||||
# for loop with select
|
# for loop with select
|
||||||
snippet fors
|
snippet fors
|
||||||
for ${1:rec} in (${2: select}) loop
|
for ${1:rec} in (${2: select}) loop
|
||||||
${3}
|
${0}
|
||||||
end loop;
|
end loop;
|
||||||
# for loop with collection
|
# for loop with collection
|
||||||
snippet forc
|
snippet forc
|
||||||
for ${1:i} in ${2:l_var}.first .. $2.last loop
|
for ${1:i} in ${2:l_var}.first .. $2.last loop
|
||||||
${3: -- dbms_output.put_line($2($1)); }
|
${0: -- dbms_output.put_line($2($1)); }
|
||||||
end loop;
|
end loop;
|
||||||
# if
|
# if
|
||||||
snippet if
|
snippet if
|
||||||
if ${1} then
|
if ${1} then
|
||||||
${2}
|
${0}
|
||||||
end if;
|
end if;
|
||||||
snippet ife
|
snippet ife
|
||||||
if ${1} then
|
if ${1} then
|
||||||
${2}
|
${2}
|
||||||
else
|
else
|
||||||
${3}
|
${0}
|
||||||
end if;
|
end if;
|
||||||
|
@ -2,4 +2,4 @@ snippet msg
|
|||||||
msgid "${1}"
|
msgid "${1}"
|
||||||
msgstr "${2}"
|
msgstr "${2}"
|
||||||
|
|
||||||
${3}
|
${0}
|
||||||
|
@ -7,13 +7,13 @@ snippet doc
|
|||||||
* @author ${2:name}
|
* @author ${2:name}
|
||||||
* @since ${3:`strftime("%d/%m/%y %H:%M:%S")`}
|
* @since ${3:`strftime("%d/%m/%y %H:%M:%S")`}
|
||||||
*/
|
*/
|
||||||
${4}
|
${0}
|
||||||
# doc comment
|
# doc comment
|
||||||
snippet docc
|
snippet docc
|
||||||
/**
|
/**
|
||||||
* ${1:@private}$0
|
* ${1:@private}$0
|
||||||
*/
|
*/
|
||||||
${2}
|
${0}
|
||||||
# class
|
# class
|
||||||
snippet class
|
snippet class
|
||||||
${1:public }class ${2:`fnamemodify(bufname("%"),":t:r")`} ${3:extends}
|
${1:public }class ${2:`fnamemodify(bufname("%"),":t:r")`} ${3:extends}
|
||||||
@ -36,36 +36,36 @@ snippet package
|
|||||||
* @since ${3:`strftime("%d/%m/%y %H:%M:%S")`}
|
* @since ${3:`strftime("%d/%m/%y %H:%M:%S")`}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package ${4:package};
|
package ${0:package};
|
||||||
# function
|
# function
|
||||||
snippet fun
|
snippet fun
|
||||||
${1:void/private/protected/public}${2: static} ${3:name}(${4}) {
|
${1:void/private/protected/public}${2: static} ${3:name}(${4}) {
|
||||||
${5://if not void return null;}
|
${5://if not void return null;}
|
||||||
}
|
}
|
||||||
${6}
|
${0}
|
||||||
snippet fn
|
snippet fn
|
||||||
${1:void }${2:name}(${3}) {
|
${1:void }${2:name}(${3}) {
|
||||||
${4://if not void return null;}
|
${4://if not void return null;}
|
||||||
}
|
}
|
||||||
${5}
|
${0}
|
||||||
# constant
|
# constant
|
||||||
snippet const
|
snippet const
|
||||||
static final ${1:Object} ${2:VAR_NAM} = ${3};
|
static final ${1:Object} ${2:VAR_NAM} = ${0};
|
||||||
# var
|
# var
|
||||||
snippet var
|
snippet var
|
||||||
${1:private/public }${2:static }${3:String} ${4:str}${5: =}${6:value};
|
${1:private/public }${2:static }${3:String} ${4:str}${5: =}${0:value};
|
||||||
# var objects
|
# var objects
|
||||||
snippet obj
|
snippet obj
|
||||||
${1:private/public }${2:Object} ${3:o}${4: = new }$2(${5});
|
${1:private/public }${2:Object} ${3:o}${4: = new }$2(${0});
|
||||||
#loop for
|
#loop for
|
||||||
snippet for
|
snippet for
|
||||||
for (int ${2:i} = 0; $2 < ${1:Things}.length; $2${3:++}) {
|
for (int ${2:i} = 0; $2 < ${1:Things}.length; $2${3:++}) {
|
||||||
${4:$1[$2]}
|
${0:$1[$2]}
|
||||||
};
|
};
|
||||||
#loop while
|
#loop while
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1:/* condition */}) {
|
while (${1:/* condition */}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
#break
|
#break
|
||||||
snippet break
|
snippet break
|
||||||
@ -73,7 +73,7 @@ snippet break
|
|||||||
#case
|
#case
|
||||||
snippet case
|
snippet case
|
||||||
case ${1:expression} :
|
case ${1:expression} :
|
||||||
${2}
|
${0}
|
||||||
break;
|
break;
|
||||||
#default
|
#default
|
||||||
snippet default
|
snippet default
|
||||||
@ -86,20 +86,20 @@ snippet switch
|
|||||||
case '${3:case}':
|
case '${3:case}':
|
||||||
${4}
|
${4}
|
||||||
break;
|
break;
|
||||||
${5}
|
${0}
|
||||||
default:
|
default:
|
||||||
${2}
|
${2}
|
||||||
}
|
}
|
||||||
#try
|
#try
|
||||||
snippet try
|
snippet try
|
||||||
try {
|
try {
|
||||||
${3}
|
${0}
|
||||||
} catch(${1:Exception} ${2:e}) {
|
} catch(${1:Exception} ${2:e}) {
|
||||||
}
|
}
|
||||||
#try catch finally
|
#try catch finally
|
||||||
snippet tryf
|
snippet tryf
|
||||||
try {
|
try {
|
||||||
${3}
|
${0}
|
||||||
} catch(${1:Exception} ${2:e}) {
|
} catch(${1:Exception} ${2:e}) {
|
||||||
} finally {
|
} finally {
|
||||||
}
|
}
|
||||||
@ -109,29 +109,29 @@ snippet throw
|
|||||||
#ternary
|
#ternary
|
||||||
snippet ?
|
snippet ?
|
||||||
? ${1:trueExpression} : ${2:falseExpression}
|
? ${1:trueExpression} : ${2:falseExpression}
|
||||||
${3}
|
${0}
|
||||||
snippet if
|
snippet if
|
||||||
if (${1:true}) {${2}}
|
if (${1:true}) {${0}}
|
||||||
# if ... else
|
# if ... else
|
||||||
snippet ife
|
snippet ife
|
||||||
if (${1:true}) {${2}}
|
if (${1:true}) {${2}}
|
||||||
else{${3}}
|
else{${0}}
|
||||||
#get
|
#get
|
||||||
snippet get
|
snippet get
|
||||||
public ${1:String} get${2}() {
|
public ${1:String} get${2}() {
|
||||||
return ${2:fieldName};
|
return ${0:fieldName};
|
||||||
}
|
}
|
||||||
#set
|
#set
|
||||||
snippet set
|
snippet set
|
||||||
public void set${1}(${2:String} new${1}) {
|
public void set${1}(${0:String} new${1}) {
|
||||||
${1:fieldName} = new${1};
|
${1:fieldName} = new${1};
|
||||||
}
|
}
|
||||||
#printIn
|
#printIn
|
||||||
snippet println
|
snippet println
|
||||||
println("${1:`fnamemodify(bufname("%"),":t:r")`}::${2:method}() "${3: +} ${4});
|
println("${1:`fnamemodify(bufname("%"),":t:r")`}::${2:method}() "${3: +} ${0});
|
||||||
#println string
|
#println string
|
||||||
snippet pr
|
snippet pr
|
||||||
println("${1}");
|
println("${0}");
|
||||||
#setup draw
|
#setup draw
|
||||||
snippet setup
|
snippet setup
|
||||||
void setup(){
|
void setup(){
|
||||||
@ -139,7 +139,7 @@ snippet setup
|
|||||||
}
|
}
|
||||||
|
|
||||||
void draw(){
|
void draw(){
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
#setup OPENGL
|
#setup OPENGL
|
||||||
snippet opengl
|
snippet opengl
|
||||||
@ -168,7 +168,7 @@ snippet opengl
|
|||||||
}
|
}
|
||||||
|
|
||||||
void initGL(){
|
void initGL(){
|
||||||
${5}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
void getOpenGLErrors(){
|
void getOpenGLErrors(){
|
||||||
@ -201,14 +201,14 @@ snippet opengl
|
|||||||
#GL Functions
|
#GL Functions
|
||||||
snippet gl begin gl
|
snippet gl begin gl
|
||||||
pgl.beginGL();
|
pgl.beginGL();
|
||||||
${1}
|
${0}
|
||||||
pgl.endGL();
|
pgl.endGL();
|
||||||
snippet gl gl swap interval
|
snippet gl gl swap interval
|
||||||
// specify the minimum swap interval for buffer swaps.
|
// specify the minimum swap interval for buffer swaps.
|
||||||
gl.setSwapInterval(${1:interval});
|
gl.setSwapInterval(${0:interval});
|
||||||
snippet gl gl call list
|
snippet gl gl call list
|
||||||
// execute a display list
|
// execute a display list
|
||||||
gl.glCallList(${1:list});
|
gl.glCallList(${0:list});
|
||||||
snippet gl gl gen buffers
|
snippet gl gl gen buffers
|
||||||
// import java.nio.IntBuffer;
|
// import java.nio.IntBuffer;
|
||||||
// import java.nio.FloatBuffer;
|
// import java.nio.FloatBuffer;
|
||||||
@ -219,7 +219,7 @@ snippet gl gl gen buffers
|
|||||||
gl.glGenBuffers($1, bufferObjects);
|
gl.glGenBuffers($1, bufferObjects);
|
||||||
|
|
||||||
int vertexCount = ${2:3};
|
int vertexCount = ${2:3};
|
||||||
int numCoordinates = ${3:3};
|
int numCoordinates = ${0:3};
|
||||||
// vertexCount * numCoordinates
|
// vertexCount * numCoordinates
|
||||||
FloatBuffer vertices = BufferUtil.newFloatBuffer(vertexCount * numCoordinates);
|
FloatBuffer vertices = BufferUtil.newFloatBuffer(vertexCount * numCoordinates);
|
||||||
float[] v = {0.0f, 0.0f, 0.0f,
|
float[] v = {0.0f, 0.0f, 0.0f,
|
||||||
@ -231,144 +231,144 @@ snippet gl gl gen buffers
|
|||||||
gl.glBindBuffer(GL.GL_ARRAY_BUFFER, bufferObjects.get(0));
|
gl.glBindBuffer(GL.GL_ARRAY_BUFFER, bufferObjects.get(0));
|
||||||
gl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount * numCoordinates * BufferUtil.SIZEOF_FLOAT, vertices, GL.GL_STATIC_DRAW);
|
gl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount * numCoordinates * BufferUtil.SIZEOF_FLOAT, vertices, GL.GL_STATIC_DRAW);
|
||||||
snippet gl gl bind buffer
|
snippet gl gl bind buffer
|
||||||
${2:// A buffer ID of zero unbinds a buffer object}
|
${0:// A buffer ID of zero unbinds a buffer object}
|
||||||
gl.glBindBuffer(GL.GL_ARRAY_BUFFER, ${1:0});
|
gl.glBindBuffer(GL.GL_ARRAY_BUFFER, ${1:0});
|
||||||
snippet gl gl delete buffers
|
snippet gl gl delete buffers
|
||||||
${3:// Parameters are the same for glGenBuffers}
|
${0:// Parameters are the same for glGenBuffers}
|
||||||
gl.glDeleteBuffers(${1:4}, ${2:bufferObjects});
|
gl.glDeleteBuffers(${1:4}, ${2:bufferObjects});
|
||||||
snippet gl gl depth mask
|
snippet gl gl depth mask
|
||||||
// enable or disable writing into the depth buffer
|
// enable or disable writing into the depth buffer
|
||||||
gl.glDepthMask(${1:flag});
|
gl.glDepthMask(${0:flag});
|
||||||
snippet gl gl load identity
|
snippet gl gl load identity
|
||||||
// replaces the top of the active matrix stack with the identity matrix
|
// replaces the top of the active matrix stack with the identity matrix
|
||||||
gl.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
snippet gl gl tex coord 2f
|
snippet gl gl tex coord 2f
|
||||||
// set the current texture coordinates - 2 floats
|
// set the current texture coordinates - 2 floats
|
||||||
gl.glTexCoord2f(${1:0.0f}, ${2:0.0f});
|
gl.glTexCoord2f(${1:0.0f}, ${0:0.0f});
|
||||||
snippet gl gl vertex 2f
|
snippet gl gl vertex 2f
|
||||||
gl.glVertex2f(${1:0.0f}, ${2:0.0f});
|
gl.glVertex2f(${1:0.0f}, ${0:0.0f});
|
||||||
snippet gl gl vertex 3f
|
snippet gl gl vertex 3f
|
||||||
gl.glVertex3f(${1:0.0f}, ${2:0.0f}, ${3:0.0f});
|
gl.glVertex3f(${1:0.0f}, ${2:0.0f}, ${0:0.0f});
|
||||||
snippet gl gl translate f
|
snippet gl gl translate f
|
||||||
// multiply the current matrix by a translation matrix
|
// multiply the current matrix by a translation matrix
|
||||||
gl.glTranslatef(${1:x}, ${2:y}, ${3:z});
|
gl.glTranslatef(${1:x}, ${2:y}, ${0:z});
|
||||||
snippet gl gl rotate f
|
snippet gl gl rotate f
|
||||||
// rotate, x-axis, y-axis, z-axiz
|
// rotate, x-axis, y-axis, z-axiz
|
||||||
gl.glRotatef(${1:angle}, ${2:x}, ${3:y}, ${4:z});
|
gl.glRotatef(${1:angle}, ${2:x}, ${3:y}, ${0:z});
|
||||||
snippet gl gl scale f
|
snippet gl gl scale f
|
||||||
// multiply the current matrix by a general scaling matrix
|
// multiply the current matrix by a general scaling matrix
|
||||||
gl.glScalef(${1:x}, ${2:y}, ${3:z});
|
gl.glScalef(${1:x}, ${2:y}, ${0:z});
|
||||||
snippet gl gl color 4f
|
snippet gl gl color 4f
|
||||||
gl.glColor4f(${1:red}, ${2:green}, ${3:blue}, ${4:alpha});
|
gl.glColor4f(${1:red}, ${2:green}, ${3:blue}, ${0:alpha});
|
||||||
snippet gl gl clear color
|
snippet gl gl clear color
|
||||||
gl.glClearColor(${1:red}, ${2:green}, ${3:blue}, ${4:alpha});
|
gl.glClearColor(${1:red}, ${2:green}, ${3:blue}, ${0:alpha});
|
||||||
snippet gl gl color 3f
|
snippet gl gl color 3f
|
||||||
gl.glColor3f(${1:red}, ${2:green}, ${3:blue});
|
gl.glColor3f(${1:red}, ${2:green}, ${0:blue});
|
||||||
snippet gl gl push matrix
|
snippet gl gl push matrix
|
||||||
// spush and pop the current matrix stack
|
// spush and pop the current matrix stack
|
||||||
gl.glPushMatrix();
|
gl.glPushMatrix();
|
||||||
${1}
|
${0}
|
||||||
gl.glPopMatrix();
|
gl.glPopMatrix();
|
||||||
snippet gl gl gen lists
|
snippet gl gl gen lists
|
||||||
gl.glGenLists(${1:1})
|
gl.glGenLists(${0:1})
|
||||||
snippet gl gl flush
|
snippet gl gl flush
|
||||||
// Empties buffers. Call this when all previous issues commands completed
|
// Empties buffers. Call this when all previous issues commands completed
|
||||||
gl.glFlush();
|
gl.glFlush();
|
||||||
${1}
|
${0}
|
||||||
snippet gl gl get error
|
snippet gl gl get error
|
||||||
println(gl.glGetError());
|
println(gl.glGetError());
|
||||||
snippet gl gl clear
|
snippet gl gl clear
|
||||||
gl.glClear(${1:GL.GL_COLOR_BUFFER_BIT}${2: | }${3:GL.GL_DEPTH_BUFFER_BIT});
|
gl.glClear(${1:GL.GL_COLOR_BUFFER_BIT}${2: | }${0:GL.GL_DEPTH_BUFFER_BIT});
|
||||||
|
|
||||||
#frame operations
|
#frame operations
|
||||||
snippet fr framerate
|
snippet fr framerate
|
||||||
frameRate(${1:30});
|
frameRate(${1:30});
|
||||||
${2}
|
${0}
|
||||||
snippet fr frameRate
|
snippet fr frameRate
|
||||||
frameRate
|
frameRate
|
||||||
snippet fr frameCount
|
snippet fr frameCount
|
||||||
frameCount
|
frameCount
|
||||||
snippet fr saveFrame
|
snippet fr saveFrame
|
||||||
saveFrame("${1:filename-####}${2:.ext}");
|
saveFrame("${1:filename-####}${0:.ext}");
|
||||||
|
|
||||||
#size
|
#size
|
||||||
snippet size normal size
|
snippet size normal size
|
||||||
size(${1:200}, ${2:200}${3:, P3D});
|
size(${1:200}, ${2:200}${0:, P3D});
|
||||||
snippet size opengl size
|
snippet size opengl size
|
||||||
size(${1:200}, ${2:200}${3:, OPENGL});
|
size(${1:200}, ${2:200}${0:, OPENGL});
|
||||||
|
|
||||||
#PRIMITIVES
|
#PRIMITIVES
|
||||||
#color
|
#color
|
||||||
snippet color
|
snippet color
|
||||||
color ${1:c}${2: = color(}${3:value1, }${4:value2, }${5:value3)};
|
color ${1:c}${2: = color(}${3:value1, }${4:value2, }${0:value3)};
|
||||||
#char
|
#char
|
||||||
snippet char
|
snippet char
|
||||||
char ${1:m}${2: = "}${3:char"};
|
char ${1:m}${2: = "}${0:char"};
|
||||||
#float
|
#float
|
||||||
snippet float
|
snippet float
|
||||||
float ${1:f}${2: = }${3:0.0f};
|
float ${1:f}${2: = }${0:0.0f};
|
||||||
#int
|
#int
|
||||||
snippet int
|
snippet int
|
||||||
int ${1:f}${2: = }${3:0};
|
int ${1:f}${2: = }${0:0};
|
||||||
#boolean
|
#boolean
|
||||||
snippet boolean
|
snippet boolean
|
||||||
boolean ${1:b}${2: = }${3:true};
|
boolean ${1:b}${2: = }${0:true};
|
||||||
#byte
|
#byte
|
||||||
snippet byte
|
snippet byte
|
||||||
byte ${1:b}${2: = }${3:127};
|
byte ${1:b}${2: = }${0:127};
|
||||||
#string
|
#string
|
||||||
snippet string
|
snippet string
|
||||||
String ${1:str}${2: = "}${3:CCCP"};
|
String ${1:str}${2: = "}${0:CCCP"};
|
||||||
#array
|
#array
|
||||||
snippet array
|
snippet array
|
||||||
${1:int}[] ${2:numbers}${3: = new $1}[${4:length}];
|
${1:int}[] ${2:numbers}${3: = new $1}[${0:length}];
|
||||||
#object
|
#object
|
||||||
snippet object
|
snippet object
|
||||||
${1:Object} ${2:o}${3: = new $1}(${4});
|
${1:Object} ${2:o}${3: = new $1}(${0});
|
||||||
|
|
||||||
#curve
|
#curve
|
||||||
snippet curve curve
|
snippet curve curve
|
||||||
curve(${1:x1}, ${2:y1}, ${3:x2}, ${4:y2}, ${5:x3}, ${6:y3}, ${7:x4}, ${8:y4});
|
curve(${1:x1}, ${2:y1}, ${3:x2}, ${4:y2}, ${5:x3}, ${6:y3}, ${7:x4}, ${0:y4});
|
||||||
snippet curve curve 3D
|
snippet curve curve 3D
|
||||||
curve(${1:x1}, ${2:y1}, ${3:z1}, ${4:x2}, ${5:y2}, ${6:z2}, ${7:x3}, ${8:y3}, ${9:z3}, ${10:x4}, ${11:y4}, ${12:z4});
|
curve(${1:x1}, ${2:y1}, ${3:z1}, ${4:x2}, ${5:y2}, ${6:z2}, ${7:x3}, ${8:y3}, ${9:z3}, ${10:x4}, ${11:y4}, ${0:z4});
|
||||||
snippet curve curve Detail
|
snippet curve curve Detail
|
||||||
curveDetail(${1:detail});
|
curveDetail(${0:detail});
|
||||||
snippet curve curve point
|
snippet curve curve point
|
||||||
curvePoint(${1:a}, ${2:b}, ${3:c}, ${4:d}, ${5:t});
|
curvePoint(${1:a}, ${2:b}, ${3:c}, ${4:d}, ${0:t});
|
||||||
snippet curve curve tightness
|
snippet curve curve tightness
|
||||||
curveTightness(${1:squishy});
|
curveTightness(${0:squishy});
|
||||||
|
|
||||||
#bezier
|
#bezier
|
||||||
snippet bezier bezier
|
snippet bezier bezier
|
||||||
bezier(${1:x1}, ${2:y1}, ${3:cx1}, ${4:cy1}, ${5:cx2}, ${6:cy2}, ${7:x2}, ${8:y2});
|
bezier(${1:x1}, ${2:y1}, ${3:cx1}, ${4:cy1}, ${5:cx2}, ${6:cy2}, ${7:x2}, ${0:y2});
|
||||||
snippet bezier bezier 3D
|
snippet bezier bezier 3D
|
||||||
bezier(${1:x1}, ${2:y1}, ${3:z1}, ${4:cx1}, ${5:cy1}, ${6:cz1}, ${7:cx2}, ${8:cy2}, ${9:cz2}, ${10:x2}, ${11:y2}, ${12:z2});
|
bezier(${1:x1}, ${2:y1}, ${3:z1}, ${4:cx1}, ${5:cy1}, ${6:cz1}, ${7:cx2}, ${8:cy2}, ${9:cz2}, ${10:x2}, ${11:y2}, ${0:z2});
|
||||||
snippet bezier bezier detail
|
snippet bezier bezier detail
|
||||||
bezierDetail(${1:detail});
|
bezierDetail(${0:detail});
|
||||||
snippet bezier bezier tangent
|
snippet bezier bezier tangent
|
||||||
bezierTangent(${1:a}, ${2:b}, ${3:c}, ${4:d}, ${5:t});
|
bezierTangent(${1:a}, ${2:b}, ${3:c}, ${4:d}, ${0:t});
|
||||||
snippet bezier bezier point
|
snippet bezier bezier point
|
||||||
bezierPoint(${1:a}, ${2:b}, ${3:c}, ${4:d}, ${5:t});
|
bezierPoint(${1:a}, ${2:b}, ${3:c}, ${4:d}, ${0:t});
|
||||||
|
|
||||||
#vertex
|
#vertex
|
||||||
snippet vertex vertex
|
snippet vertex vertex
|
||||||
vertex(${1:x}, ${2:y}${3:, }${4:u}${5:, }${6:v});
|
vertex(${1:x}, ${2:y}${3:, }${4:u}${5:, }${0:v});
|
||||||
snippet vertex vertex 3D
|
snippet vertex vertex 3D
|
||||||
vertex(${1:x}, ${2:y}, ${3:z}${4:, }${5:u}${6:, }${7:v});
|
vertex(${1:x}, ${2:y}, ${3:z}${4:, }${5:u}${6:, }${0:v});
|
||||||
snippet vertex vertex bezier
|
snippet vertex vertex bezier
|
||||||
bezierVertex(${1:cx1}, ${2:cy1}, ${3:cx2}, ${4:cy2}, ${5:x}, ${6:y});
|
bezierVertex(${1:cx1}, ${2:cy1}, ${3:cx2}, ${4:cy2}, ${5:x}, ${0:y});
|
||||||
snippet vertex vertex bezier 3D
|
snippet vertex vertex bezier 3D
|
||||||
bezierVertex(${1:cx1}, ${2:cy1}, ${3:cz1}, ${4:cx2}, ${5:cy2}, ${6:cz2}, ${7:x}, ${8:y}, ${9:z});
|
bezierVertex(${1:cx1}, ${2:cy1}, ${3:cz1}, ${4:cx2}, ${5:cy2}, ${6:cz2}, ${7:x}, ${8:y}, ${0:z});
|
||||||
snippet vertex vertex curve
|
snippet vertex vertex curve
|
||||||
curveVertex(${1:x}, ${2:y});
|
curveVertex(${1:x}, ${0:y});
|
||||||
snippet vertex vertex curve 3D
|
snippet vertex vertex curve 3D
|
||||||
curveVertex(${1:x}, ${2:y}, ${3:z});
|
curveVertex(${1:x}, ${2:y}, ${0:z});
|
||||||
|
|
||||||
#stroke
|
#stroke
|
||||||
snippet stroke stroke
|
snippet stroke stroke
|
||||||
stroke(${1:value1}, ${2:value2}, ${3:value3}${4:, }${5:alpha});
|
stroke(${1:value1}, ${2:value2}, ${3:value3}${4:, }${0:alpha});
|
||||||
snippet stroke stroke weight
|
snippet stroke stroke weight
|
||||||
strokeWeight(${1:1});
|
strokeWeight(${0:1});
|
||||||
snippet stroke no stroke
|
snippet stroke no stroke
|
||||||
noStroke();
|
noStroke();
|
||||||
|
|
||||||
@ -379,19 +379,19 @@ snippet mouse mouse y
|
|||||||
mouseY
|
mouseY
|
||||||
snippet mouse mouse drag
|
snippet mouse mouse drag
|
||||||
void mouseDragged(){
|
void mouseDragged(){
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet mouse mouse move
|
snippet mouse mouse move
|
||||||
void mouseMoved(){
|
void mouseMoved(){
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet mouse mouse release
|
snippet mouse mouse release
|
||||||
void mouseReleased(){
|
void mouseReleased(){
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet mouse mouse pressed
|
snippet mouse mouse pressed
|
||||||
void mousePressed(){
|
void mousePressed(){
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet mouse mouse pressed?
|
snippet mouse mouse pressed?
|
||||||
mousePressed
|
mousePressed
|
||||||
@ -409,36 +409,36 @@ snippet key key
|
|||||||
key
|
key
|
||||||
snippet key key released
|
snippet key key released
|
||||||
void keyReleased(){
|
void keyReleased(){
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet key key typed
|
snippet key key typed
|
||||||
void keyTyped(){
|
void keyTyped(){
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet key key pressed
|
snippet key key pressed
|
||||||
void keyPressed(){
|
void keyPressed(){
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet key key pressed?
|
snippet key key pressed?
|
||||||
keyPressed
|
keyPressed
|
||||||
|
|
||||||
#file
|
#file
|
||||||
snippet file load string
|
snippet file load string
|
||||||
loadStrings("${1:filename}");
|
loadStrings("${0:filename}");
|
||||||
snippet file save string
|
snippet file save string
|
||||||
saveStrings(${1:filename}, ${2:strings});
|
saveStrings(${1:filename}, ${0:strings});
|
||||||
snippet file load bytes
|
snippet file load bytes
|
||||||
loadBytes("${1:filename}");
|
loadBytes("${0:filename}");
|
||||||
snippet file begin record
|
snippet file begin record
|
||||||
beginRecord(${1:renderer}, ${2:filename});
|
beginRecord(${1:renderer}, ${0:filename});
|
||||||
snippet file end record
|
snippet file end record
|
||||||
endRecord();
|
endRecord();
|
||||||
snippet file save bytes
|
snippet file save bytes
|
||||||
saveBytes(${1:filename}, ${2:bytes});
|
saveBytes(${1:filename}, ${0:bytes});
|
||||||
snippet file create writer
|
snippet file create writer
|
||||||
createWriter(${1:filename});
|
createWriter(${0:filename});
|
||||||
snippet file create reader
|
snippet file create reader
|
||||||
createReader(${1:filename});
|
createReader(${0:filename});
|
||||||
|
|
||||||
#time
|
#time
|
||||||
snippet time hour
|
snippet time hour
|
||||||
@ -456,62 +456,62 @@ snippet time second
|
|||||||
|
|
||||||
#matrix
|
#matrix
|
||||||
snippet matrix reset matrix
|
snippet matrix reset matrix
|
||||||
translate(${1:x}, ${2:y}, ${3:z});
|
translate(${1:x}, ${2:y}, ${0:z});
|
||||||
snippet matrix print matrix
|
snippet matrix print matrix
|
||||||
printMatrix();
|
printMatrix();
|
||||||
snippet matrix push matrix
|
snippet matrix push matrix
|
||||||
pushMatrix();
|
pushMatrix();
|
||||||
${1:};
|
${0:};
|
||||||
popMatrix();
|
popMatrix();
|
||||||
|
|
||||||
|
|
||||||
#text
|
#text
|
||||||
snippet txt text data
|
snippet txt text data
|
||||||
text(${1:data}, ${2:x}, ${3:y}${4:, }${5:z});
|
text(${1:data}, ${2:x}, ${3:y}${4:, }${0:z});
|
||||||
snippet txt text string data
|
snippet txt text string data
|
||||||
text(${1:stringdata}, ${2:x}, ${3:y}, ${4:width}, ${5:height}${6:, }${7:z});
|
text(${1:stringdata}, ${2:x}, ${3:y}, ${4:width}, ${5:height}${6:, }${0:z});
|
||||||
snippet txt text size
|
snippet txt text size
|
||||||
textSize(${1:size});
|
textSize(${0:size});
|
||||||
snippet txt text leading
|
snippet txt text leading
|
||||||
textLeading(${1:size});
|
textLeading(${0:size});
|
||||||
snippet txt text width
|
snippet txt text width
|
||||||
textWidth(${1:data});
|
textWidth(${0:data});
|
||||||
snippet txt text descent
|
snippet txt text descent
|
||||||
textDescent();
|
textDescent();
|
||||||
snippet txt text ascent
|
snippet txt text ascent
|
||||||
textAscent();
|
textAscent();
|
||||||
snippet txt font
|
snippet txt font
|
||||||
PFont ${1:font};
|
PFont ${1:font};
|
||||||
$1 = loadFont("${2:FFScala-32.vlw}");
|
$1 = loadFont("${0:FFScala-32.vlw}");
|
||||||
#load font
|
#load font
|
||||||
snippet txt load font
|
snippet txt load font
|
||||||
${1:font} = loadFont("${2:FFScala-32.vlw}");
|
${1:font} = loadFont("${0:FFScala-32.vlw}");
|
||||||
snippet txt text font
|
snippet txt text font
|
||||||
textFont(${1:font}${2:, }${3:size});
|
textFont(${1:font}${2:, }${0:size});
|
||||||
|
|
||||||
#math
|
#math
|
||||||
snippet math tangent
|
snippet math tangent
|
||||||
tan(${1:rad});
|
tan(${0:rad});
|
||||||
snippet math atan
|
snippet math atan
|
||||||
atan(${1:rad});
|
atan(${0:rad});
|
||||||
snippet math atan2
|
snippet math atan2
|
||||||
atan2(${1:rad});
|
atan2(${0:rad});
|
||||||
snippet math sin
|
snippet math sin
|
||||||
sin(${1:rad});
|
sin(${0:rad});
|
||||||
snippet math asin
|
snippet math asin
|
||||||
asin(${1:rad});
|
asin(${0:rad});
|
||||||
snippet math cos
|
snippet math cos
|
||||||
cos(${1:rad});
|
cos(${0:rad});
|
||||||
snippet math acos
|
snippet math acos
|
||||||
acos(${1:rad});
|
acos(${0:rad});
|
||||||
snippet math degrees
|
snippet math degrees
|
||||||
degrees(${1:rad});
|
degrees(${0:rad});
|
||||||
snippet math radians
|
snippet math radians
|
||||||
radians(${1:deg});
|
radians(${0:deg});
|
||||||
snippet math random seed
|
snippet math random seed
|
||||||
randomSeed(${1:value});
|
randomSeed(${0:value});
|
||||||
snippet math random
|
snippet math random
|
||||||
random(${1:value1}${2:, }${3:value2});
|
random(${1:value1}${2:, }${0:value2});
|
||||||
snippet math half PI
|
snippet math half PI
|
||||||
HALF_PI
|
HALF_PI
|
||||||
snippet math 2 PI
|
snippet math 2 PI
|
||||||
@ -519,61 +519,61 @@ snippet math 2 PI
|
|||||||
snippet math PI
|
snippet math PI
|
||||||
PI
|
PI
|
||||||
snippet math pow
|
snippet math pow
|
||||||
pow(${1:num}, ${2:exponent});
|
pow(${1:num}, ${0:exponent});
|
||||||
snippet math floor
|
snippet math floor
|
||||||
floor(${1:value});
|
floor(${0:value});
|
||||||
snippet math sqrt
|
snippet math sqrt
|
||||||
sqrt(${1:value});
|
sqrt(${0:value});
|
||||||
snippet math abs
|
snippet math abs
|
||||||
abs(${1:value});
|
abs(${0:value});
|
||||||
snippet math sq
|
snippet math sq
|
||||||
sq(${1:value});
|
sq(${0:value});
|
||||||
snippet math ceil
|
snippet math ceil
|
||||||
ceil(${1:value});
|
ceil(${0:value});
|
||||||
snippet math exp
|
snippet math exp
|
||||||
exp(${1:value});
|
exp(${0:value});
|
||||||
snippet math round
|
snippet math round
|
||||||
round(${1:value}};
|
round(${0:value}};
|
||||||
snippet math min
|
snippet math min
|
||||||
min(${1:value1}, ${2:value2}${3:, }${4:value3});
|
min(${1:value1}, ${2:value2}${3:, }${0:value3});
|
||||||
snippet math max
|
snippet math max
|
||||||
max(${1:value1}, ${2:value2}${3:, }${4:value3});
|
max(${1:value1}, ${2:value2}${3:, }${0:value3});
|
||||||
snippet math array max
|
snippet math array max
|
||||||
max(${1:array});
|
max(${0:array});
|
||||||
snippet math array min
|
snippet math array min
|
||||||
min(${1:array});
|
min(${0:array});
|
||||||
snippet math logarithm
|
snippet math logarithm
|
||||||
log(${1:value});
|
log(${0:value});
|
||||||
snippet math map
|
snippet math map
|
||||||
map(${1:value}, ${2:low1}, ${4:high1}, ${5:low2}, ${6:high2});
|
map(${1:value}, ${2:low1}, ${4:high1}, ${5:low2}, ${0:high2});
|
||||||
snippet math normalize
|
snippet math normalize
|
||||||
norm(${1:value}, ${2:low}, ${3:high});
|
norm(${1:value}, ${2:low}, ${0:high});
|
||||||
snippet math constrain
|
snippet math constrain
|
||||||
constrain(${1:value}, ${2:min}, ${3:max});
|
constrain(${1:value}, ${2:min}, ${0:max});
|
||||||
snippet math magnitude of a vector
|
snippet math magnitude of a vector
|
||||||
mag(${1:a}, ${2:b}${3:, }${4:c});
|
mag(${1:a}, ${2:b}${3:, }${0:c});
|
||||||
snippet math distance
|
snippet math distance
|
||||||
dist(${1:x1}, ${2:y1}, ${4:x2}, ${5:y2});
|
dist(${1:x1}, ${2:y1}, ${4:x2}, ${0:y2});
|
||||||
snippet math distance 3D
|
snippet math distance 3D
|
||||||
dist(${1:x1}, ${2:y1}, ${3:z1}, ${4:x2}, ${5:y2}, ${6:z2});
|
dist(${1:x1}, ${2:y1}, ${3:z1}, ${4:x2}, ${5:y2}, ${0:z2});
|
||||||
|
|
||||||
#noise math
|
#noise math
|
||||||
snippet noise set noise
|
snippet noise set noise
|
||||||
noise(${1:x}${2:, }${3:y}${4:, }${5:z});
|
noise(${1:x}${2:, }${3:y}${4:, }${0:z});
|
||||||
snippet noise noise detail
|
snippet noise noise detail
|
||||||
noiseDetail(${1:octaves}${2:, }${3:falloff});
|
noiseDetail(${1:octaves}${2:, }${0:falloff});
|
||||||
snippet noise noise seed
|
snippet noise noise seed
|
||||||
noiseSeed(${1:x});
|
noiseSeed(${0:x});
|
||||||
|
|
||||||
#material
|
#material
|
||||||
snippet material shininess
|
snippet material shininess
|
||||||
shininess(${1:shine});
|
shininess(${0:shine});
|
||||||
snippet material specular
|
snippet material specular
|
||||||
specular(${1:value1}, ${2:value2}, ${3:value3}${4:, }${5:alpha});
|
specular(${1:value1}, ${2:value2}, ${3:value3}${4:, }${0:alpha});
|
||||||
snippet material ambient
|
snippet material ambient
|
||||||
ambient(${1:value1}, ${2:value2}, ${3:value3});
|
ambient(${1:value1}, ${2:value2}, ${0:value3});
|
||||||
snippet material emissive
|
snippet material emissive
|
||||||
emissive(${1:value1}, ${2:value2}, ${3:value3});
|
emissive(${1:value1}, ${2:value2}, ${0:value3});
|
||||||
|
|
||||||
#light
|
#light
|
||||||
snippet light no light
|
snippet light no light
|
||||||
@ -581,25 +581,25 @@ snippet light no light
|
|||||||
snippet light light
|
snippet light light
|
||||||
lights();
|
lights();
|
||||||
snippet light diretional light
|
snippet light diretional light
|
||||||
directionalLight(${1:v1}, ${2:v2}, ${3:v3}, ${4:nx}, ${5:ny}, ${6:nz});
|
directionalLight(${1:v1}, ${2:v2}, ${3:v3}, ${4:nx}, ${5:ny}, ${0:nz});
|
||||||
snippet light point light
|
snippet light point light
|
||||||
pointLight(${1:v1}, ${2:v2}, ${3:v3}, ${4:nx}, ${5:ny}, ${6:nz});
|
pointLight(${1:v1}, ${2:v2}, ${3:v3}, ${4:nx}, ${5:ny}, ${0:nz});
|
||||||
snippet light falloff light
|
snippet light falloff light
|
||||||
lightFalloff(${1:constant}, ${2:linear}, ${3:quadratic});
|
lightFalloff(${1:constant}, ${2:linear}, ${0:quadratic});
|
||||||
snippet light normal light
|
snippet light normal light
|
||||||
normal(${1:nx}, ${2:ny}, ${3:nz});
|
normal(${1:nx}, ${2:ny}, ${0:nz});
|
||||||
snippet light specular light
|
snippet light specular light
|
||||||
lightFalloff(${1:v1}, ${2:v2}, ${3:v3});
|
lightFalloff(${1:v1}, ${2:v2}, ${0:v3});
|
||||||
snippet light ambient light
|
snippet light ambient light
|
||||||
ambientLight(${1:v1}, ${2:v2}, ${3:v3}${7:, ${4:x}, ${5:y}, ${6:z}});
|
ambientLight(${1:v1}, ${2:v2}, ${3:v3}${7:, ${4:x}, ${5:y}, ${0:z}});
|
||||||
snippet light spot light
|
snippet light spot light
|
||||||
spotLight(${1:v1}, ${2:v2}, ${3:v3}, ${4:x}, ${5:y}, ${6:z}, ${7:nx}, ${8:ny}, ${9:nz}, ${10:angle}, ${11:concentration});
|
spotLight(${1:v1}, ${2:v2}, ${3:v3}, ${4:x}, ${5:y}, ${6:z}, ${7:nx}, ${8:ny}, ${9:nz}, ${10:angle}, ${0:concentration});
|
||||||
|
|
||||||
#camera
|
#camera
|
||||||
snippet cam camera
|
snippet cam camera
|
||||||
camera(${1:eyeX}, ${2:eyeY}, ${3:eyeZ}, ${4:centerX}, ${5:centerY}, ${6:centerZ}, ${7:upX}, ${8:upY}, ${9:upZ});
|
camera(${1:eyeX}, ${2:eyeY}, ${3:eyeZ}, ${4:centerX}, ${5:centerY}, ${6:centerZ}, ${7:upX}, ${8:upY}, ${0:upZ});
|
||||||
snippet cam ortho
|
snippet cam ortho
|
||||||
ortho(${1:left}, ${2:right}, ${3:bottom}, ${4:top}, ${5:near}, ${6:far});
|
ortho(${1:left}, ${2:right}, ${3:bottom}, ${4:top}, ${5:near}, ${0:far});
|
||||||
snippet cam begin camera
|
snippet cam begin camera
|
||||||
beginCamera();
|
beginCamera();
|
||||||
snippet cam end camera
|
snippet cam end camera
|
||||||
@ -609,75 +609,75 @@ snippet cam print camera
|
|||||||
snippet cam print camera projection
|
snippet cam print camera projection
|
||||||
printProjection();
|
printProjection();
|
||||||
snippet cam perspective camera
|
snippet cam perspective camera
|
||||||
perspective(${1:fov}, ${2:aspect}, ${3:zNear}, ${4:zFar});
|
perspective(${1:fov}, ${2:aspect}, ${3:zNear}, ${0:zFar});
|
||||||
snippet cam frustrum
|
snippet cam frustrum
|
||||||
frustrum(${1:left}, ${2:right}, ${3:bottom}, ${4:top}, ${5:near}, ${6:far});
|
frustrum(${1:left}, ${2:right}, ${3:bottom}, ${4:top}, ${5:near}, ${0:far});
|
||||||
|
|
||||||
#transformations
|
#transformations
|
||||||
snippet trans rotate
|
snippet trans rotate
|
||||||
rotate${1:X}(${1:angle});
|
rotate${1:X}(${0:angle});
|
||||||
snippet trans translate
|
snippet trans translate
|
||||||
translate(${1:x}, ${2:y}${3:, }${4:z});
|
translate(${1:x}, ${2:y}${3:, }${0:z});
|
||||||
snippet trans scale size
|
snippet trans scale size
|
||||||
scale(${1:size});
|
scale(${0:size});
|
||||||
snippet trans scale
|
snippet trans scale
|
||||||
scale(${1:x}, ${2:y}${3:, }${4:z});
|
scale(${1:x}, ${2:y}${3:, }${0:z});
|
||||||
|
|
||||||
#coordinates
|
#coordinates
|
||||||
snippet coord
|
snippet coord
|
||||||
${1:model/screen}${2:X}(${3:x}, ${4:y}, ${5:z});
|
${1:model/screen}${2:X}(${3:x}, ${4:y}, ${0:z});
|
||||||
|
|
||||||
#effects
|
#effects
|
||||||
snippet fx brightness
|
snippet fx brightness
|
||||||
brightness(${1:color});
|
brightness(${0:color});
|
||||||
snippet fx lerp color
|
snippet fx lerp color
|
||||||
lerpColor(${1:c1}, ${2:c2}, ${3:amt});
|
lerpColor(${1:c1}, ${2:c2}, ${0:amt});
|
||||||
snippet fx saturation
|
snippet fx saturation
|
||||||
saturation(${1:color});
|
saturation(${0:color});
|
||||||
snippet fx hue
|
snippet fx hue
|
||||||
hue(${1:color});
|
hue(${0:color});
|
||||||
snippet fx alpha
|
snippet fx alpha
|
||||||
alpha(${1:color});
|
alpha(${0:color});
|
||||||
snippet fx tint
|
snippet fx tint
|
||||||
tint(${1:value1}, ${2:value2}, ${3:value3}${4:, }${5:alpha});
|
tint(${1:value1}, ${2:value2}, ${3:value3}${4:, }${0:alpha});
|
||||||
snippet fx notint
|
snippet fx notint
|
||||||
noTint();
|
noTint();
|
||||||
|
|
||||||
#pixel
|
#pixel
|
||||||
snippet px set pixel
|
snippet px set pixel
|
||||||
set(${1:x}, ${2:y}, ${3:color/image});
|
set(${1:x}, ${2:y}, ${0:color/image});
|
||||||
snippet px update pixel
|
snippet px update pixel
|
||||||
updatePixels();
|
updatePixels();
|
||||||
snippet px load pixel
|
snippet px load pixel
|
||||||
loadPixels();
|
loadPixels();
|
||||||
snippet px pixels
|
snippet px pixels
|
||||||
pixels[${1:index}]
|
pixels[${0:index}]
|
||||||
snippet px get pixel
|
snippet px get pixel
|
||||||
get(${1:x}, ${2:y}${3:, }${4:width}${5:, }${6:height});
|
get(${1:x}, ${2:y}${3:, }${4:width}${5:, }${0:height});
|
||||||
|
|
||||||
#geometric figures
|
#geometric figures
|
||||||
snippet geof triangle
|
snippet geof triangle
|
||||||
triangle(${1:x1}, ${2:y1}, ${3:x2}, ${4:y2}, ${5:x3}, ${6:y3});
|
triangle(${1:x1}, ${2:y1}, ${3:x2}, ${4:y2}, ${5:x3}, ${0:y3});
|
||||||
snippet geof line
|
snippet geof line
|
||||||
line(${1:x1}, ${2:y1}, ${3:x2}, ${4:y2});
|
line(${1:x1}, ${2:y1}, ${3:x2}, ${0:y2});
|
||||||
snippet geof line 3D
|
snippet geof line 3D
|
||||||
line(${1:x1}, ${2:y1}, ${3:z1}, ${4:x2}, ${5:y2}, ${6:z2});
|
line(${1:x1}, ${2:y1}, ${3:z1}, ${4:x2}, ${5:y2}, ${0:z2});
|
||||||
snippet geof arc
|
snippet geof arc
|
||||||
arc(${1:x}, ${2:y}, ${3:width}, ${4:height}, ${5:start}, ${6:stop});
|
arc(${1:x}, ${2:y}, ${3:width}, ${4:height}, ${5:start}, ${0:stop});
|
||||||
snippet geof point
|
snippet geof point
|
||||||
point(${1:x}, ${2:y}${3:, }${4:z});
|
point(${1:x}, ${2:y}${3:, }${0:z});
|
||||||
snippet geof quad
|
snippet geof quad
|
||||||
quad(${1:x1}, ${2:y1}, ${3:x2}, ${4:y2}, ${5:x3}, ${6:y3}, ${7:x4}, ${8:y4});
|
quad(${1:x1}, ${2:y1}, ${3:x2}, ${4:y2}, ${5:x3}, ${6:y3}, ${7:x4}, ${0:y4});
|
||||||
snippet geof ellipse
|
snippet geof ellipse
|
||||||
ellipse(${1:x}, ${2:y}, ${3:width}, ${4:height});
|
ellipse(${1:x}, ${2:y}, ${3:width}, ${0:height});
|
||||||
snippet geof rect
|
snippet geof rect
|
||||||
rect(${1:x}, ${2:y}, ${3:width}, ${4:height});
|
rect(${1:x}, ${2:y}, ${3:width}, ${0:height});
|
||||||
snippet geof box
|
snippet geof box
|
||||||
box(${1:width}, ${2:height}, ${3:depth});
|
box(${1:width}, ${2:height}, ${0:depth});
|
||||||
snippet geof sphere
|
snippet geof sphere
|
||||||
sphere(${1:radius});
|
sphere(${0:radius});
|
||||||
snippet geof sphere details
|
snippet geof sphere details
|
||||||
sphereDetail(${1:n});
|
sphereDetail(${0:n});
|
||||||
snippet geof set smooth
|
snippet geof set smooth
|
||||||
smooth();
|
smooth();
|
||||||
snippet geof set no smooth
|
snippet geof set no smooth
|
||||||
@ -685,74 +685,74 @@ snippet geof set no smooth
|
|||||||
|
|
||||||
#array operations
|
#array operations
|
||||||
snippet arrop normal split
|
snippet arrop normal split
|
||||||
split("${1:str}"${2: , }${3:delimiter});
|
split("${1:str}"${2: , }${0:delimiter});
|
||||||
snippet arrop split Tokens
|
snippet arrop split Tokens
|
||||||
splitTokens(${1:str}${2:, }${3:tokens});
|
splitTokens(${1:str}${2:, }${0:tokens});
|
||||||
snippet arrop join
|
snippet arrop join
|
||||||
join(${1:strgArray}${2: , }${3:seperator});
|
join(${1:strgArray}${2: , }${0:seperator});
|
||||||
snippet arrop shorten
|
snippet arrop shorten
|
||||||
shorten(${1:array});
|
shorten(${0:array});
|
||||||
snippet arrop concat
|
snippet arrop concat
|
||||||
concat(${1:array1}, ${2:array2});
|
concat(${1:array1}, ${0:array2});
|
||||||
snippet arrop subset
|
snippet arrop subset
|
||||||
subset(${1:array}, ${2:offset});
|
subset(${1:array}, ${0:offset});
|
||||||
snippet arrop append
|
snippet arrop append
|
||||||
append(${1:array}, ${2:element});
|
append(${1:array}, ${0:element});
|
||||||
snippet arrop reverse
|
snippet arrop reverse
|
||||||
reverse(${1:array});
|
reverse(${0:array});
|
||||||
snippet arrop splice
|
snippet arrop splice
|
||||||
splice(${1:array}, ${2:value/array2}, ${3:index});
|
splice(${1:array}, ${2:value/array2}, ${0:index});
|
||||||
snippet arrop sort
|
snippet arrop sort
|
||||||
sort(${1:dataArray}${2:, }${3:count});
|
sort(${1:dataArray}${2:, }${0:count});
|
||||||
snippet arrop expand
|
snippet arrop expand
|
||||||
expand(${1:array}${2:, }${3:newSize});
|
expand(${1:array}${2:, }${0:newSize});
|
||||||
snippet arrop array copy
|
snippet arrop array copy
|
||||||
arrayCopy(${1:src}, ${2:dest}, ${3:, }${3:length});
|
arrayCopy(${1:src}, ${2:dest}, ${3:, }${0:length});
|
||||||
|
|
||||||
#string operations
|
#string operations
|
||||||
snippet strop str
|
snippet strop str
|
||||||
str("${1:str}");
|
str("${0:str}");
|
||||||
snippet strop match
|
snippet strop match
|
||||||
match(${1:str}, ${2:regexp});
|
match(${1:str}, ${0:regexp});
|
||||||
snippet strop trim
|
snippet strop trim
|
||||||
trim(${1:str});
|
trim(${0:str});
|
||||||
snippet strop nf
|
snippet strop nf
|
||||||
nf(${2:value}, ${3:left}${4:, }${5:right});
|
nf(${2:value}, ${3:left}${4:, }${0:right});
|
||||||
snippet strop nfs
|
snippet strop nfs
|
||||||
nfs(${2:value}, ${3:left}${4:, }${5:right});
|
nfs(${2:value}, ${3:left}${4:, }${0:right});
|
||||||
snippet strop nfp
|
snippet strop nfp
|
||||||
nfp(${2:value}, ${3:left}${4:, }${5:right});
|
nfp(${2:value}, ${3:left}${4:, }${0:right});
|
||||||
snippet strop nfc
|
snippet strop nfc
|
||||||
nfc(${1:value}${2:, }${3:right});
|
nfc(${1:value}${2:, }${0:right});
|
||||||
|
|
||||||
#convert
|
#convert
|
||||||
snippet convert unbinary
|
snippet convert unbinary
|
||||||
unbinary("${1:str}"});
|
unbinary("${0:str}"});
|
||||||
snippet convert hexadecimal
|
snippet convert hexadecimal
|
||||||
hex(${1:c});
|
hex(${0:c});
|
||||||
snippet convert unhex
|
snippet convert unhex
|
||||||
unhex(${1:c});
|
unhex(${0:c});
|
||||||
snippet convert binary
|
snippet convert binary
|
||||||
binary(${1:value}${2:, }${3:digits});
|
binary(${1:value}${2:, }${0:digits});
|
||||||
|
|
||||||
#image operations
|
#image operations
|
||||||
snippet image load image
|
snippet image load image
|
||||||
loadImage(${1:filename});
|
loadImage(${0:filename});
|
||||||
snippet image image
|
snippet image image
|
||||||
image(${1:img}, ${2:x}, ${3:y}${4:, }${5:width}${6:, }${7:height});
|
image(${1:img}, ${2:x}, ${3:y}${4:, }${5:width}${6:, }${0:height});
|
||||||
snippet copy copy
|
snippet copy copy
|
||||||
copy(${1:srcImg}${2:, }${3:x}, ${4:y}, ${5:width}, ${6:height}, ${7:dx}, ${8:dy}, ${9:dwidth}, ${10:dheight});
|
copy(${1:srcImg}${2:, }${3:x}, ${4:y}, ${5:width}, ${6:height}, ${7:dx}, ${8:dy}, ${9:dwidth}, ${0:dheight});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#containers
|
#containers
|
||||||
snippet bg
|
snippet bg
|
||||||
background(${1:value1}, ${2:value2}, ${3:value3}${4:, }${5:alpha});
|
background(${1:value1}, ${2:value2}, ${3:value3}${4:, }${0:alpha});
|
||||||
snippet pg
|
snippet pg
|
||||||
PGraphics pg;
|
PGraphics pg;
|
||||||
pg = createGraphics(${1:width}, ${2:height}${3:, }${4:applet});
|
pg = createGraphics(${1:width}, ${2:height}${3:, }${0:applet});
|
||||||
snippet pimage
|
snippet pimage
|
||||||
PImage(${1:width}, ${2:height});
|
PImage(${1:width}, ${0:height});
|
||||||
|
|
||||||
#UTILS
|
#UTILS
|
||||||
#nofill
|
#nofill
|
||||||
@ -760,25 +760,25 @@ snippet nofill
|
|||||||
noFill();
|
noFill();
|
||||||
#fill
|
#fill
|
||||||
snippet fill
|
snippet fill
|
||||||
fill(${1:value1}, ${2:value2}, ${3:value3}${4:, }${5:alpha});
|
fill(${1:value1}, ${2:value2}, ${3:value3}${4:, }${0:alpha});
|
||||||
#red
|
#red
|
||||||
snippet red
|
snippet red
|
||||||
red(${1:color});
|
red(${0:color});
|
||||||
#green
|
#green
|
||||||
snippet green
|
snippet green
|
||||||
green(${1:color});
|
green(${0:color});
|
||||||
#blue
|
#blue
|
||||||
snippet blue
|
snippet blue
|
||||||
blue(${1:color});
|
blue(${0:color});
|
||||||
#status
|
#status
|
||||||
snippet status
|
snippet status
|
||||||
status(${1:text});
|
status(${0:text});
|
||||||
#param
|
#param
|
||||||
snippet param
|
snippet param
|
||||||
param(${1:s});
|
param(${0:s});
|
||||||
#link
|
#link
|
||||||
snippet link
|
snippet link
|
||||||
link(${1:url}${2:, }${3:target});
|
link(${1:url}${2:, }${0:target});
|
||||||
#@param
|
#@param
|
||||||
snippet @
|
snippet @
|
||||||
@${1:param/return/private/public} ${1:parameter} ${2:description}
|
@${1:param/return/private/public} ${1:parameter} ${0:description}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# Progress/OpenEdge ABL snippets
|
# Progress/OpenEdge ABL snippets
|
||||||
# define
|
# define
|
||||||
snippet defbuf
|
snippet defbuf
|
||||||
DEFINE BUFFER b_${1:TableName} FOR $1 ${2}.
|
DEFINE BUFFER b_${1:TableName} FOR $1 ${0}.
|
||||||
snippet defvar
|
snippet defvar
|
||||||
DEFINE VARIABLE ${1:VariableName} AS ${2}.
|
DEFINE VARIABLE ${1:VariableName} AS ${0}.
|
||||||
snippet nl
|
snippet nl
|
||||||
NO-LOCK
|
NO-LOCK
|
||||||
snippet ne
|
snippet ne
|
||||||
@ -11,25 +11,25 @@ snippet ne
|
|||||||
snippet nle
|
snippet nle
|
||||||
NO-LOCK NO-ERROR
|
NO-LOCK NO-ERROR
|
||||||
snippet ini
|
snippet ini
|
||||||
INITIAL ${1:?}
|
INITIAL ${0:?}
|
||||||
snippet nu
|
snippet nu
|
||||||
NO-UNDO
|
NO-UNDO
|
||||||
snippet err
|
snippet err
|
||||||
ERROR
|
ERROR
|
||||||
snippet ff
|
snippet ff
|
||||||
FIND FIRST ${1:BufferName}
|
FIND FIRST ${1:BufferName}
|
||||||
${2:WHERE $1.${3}} ${4}
|
${2:WHERE $1.${3}} ${0}
|
||||||
snippet input
|
snippet input
|
||||||
DEFINE INPUT PARAMETER ${1:ParamName} AS ${2}.
|
DEFINE INPUT PARAMETER ${1:ParamName} AS ${0}.
|
||||||
snippet output
|
snippet output
|
||||||
DEFINE OUTPUT PARAMETER ${1:ParamName} AS ${2:ParamType}.
|
DEFINE OUTPUT PARAMETER ${1:ParamName} AS ${0:ParamType}.
|
||||||
snippet proc
|
snippet proc
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
PROCEDURE ${1:ProcName}:
|
PROCEDURE ${1:ProcName}:
|
||||||
|
|
||||||
${2}
|
${0}
|
||||||
|
|
||||||
END PROCEDURE. /* $1 */
|
END PROCEDURE. /* $1 */
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ snippet if
|
|||||||
${3:ELSE ${4:OtherWise}}
|
${3:ELSE ${4:OtherWise}}
|
||||||
snippet do
|
snippet do
|
||||||
DO${1: Clauses}:
|
DO${1: Clauses}:
|
||||||
${2}
|
${0}
|
||||||
END.
|
END.
|
||||||
# datatypes
|
# datatypes
|
||||||
snippet int
|
snippet int
|
||||||
|
@ -6,94 +6,94 @@
|
|||||||
# Language Constructs
|
# Language Constructs
|
||||||
snippet class
|
snippet class
|
||||||
class ${1:`vim_snippets#Filename('', 'name')`} {
|
class ${1:`vim_snippets#Filename('', 'name')`} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet node
|
snippet node
|
||||||
node "${1:`vim_snippets#Filename('', 'fqdn')`}" {
|
node "${1:`vim_snippets#Filename('', 'fqdn')`}" {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet case
|
snippet case
|
||||||
case $${1:variable} {
|
case $${1:variable} {
|
||||||
default: { ${2} }
|
default: { ${0} }
|
||||||
}
|
}
|
||||||
snippet ife
|
snippet ife
|
||||||
if $${1:variable} {
|
if $${1:variable} {
|
||||||
${2}
|
${2}
|
||||||
} else {
|
} else {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet if
|
snippet if
|
||||||
if $${1:variable} {
|
if $${1:variable} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet el
|
snippet el
|
||||||
else {
|
else {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet ?
|
snippet ?
|
||||||
? {
|
? {
|
||||||
'${1}' => ${2}
|
'${1}' => ${0}
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
# blocks etc and general syntax sugar
|
# blocks etc and general syntax sugar
|
||||||
snippet [
|
snippet [
|
||||||
[ ${1} ]${2}
|
[ ${1} ]
|
||||||
snippet >
|
snippet >
|
||||||
${1} => ${2}
|
${1} => ${0}
|
||||||
snippet p:
|
snippet p:
|
||||||
"puppet://puppet/${1:module name}/${2:file name}"
|
"puppet://puppet/${1:module name}/${0:file name}"
|
||||||
#
|
#
|
||||||
# Functions
|
# Functions
|
||||||
snippet alert
|
snippet alert
|
||||||
alert("${1:message}")${2}
|
alert("${1:message}")
|
||||||
snippet crit
|
snippet crit
|
||||||
crit("${1:message}")${2}
|
crit("${1:message}")
|
||||||
snippet debug
|
snippet debug
|
||||||
debug("${1:message}")${2}
|
debug("${1:message}")
|
||||||
snippet defined
|
snippet defined
|
||||||
defined(${1:Resource}["${2:name}"])${3}
|
defined(${1:Resource}["${2:name}"])
|
||||||
snippet emerg
|
snippet emerg
|
||||||
emerg("${1:message}")${2}
|
emerg("${1:message}")
|
||||||
snippet extlookup Simple extlookup
|
snippet extlookup Simple extlookup
|
||||||
extlookup("${1:variable}")${2}
|
extlookup("${1:variable}")
|
||||||
snippet extlookup Extlookup with defaults
|
snippet extlookup Extlookup with defaults
|
||||||
extlookup("${1:variable}", "${2:default}")${3}
|
extlookup("${1:variable}", "${2:default}")
|
||||||
snippet extlookup Extlookup with defaults and custom data file
|
snippet extlookup Extlookup with defaults and custom data file
|
||||||
extlookup("${1:variable}", "${2:default}", "${3:data source}")${4}
|
extlookup("${1:variable}", "${2:default}", "${3:data source}")
|
||||||
snippet fail
|
snippet fail
|
||||||
fail("${1:message}")${2}
|
fail("${1:message}")
|
||||||
snippet info
|
snippet info
|
||||||
info("${1:message}")${2}
|
info("${1:message}")
|
||||||
snippet inline_template
|
snippet inline_template
|
||||||
inline_template("<%= ${1} %>")${2}
|
inline_template("<%= ${1} %>")
|
||||||
snippet notice
|
snippet notice
|
||||||
notice("${1:message}")${2}
|
notice("${1:message}")
|
||||||
snippet realize
|
snippet realize
|
||||||
realize(${1:Resource}[${2:name}])${3}
|
realize(${1:Resource}[${2:name}])
|
||||||
snippet regsubst
|
snippet regsubst
|
||||||
regsubst(${1:hay stack}, ${2:needle}, "${3:replacement}")${4}
|
regsubst(${1:hay stack}, ${2:needle}, "${3:replacement}")
|
||||||
snippet inc
|
snippet inc
|
||||||
include ${1:classname}${2}
|
include ${1:classname}
|
||||||
snippet split
|
snippet split
|
||||||
split(${1:hay stack}, "${2:patten}")${3}
|
split(${1:hay stack}, "${2:patten}")
|
||||||
snippet versioncmp
|
snippet versioncmp
|
||||||
versioncmp("${1:version}", "${2:version}")${3}
|
versioncmp("${1:version}", "${2:version}")
|
||||||
snippet warning
|
snippet warning
|
||||||
warning("${1:message}")${2}
|
warning("${1:message}")
|
||||||
#
|
#
|
||||||
# Types
|
# Types
|
||||||
snippet cron
|
snippet cron
|
||||||
cron{ "${1:name}":
|
cron{ "${1:name}":
|
||||||
command => "${2}",
|
command => "${2}",
|
||||||
user => "${3:root}",
|
user => "${3:root}",
|
||||||
${4} => ${5}
|
${4} => ${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet exec
|
snippet exec
|
||||||
exec{ "${1:name}":
|
exec{ "${1:name}":
|
||||||
command => "${2:$1}",
|
command => "${2:$1}",
|
||||||
user => "${3:root}",
|
user => "${3:root}",
|
||||||
${4} => ${5}
|
${4} => ${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet user
|
snippet user
|
||||||
@ -101,55 +101,55 @@ snippet user
|
|||||||
comment => "${2:$1}",
|
comment => "${2:$1}",
|
||||||
ensure => present,
|
ensure => present,
|
||||||
managehome => true,
|
managehome => true,
|
||||||
home => "${3:/home/$1}"
|
home => "${0:/home/$1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet group
|
snippet group
|
||||||
group{ "${1:group}":
|
group{ "${1:group}":
|
||||||
ensure => ${2:present}
|
ensure => ${0:present}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet host
|
snippet host
|
||||||
host{ "${1:hostname}":
|
host{ "${1:hostname}":
|
||||||
ip => ${2:127.0.0.1}
|
ip => ${0:127.0.0.1}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet mailalias
|
snippet mailalias
|
||||||
mailalias{ "${1:localpart}":
|
mailalias{ "${1:localpart}":
|
||||||
recipient => "${2:recipient}"
|
recipient => "${0:recipient}"
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet mount
|
snippet mount
|
||||||
mount{ "${1:destination path}":
|
mount{ "${1:destination path}":
|
||||||
ensure => ${2:mounted},
|
ensure => ${2:mounted},
|
||||||
device => "${3:device name or path}"
|
device => "${0:device name or path}"
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet package
|
snippet package
|
||||||
package{ "${1:package name}":
|
package{ "${1:package name}":
|
||||||
ensure => ${2:present}
|
ensure => ${0:present}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet yumrepo
|
snippet yumrepo
|
||||||
yumrepo{ "${1:repo name}":
|
yumrepo{ "${1:repo name}":
|
||||||
descr => "${2:$1}",
|
descr => "${2:$1}",
|
||||||
enabled => ${3:1}
|
enabled => ${0:1}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet define
|
snippet define
|
||||||
define ${1} (${2}) {
|
define ${1} (${2}) {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet service
|
snippet service
|
||||||
service{ "${1:service}":
|
service{ "${1:service}":
|
||||||
enable => ${2:true},
|
enable => ${2:true},
|
||||||
ensure => ${3:running},
|
ensure => ${0:running},
|
||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet file
|
snippet file
|
||||||
file{ "${1:path}":
|
file{ "${1:path}":
|
||||||
${2} => ${3}
|
${2} => ${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
snippet #!
|
snippet #!
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
snippet imp
|
snippet imp
|
||||||
import ${1:module}
|
import ${0:module}
|
||||||
snippet uni
|
snippet uni
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
${1:representation}
|
${0:representation}
|
||||||
snippet from
|
snippet from
|
||||||
from ${1:package} import ${2:module}
|
from ${1:package} import ${0:module}
|
||||||
# Module Docstring
|
# Module Docstring
|
||||||
snippet docs
|
snippet docs
|
||||||
"""
|
"""
|
||||||
@ -14,21 +14,21 @@ snippet docs
|
|||||||
Author: `g:snips_author`
|
Author: `g:snips_author`
|
||||||
Email: `g:snips_email`
|
Email: `g:snips_email`
|
||||||
Github: `g:snips_github`
|
Github: `g:snips_github`
|
||||||
Description: ${2}
|
Description: ${0}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
snippet wh
|
snippet wh
|
||||||
while ${1:condition}:
|
while ${1:condition}:
|
||||||
${2}
|
${0}
|
||||||
# dowh - does the same as do...while in other languages
|
# dowh - does the same as do...while in other languages
|
||||||
snippet dowh
|
snippet dowh
|
||||||
while True:
|
while True:
|
||||||
${1}
|
${1}
|
||||||
if ${2:condition}:
|
if ${0:condition}:
|
||||||
break
|
break
|
||||||
snippet with
|
snippet with
|
||||||
with ${1:expr} as ${2:var}:
|
with ${1:expr} as ${2:var}:
|
||||||
${3}
|
${0}
|
||||||
# New Class
|
# New Class
|
||||||
snippet cl
|
snippet cl
|
||||||
class ${1:ClassName}(${2:object}):
|
class ${1:ClassName}(${2:object}):
|
||||||
@ -36,19 +36,19 @@ snippet cl
|
|||||||
def __init__(self, ${4:arg}):
|
def __init__(self, ${4:arg}):
|
||||||
${5:super($1, self).__init__()}
|
${5:super($1, self).__init__()}
|
||||||
self.$4 = $4
|
self.$4 = $4
|
||||||
${6}
|
${0}
|
||||||
# New Function
|
# New Function
|
||||||
snippet def
|
snippet def
|
||||||
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
||||||
"""${3:docstring for $1}"""
|
"""${3:docstring for $1}"""
|
||||||
${4}
|
${0}
|
||||||
snippet deff
|
snippet deff
|
||||||
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
||||||
${3}
|
${0}
|
||||||
# New Method
|
# New Method
|
||||||
snippet defs
|
snippet defs
|
||||||
def ${1:mname}(self, ${2:arg}):
|
def ${1:mname}(self, ${2:arg}):
|
||||||
${3}
|
${0}
|
||||||
# New Property
|
# New Property
|
||||||
snippet property
|
snippet property
|
||||||
def ${1:foo}():
|
def ${1:foo}():
|
||||||
@ -58,23 +58,23 @@ snippet property
|
|||||||
def fset(self, value):
|
def fset(self, value):
|
||||||
${4:self._$1 = value}
|
${4:self._$1 = value}
|
||||||
def fdel(self):
|
def fdel(self):
|
||||||
${5:del self._$1}
|
${0:del self._$1}
|
||||||
return locals()
|
return locals()
|
||||||
$1 = property(**$1())
|
$1 = property(**$1())
|
||||||
# Ifs
|
# Ifs
|
||||||
snippet if
|
snippet if
|
||||||
if ${1:condition}:
|
if ${1:condition}:
|
||||||
${2}
|
${0}
|
||||||
snippet el
|
snippet el
|
||||||
else:
|
else:
|
||||||
${1}
|
${0}
|
||||||
snippet ei
|
snippet ei
|
||||||
elif ${1:condition}:
|
elif ${1:condition}:
|
||||||
${2}
|
${0}
|
||||||
# For
|
# For
|
||||||
snippet for
|
snippet for
|
||||||
for ${1:item} in ${2:items}:
|
for ${1:item} in ${2:items}:
|
||||||
${3}
|
${0}
|
||||||
# Encodes
|
# Encodes
|
||||||
snippet cutf8
|
snippet cutf8
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
@ -84,28 +84,28 @@ snippet cascii
|
|||||||
# -*- coding: ascii -*-
|
# -*- coding: ascii -*-
|
||||||
# Lambda
|
# Lambda
|
||||||
snippet ld
|
snippet ld
|
||||||
${1:var} = lambda ${2:vars} : ${3:action}
|
${1:var} = lambda ${2:vars} : ${0:action}
|
||||||
snippet .
|
snippet .
|
||||||
self.
|
self.
|
||||||
snippet try Try/Except
|
snippet try Try/Except
|
||||||
try:
|
try:
|
||||||
${1}
|
${1}
|
||||||
except ${2:Exception}, ${3:e}:
|
except ${2:Exception}, ${3:e}:
|
||||||
${4:raise $3}
|
${0:raise $3}
|
||||||
snippet try Try/Except/Else
|
snippet try Try/Except/Else
|
||||||
try:
|
try:
|
||||||
${1}
|
${1}
|
||||||
except ${2:Exception}, ${3:e}:
|
except ${2:Exception}, ${3:e}:
|
||||||
${4:raise $3}
|
${4:raise $3}
|
||||||
else:
|
else:
|
||||||
${5}
|
${0}
|
||||||
snippet try Try/Except/Finally
|
snippet try Try/Except/Finally
|
||||||
try:
|
try:
|
||||||
${1}
|
${1}
|
||||||
except ${2:Exception}, ${3:e}:
|
except ${2:Exception}, ${3:e}:
|
||||||
${4:raise $3}
|
${4:raise $3}
|
||||||
finally:
|
finally:
|
||||||
${5}
|
${0}
|
||||||
snippet try Try/Except/Else/Finally
|
snippet try Try/Except/Else/Finally
|
||||||
try:
|
try:
|
||||||
${1}
|
${1}
|
||||||
@ -114,14 +114,14 @@ snippet try Try/Except/Else/Finally
|
|||||||
else:
|
else:
|
||||||
${5}
|
${5}
|
||||||
finally:
|
finally:
|
||||||
${6}
|
${0}
|
||||||
# if __name__ == '__main__':
|
# if __name__ == '__main__':
|
||||||
snippet ifmain
|
snippet ifmain
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
${1:main()}
|
${0:main()}
|
||||||
# __magic__
|
# __magic__
|
||||||
snippet _
|
snippet _
|
||||||
__${1:init}__${2}
|
__${1:init}__
|
||||||
# python debugger (pdb)
|
# python debugger (pdb)
|
||||||
snippet pdb
|
snippet pdb
|
||||||
import pdb; pdb.set_trace()
|
import pdb; pdb.set_trace()
|
||||||
@ -135,23 +135,23 @@ snippet pdbbb
|
|||||||
snippet pudb
|
snippet pudb
|
||||||
import pudb; pudb.set_trace()
|
import pudb; pudb.set_trace()
|
||||||
snippet pprint
|
snippet pprint
|
||||||
import pprint; pprint.pprint(${1})${2}
|
import pprint; pprint.pprint(${1})
|
||||||
snippet "
|
snippet "
|
||||||
"""
|
"""
|
||||||
${1:doc}
|
${0:doc}
|
||||||
"""
|
"""
|
||||||
# test function/method
|
# test function/method
|
||||||
snippet test
|
snippet test
|
||||||
def test_${1:description}(${2:`indent('.') ? 'self' : ''`}):
|
def test_${1:description}(${2:`indent('.') ? 'self' : ''`}):
|
||||||
${3}
|
${0}
|
||||||
# test case
|
# test case
|
||||||
snippet testcase
|
snippet testcase
|
||||||
class ${1:ExampleCase}(unittest.TestCase):
|
class ${1:ExampleCase}(unittest.TestCase):
|
||||||
|
|
||||||
def test_${2:description}(self):
|
def test_${2:description}(self):
|
||||||
${3}
|
${0}
|
||||||
snippet fut
|
snippet fut
|
||||||
from __future__ import ${1}
|
from __future__ import ${0}
|
||||||
#getopt
|
#getopt
|
||||||
snippet getopt
|
snippet getopt
|
||||||
try:
|
try:
|
||||||
@ -166,25 +166,25 @@ snippet getopt
|
|||||||
|
|
||||||
for option, argument in opts:
|
for option, argument in opts:
|
||||||
if option in ("-h", "--help"):
|
if option in ("-h", "--help"):
|
||||||
${4}
|
${0}
|
||||||
elif option in ("-v", "--verbose"):
|
elif option in ("-v", "--verbose"):
|
||||||
verbose = argument
|
verbose = argument
|
||||||
# logging
|
# logging
|
||||||
# glog = get log
|
# glog = get log
|
||||||
snippet glog
|
snippet glog
|
||||||
import logging
|
import logging
|
||||||
logger = logging.getLogger(${1:__name__})
|
logger = logging.getLogger(${0:__name__})
|
||||||
snippet le
|
snippet le
|
||||||
logger.error(${1:msg})
|
logger.error(${0:msg})
|
||||||
# conflict with lambda=ld, therefor we change into Logger.debuG
|
# conflict with lambda=ld, therefor we change into Logger.debuG
|
||||||
snippet lg
|
snippet lg
|
||||||
logger.debug(${1:msg})
|
logger.debug(${0:msg})
|
||||||
snippet lw
|
snippet lw
|
||||||
logger.warning(${1:msg})
|
logger.warning(${0:msg})
|
||||||
snippet lc
|
snippet lc
|
||||||
logger.critical(${1:msg})
|
logger.critical(${0:msg})
|
||||||
snippet li
|
snippet li
|
||||||
logger.info(${1:msg})
|
logger.info(${0:msg})
|
||||||
snippet epydoc
|
snippet epydoc
|
||||||
"""
|
"""
|
||||||
${1:Description}
|
${1:Description}
|
||||||
@ -195,5 +195,5 @@ snippet epydoc
|
|||||||
@return: ${5: Description}
|
@return: ${5: Description}
|
||||||
@rtype : ${6: Type}
|
@rtype : ${6: Type}
|
||||||
|
|
||||||
@raise e: ${7: Description}
|
@raise e: ${0: Description}
|
||||||
"""
|
"""
|
||||||
|
@ -3,119 +3,119 @@ snippet #!
|
|||||||
|
|
||||||
# includes
|
# includes
|
||||||
snippet lib
|
snippet lib
|
||||||
library(${1:package})
|
library(${0:package})
|
||||||
snippet req
|
snippet req
|
||||||
require(${1:package})
|
require(${0:package})
|
||||||
snippet source
|
snippet source
|
||||||
source('${1:file}')
|
source('${0:file}')
|
||||||
|
|
||||||
# conditionals
|
# conditionals
|
||||||
snippet if
|
snippet if
|
||||||
if (${1:condition}) {
|
if (${1:condition}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
snippet el
|
snippet el
|
||||||
else {
|
else {
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
snippet ei
|
snippet ei
|
||||||
else if (${1:condition}) {
|
else if (${1:condition}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
snippet fun
|
snippet fun
|
||||||
${1:name} = function (${2:variables}) {
|
${1:name} = function (${2:variables}) {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
snippet ret
|
snippet ret
|
||||||
return(${1})
|
return(${0})
|
||||||
|
|
||||||
# dataframes, lists, etc
|
# dataframes, lists, etc
|
||||||
snippet df
|
snippet df
|
||||||
${1:name}[${2:rows}, ${3:cols}]
|
${1:name}[${2:rows}, ${0:cols}]
|
||||||
snippet c
|
snippet c
|
||||||
c(${1:items})
|
c(${0:items})
|
||||||
snippet li
|
snippet li
|
||||||
list(${1:items})
|
list(${0:items})
|
||||||
snippet mat
|
snippet mat
|
||||||
matrix(${1:data}, nrow=${2:rows}, ncol=${3:cols})
|
matrix(${1:data}, nrow=${2:rows}, ncol=${0:cols})
|
||||||
|
|
||||||
# apply functions
|
# apply functions
|
||||||
snippet apply
|
snippet apply
|
||||||
apply(${1:array}, ${2:margin}, ${3:function})
|
apply(${1:array}, ${2:margin}, ${0:function})
|
||||||
snippet lapply
|
snippet lapply
|
||||||
lapply(${1:list}, ${2:function})
|
lapply(${1:list}, ${0:function})
|
||||||
snippet sapply
|
snippet sapply
|
||||||
lapply(${1:list}, ${2:function})
|
lapply(${1:list}, ${0:function})
|
||||||
snippet vapply
|
snippet vapply
|
||||||
vapply(${1:list}, ${2:function}, ${3:type})
|
vapply(${1:list}, ${2:function}, ${0:type})
|
||||||
snippet mapply
|
snippet mapply
|
||||||
mapply(${1:function}, ${2:...})
|
mapply(${1:function}, ${0:...})
|
||||||
snippet tapply
|
snippet tapply
|
||||||
tapply(${1:vector}, ${2:index}, ${3:function})
|
tapply(${1:vector}, ${2:index}, ${0:function})
|
||||||
snippet rapply
|
snippet rapply
|
||||||
rapply(${1:list}, ${2:function})
|
rapply(${1:list}, ${0:function})
|
||||||
|
|
||||||
# plyr functions
|
# plyr functions
|
||||||
snippet dd
|
snippet dd
|
||||||
ddply(${1:frame}, ${2:variables}, ${3:function})
|
ddply(${1:frame}, ${2:variables}, ${0:function})
|
||||||
snippet dl
|
snippet dl
|
||||||
dlply(${1:frame}, ${2:variables}, ${3:function})
|
dlply(${1:frame}, ${2:variables}, ${0:function})
|
||||||
snippet da
|
snippet da
|
||||||
daply(${1:frame}, ${2:variables}, ${3:function})
|
daply(${1:frame}, ${2:variables}, ${0:function})
|
||||||
snippet d_
|
snippet d_
|
||||||
d_ply(${1:frame}, ${2:variables}, ${3:function})
|
d_ply(${1:frame}, ${2:variables}, ${0:function})
|
||||||
|
|
||||||
snippet ad
|
snippet ad
|
||||||
adply(${1:array}, ${2:margin}, ${3:function})
|
adply(${1:array}, ${2:margin}, ${0:function})
|
||||||
snippet al
|
snippet al
|
||||||
alply(${1:array}, ${2:margin}, ${3:function})
|
alply(${1:array}, ${2:margin}, ${0:function})
|
||||||
snippet aa
|
snippet aa
|
||||||
aaply(${1:array}, ${2:margin}, ${3:function})
|
aaply(${1:array}, ${2:margin}, ${0:function})
|
||||||
snippet a_
|
snippet a_
|
||||||
a_ply(${1:array}, ${2:margin}, ${3:function})
|
a_ply(${1:array}, ${2:margin}, ${0:function})
|
||||||
|
|
||||||
snippet ld
|
snippet ld
|
||||||
ldply(${1:list}, ${2:function})
|
ldply(${1:list}, ${0:function})
|
||||||
snippet ll
|
snippet ll
|
||||||
llply(${1:list}, ${2:function})
|
llply(${1:list}, ${0:function})
|
||||||
snippet la
|
snippet la
|
||||||
laply(${1:list}, ${2:function})
|
laply(${1:list}, ${0:function})
|
||||||
snippet l_
|
snippet l_
|
||||||
l_ply(${1:list}, ${2:function})
|
l_ply(${1:list}, ${0:function})
|
||||||
|
|
||||||
snippet md
|
snippet md
|
||||||
mdply(${1:matrix}, ${2:function})
|
mdply(${1:matrix}, ${0:function})
|
||||||
snippet ml
|
snippet ml
|
||||||
mlply(${1:matrix}, ${2:function})
|
mlply(${1:matrix}, ${0:function})
|
||||||
snippet ma
|
snippet ma
|
||||||
maply(${1:matrix}, ${2:function})
|
maply(${1:matrix}, ${0:function})
|
||||||
snippet m_
|
snippet m_
|
||||||
m_ply(${1:matrix}, ${2:function})
|
m_ply(${1:matrix}, ${0:function})
|
||||||
|
|
||||||
# plot functions
|
# plot functions
|
||||||
snippet pl
|
snippet pl
|
||||||
plot(${1:x}, ${2:y})
|
plot(${1:x}, ${0:y})
|
||||||
snippet ggp
|
snippet ggp
|
||||||
ggplot(${1:data}, aes(${2:aesthetics}))
|
ggplot(${1:data}, aes(${0:aesthetics}))
|
||||||
snippet img
|
snippet img
|
||||||
${1:(jpeg,bmp,png,tiff)}(filename="${2:filename}", width=${3}, height=${4}, unit="${5}")
|
${1:(jpeg,bmp,png,tiff)}(filename="${2:filename}", width=${3}, height=${4}, unit="${5}")
|
||||||
${6:plot}
|
${0:plot}
|
||||||
dev.off()
|
dev.off()
|
||||||
|
|
||||||
# statistical test functions
|
# statistical test functions
|
||||||
snippet fis
|
snippet fis
|
||||||
fisher.test(${1:x}, ${2:y})
|
fisher.test(${1:x}, ${0:y})
|
||||||
snippet chi
|
snippet chi
|
||||||
chisq.test(${1:x}, ${2:y})
|
chisq.test(${1:x}, ${0:y})
|
||||||
snippet tt
|
snippet tt
|
||||||
t.test(${1:x}, ${2:y})
|
t.test(${1:x}, ${0:y})
|
||||||
snippet wil
|
snippet wil
|
||||||
wilcox.test(${1:x}, ${2:y})
|
wilcox.test(${1:x}, ${0:y})
|
||||||
snippet cor
|
snippet cor
|
||||||
cor.test(${1:x}, ${2:y})
|
cor.test(${1:x}, ${0:y})
|
||||||
snippet fte
|
snippet fte
|
||||||
var.test(${1:x}, ${2:y})
|
var.test(${1:x}, ${0:y})
|
||||||
snippet kvt
|
snippet kvt
|
||||||
kv.test(${1:x}, ${2:y})
|
kv.test(${1:x}, ${0:y})
|
||||||
|
@ -1,69 +1,69 @@
|
|||||||
# rst
|
# rst
|
||||||
|
|
||||||
snippet :
|
snippet :
|
||||||
:${1:field name}: ${2:field body}
|
:${1:field name}: ${0:field body}
|
||||||
snippet *
|
snippet *
|
||||||
*${1:Emphasis}* ${2}
|
*${1:Emphasis}* ${0}
|
||||||
snippet **
|
snippet **
|
||||||
**${1:Strong emphasis}** ${2}
|
**${1:Strong emphasis}** ${0}
|
||||||
snippet _
|
snippet _
|
||||||
\`${1:hyperlink-name}\`_
|
\`${1:hyperlink-name}\`_
|
||||||
.. _\`$1\`: ${2:link-block}
|
.. _\`$1\`: ${0:link-block}
|
||||||
snippet =
|
snippet =
|
||||||
${1:Title}
|
${1:Title}
|
||||||
=====${2:=}
|
=====${2:=}
|
||||||
${3}
|
${0}
|
||||||
snippet -
|
snippet -
|
||||||
${1:Title}
|
${1:Title}
|
||||||
-----${2:-}
|
-----${2:-}
|
||||||
${3}
|
${0}
|
||||||
#some directive
|
#some directive
|
||||||
snippet img:
|
snippet img:
|
||||||
.. |${2:alias}| image:: ${1:img}
|
.. |${0:alias}| image:: ${1:img}
|
||||||
snippet fig:
|
snippet fig:
|
||||||
.. figure:: ${1:img}
|
.. figure:: ${1:img}
|
||||||
:alt: ${2:alter text}
|
:alt: ${0:alter text}
|
||||||
|
|
||||||
$2
|
$2
|
||||||
snippet cont:
|
snippet cont:
|
||||||
.. contents::
|
.. contents::
|
||||||
${1:content}
|
${0:content}
|
||||||
snippet code:
|
snippet code:
|
||||||
.. code:: ${1:type}
|
.. code:: ${1:type}
|
||||||
|
|
||||||
${2:write some code}
|
${0:write some code}
|
||||||
snippet tip:
|
snippet tip:
|
||||||
.. tip::
|
.. tip::
|
||||||
${1:my tips}
|
${0:my tips}
|
||||||
snippet not:
|
snippet not:
|
||||||
.. note::
|
.. note::
|
||||||
${1:my notes}
|
${0:my notes}
|
||||||
snippet war:
|
snippet war:
|
||||||
.. warning::
|
.. warning::
|
||||||
${1:attention!}
|
${0:attention!}
|
||||||
snippet imp:
|
snippet imp:
|
||||||
.. important::
|
.. important::
|
||||||
${1:this is importatnt}
|
${0:this is importatnt}
|
||||||
snippet att:
|
snippet att:
|
||||||
.. attention::
|
.. attention::
|
||||||
${1:hey!}
|
${0:hey!}
|
||||||
snippet dan:
|
snippet dan:
|
||||||
.. danger::
|
.. danger::
|
||||||
${1:ah!}
|
${0:ah!}
|
||||||
snippet err:
|
snippet err:
|
||||||
.. error::
|
.. error::
|
||||||
${1:Error occur}
|
${0:Error occur}
|
||||||
snippet cau:
|
snippet cau:
|
||||||
.. caution::
|
.. caution::
|
||||||
${1:Watch out!}
|
${0:Watch out!}
|
||||||
#Spinx only
|
#Spinx only
|
||||||
snippet sid:
|
snippet sid:
|
||||||
.. sidebar:: ${1:Title}
|
.. sidebar:: ${1:Title}
|
||||||
|
|
||||||
${2}
|
${0}
|
||||||
# CJK optimize, CJK has no space between charaters
|
# CJK optimize, CJK has no space between charaters
|
||||||
snippet *c
|
snippet *c
|
||||||
\ *${1:Emphasis}*\ ${2}
|
\ *${1:Emphasis}*\ ${0}
|
||||||
snippet **c
|
snippet **c
|
||||||
\ **${1:Strong emphasis}**\ ${2}
|
\ **${1:Strong emphasis}**\ ${0}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -7,45 +7,45 @@
|
|||||||
#if
|
#if
|
||||||
snippet if
|
snippet if
|
||||||
if(${1:obj}) {
|
if(${1:obj}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
#if not
|
#if not
|
||||||
snippet ifn
|
snippet ifn
|
||||||
if(!${1:obj}) {
|
if(!${1:obj}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
#if-else
|
#if-else
|
||||||
snippet ife
|
snippet ife
|
||||||
if(${1:obj}) {
|
if(${1:obj}) {
|
||||||
${2}
|
${2}
|
||||||
} else {
|
} else {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
#if-else-if
|
#if-else-if
|
||||||
snippet ifelif
|
snippet ifelif
|
||||||
if(${1:obj}) {
|
if(${1:obj}) {
|
||||||
${2}
|
${2}
|
||||||
} else if(${3:obj}) {
|
} else if(${3:obj}) {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
snippet eif
|
snippet eif
|
||||||
else if(${3:obj}) {
|
else if(${3:obj}) {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
#while loop
|
#while loop
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1:obj}) {
|
while (${1:obj}) {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
#for loop(classic)
|
#for loop(classic)
|
||||||
snippet for
|
snippet for
|
||||||
for (${1:item} <- ${2:obj}) {
|
for (${1:item} <- ${2:obj}) {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
#for loop(indexed)
|
#for loop(indexed)
|
||||||
snippet fori
|
snippet fori
|
||||||
for (${1:i} <- ${2:0} to ${3:obj}.length) {
|
for (${1:i} <- ${2:0} to ${3:obj}.length) {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
#exceptions
|
#exceptions
|
||||||
snippet try
|
snippet try
|
||||||
@ -55,52 +55,52 @@ snippet try
|
|||||||
case e: FileNotFoundException => ${2}
|
case e: FileNotFoundException => ${2}
|
||||||
case e: IOException => ${3}
|
case e: IOException => ${3}
|
||||||
} finally {
|
} finally {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
#match
|
#match
|
||||||
snippet match
|
snippet match
|
||||||
${1: obj} match {
|
${1: obj} match {
|
||||||
case ${2:e} => ${3}
|
case ${2:e} => ${3}
|
||||||
case _ => ${4}
|
case _ => ${0}
|
||||||
}
|
}
|
||||||
#case
|
#case
|
||||||
snippet case
|
snippet case
|
||||||
case ${1:value} => ${2}
|
case ${1:value} => ${0}
|
||||||
############################
|
############################
|
||||||
# methods and arguments
|
# methods and arguments
|
||||||
#
|
#
|
||||||
#arg
|
#arg
|
||||||
snippet arg
|
snippet arg
|
||||||
${1:a}: ${2:T}${3:, arg}
|
${1:a}: ${2:T}${0:, arg}
|
||||||
#args
|
#args
|
||||||
snippet args
|
snippet args
|
||||||
${1:args}: ${2:T}*
|
${1:args}: ${0:T}*
|
||||||
#def
|
#def
|
||||||
snippet def
|
snippet def
|
||||||
def ${1:name}(${2:arg}) = ${3:}
|
def ${1:name}(${2:arg}) = ${0:}
|
||||||
#private def
|
#private def
|
||||||
snippet prdef
|
snippet prdef
|
||||||
private def ${1:name}(${2:arg}) = ${3:}
|
private def ${1:name}(${2:arg}) = ${0:}
|
||||||
#override def
|
#override def
|
||||||
snippet ovdef
|
snippet ovdef
|
||||||
override def ${1:name}(${2:arg}) = ${3:}
|
override def ${1:name}(${2:arg}) = ${0:}
|
||||||
#first class function(see scalabook p 188)
|
#first class function(see scalabook p 188)
|
||||||
snippet fcf
|
snippet fcf
|
||||||
(${1:a}: ${2:T}) => $1 ${3}
|
(${1:a}: ${2:T}) => $1 ${0}
|
||||||
snippet =>
|
snippet =>
|
||||||
${1:name} => ${2}
|
${1:name} => ${0}
|
||||||
#recursion
|
#recursion
|
||||||
snippet rec
|
snippet rec
|
||||||
def ${1:name}(${2:arg}) =
|
def ${1:name}(${0:arg}) =
|
||||||
if($2) $2
|
if($2) $2
|
||||||
else $1($2)
|
else $1($2)
|
||||||
#curried method
|
#curried method
|
||||||
snippet crdef
|
snippet crdef
|
||||||
def ${1:name}(${2:arg})(${3:arg}) = ${4:}
|
def ${1:name}(${2:arg})(${3:arg}) = ${0:}
|
||||||
#main method
|
#main method
|
||||||
#check validity of T
|
#check validity of T
|
||||||
snippet main
|
snippet main
|
||||||
def main(args: Array[String]):${1:T} = ${2:}
|
def main(args: Array[String]):${1:T} = ${0:}
|
||||||
############################
|
############################
|
||||||
# basic types(general purpose)
|
# basic types(general purpose)
|
||||||
# you might want to use basic types snippets
|
# you might want to use basic types snippets
|
||||||
@ -165,30 +165,30 @@ snippet chr
|
|||||||
snippet lng
|
snippet lng
|
||||||
Long
|
Long
|
||||||
snippet arr
|
snippet arr
|
||||||
Array${1:[T]}${2:()}
|
Array${1:[T]}${0:()}
|
||||||
snippet buf
|
snippet buf
|
||||||
Buffer${1:[T]}${2:()}
|
Buffer${1:[T]}${0:()}
|
||||||
snippet list
|
snippet list
|
||||||
List${1:[T]}${2:()}
|
List${1:[T]}${0:()}
|
||||||
snippet tpl
|
snippet tpl
|
||||||
Tuple${1:2}[${2:T},${3:T}]
|
Tuple${1:2}[${2:T},${0:T}]
|
||||||
snippet set
|
snippet set
|
||||||
Set${1:[T]}${2:()}
|
Set${1:[T]}${0:()}
|
||||||
snippet hset
|
snippet hset
|
||||||
HashSet${1:[T]}${2:()}
|
HashSet${1:[T]}${0:()}
|
||||||
snippet mhset
|
snippet mhset
|
||||||
mutable.HashSet${1:[T]}${2:()}
|
mutable.HashSet${1:[T]}${0:()}
|
||||||
#for maps
|
#for maps
|
||||||
snippet keyval
|
snippet keyval
|
||||||
${1:key}->${2:val}${3:, keyval}
|
${1:key}->${2:val}${0:, keyval}
|
||||||
snippet map
|
snippet map
|
||||||
Map[${1:T},${2:T}]${3:(keyval)}
|
Map[${1:T},${2:T}]${0:(keyval)}
|
||||||
snippet hmap
|
snippet hmap
|
||||||
HashMap[${1:T},${2:T}]${3:(keyval)}
|
HashMap[${1:T},${2:T}]${0:(keyval)}
|
||||||
snippet mmap
|
snippet mmap
|
||||||
mutable.Map[${1:T},${2:T}]${3:(keyval)}
|
mutable.Map[${1:T},${2:T}]${0:(keyval)}
|
||||||
snippet mhmap
|
snippet mhmap
|
||||||
mutable.HashMap[${1:T},${2:T}]${3:(keyval)}
|
mutable.HashMap[${1:T},${2:T}]${0:(keyval)}
|
||||||
#TODO add TreeMap and TreeSet
|
#TODO add TreeMap and TreeSet
|
||||||
#asInstanceOf[]
|
#asInstanceOf[]
|
||||||
snippet as
|
snippet as
|
||||||
@ -200,61 +200,61 @@ snippet as
|
|||||||
|
|
||||||
#scope() with one arg
|
#scope() with one arg
|
||||||
snippet (a
|
snippet (a
|
||||||
(${1:a} => ${2})
|
(${1:a} => ${0})
|
||||||
#scope() with two args
|
#scope() with two args
|
||||||
snippet {(
|
snippet {(
|
||||||
{(${1:a},${2:b}) =>
|
{(${1:a},${2:b}) =>
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
#filter
|
#filter
|
||||||
snippet filter
|
snippet filter
|
||||||
${1:name}.filter (a
|
${0:name}.filter (a
|
||||||
#map function
|
#map function
|
||||||
snippet mapf
|
snippet mapf
|
||||||
${1:name}.map (a
|
${0:name}.map (a
|
||||||
#flatmap
|
#flatmap
|
||||||
snippet flatmap
|
snippet flatmap
|
||||||
${1:name}.flatMap${2:[T]}(a
|
${1:name}.flatMap${0:[T]}(a
|
||||||
#fold left
|
#fold left
|
||||||
snippet fldl
|
snippet fldl
|
||||||
${1:name}.foldLeft(${2:first}) {(
|
${1:name}.foldLeft(${0:first}) {(
|
||||||
#fold right
|
#fold right
|
||||||
snippet fldr
|
snippet fldr
|
||||||
${1:name}.foldRight(${2:first}) {(
|
${1:name}.foldRight(${0:first}) {(
|
||||||
#fold left operator(if u wanna reduce readability of ur code)
|
#fold left operator(if u wanna reduce readability of ur code)
|
||||||
#use wildcard symbols
|
#use wildcard symbols
|
||||||
snippet /:
|
snippet /:
|
||||||
(${1:first}/:${2:name})(${3})
|
(${1:first}/:${2:name})(${0})
|
||||||
#fold right operator
|
#fold right operator
|
||||||
snippet :\
|
snippet :\
|
||||||
(${1:first}:\${2:name})(${3})
|
(${1:first}:\${2:name})(${0})
|
||||||
#reduce left
|
#reduce left
|
||||||
snippet redl
|
snippet redl
|
||||||
${1:name}.reduceLeft[${2:T}] {(
|
${1:name}.reduceLeft[${0:T}] {(
|
||||||
#reduce right
|
#reduce right
|
||||||
snippet redr
|
snippet redr
|
||||||
${1:name}.reduceRight[${2:T}] {(
|
${1:name}.reduceRight[${0:T}] {(
|
||||||
#zipWithIndex(safe way).
|
#zipWithIndex(safe way).
|
||||||
#see http://daily-scala.blogspot.com/2010/05/zipwithindex.html
|
#see http://daily-scala.blogspot.com/2010/05/zipwithindex.html
|
||||||
snippet zipwi
|
snippet zipwi
|
||||||
${1:name}.view.zipWithIndex
|
${0:name}.view.zipWithIndex
|
||||||
#split
|
#split
|
||||||
snippet spl
|
snippet spl
|
||||||
${1:name}.split("${2:,}")
|
${1:name}.split("${0:,}")
|
||||||
#end
|
#end
|
||||||
snippet val
|
snippet val
|
||||||
val ${1:name}${2:: T} = ${3:value}
|
val ${1:name}${2:: T} = ${0:value}
|
||||||
snippet var
|
snippet var
|
||||||
var ${1:name}${2:: T} = ${3:value}
|
var ${1:name}${2:: T} = ${0:value}
|
||||||
############################
|
############################
|
||||||
# classes
|
# classes
|
||||||
#
|
#
|
||||||
#extends
|
#extends
|
||||||
snippet extends
|
snippet extends
|
||||||
extends ${1:what}
|
extends ${0:what}
|
||||||
#with
|
#with
|
||||||
snippet with
|
snippet with
|
||||||
with ${1:what}${2: with}
|
with ${1:what}${0: with}
|
||||||
#auxiliary constructor(a. this)
|
#auxiliary constructor(a. this)
|
||||||
snippet athis
|
snippet athis
|
||||||
def this(arg) = this(arg)
|
def this(arg) = this(arg)
|
||||||
@ -262,63 +262,63 @@ snippet athis
|
|||||||
snippet abstract
|
snippet abstract
|
||||||
abstract class ${1:name}${2:(arg)}${3: extends }${4: with} {
|
abstract class ${1:name}${2:(arg)}${3: extends }${4: with} {
|
||||||
${5:override def toString = "$1"}
|
${5:override def toString = "$1"}
|
||||||
${6}
|
${0}
|
||||||
}
|
}
|
||||||
#class
|
#class
|
||||||
snippet class
|
snippet class
|
||||||
class ${1:name}${2:(arg)}${3: extends }${4: with} {
|
class ${1:name}${2:(arg)}${3: extends }${4: with} {
|
||||||
${5:override def toString = "$1"}
|
${5:override def toString = "$1"}
|
||||||
${6}
|
${0}
|
||||||
}
|
}
|
||||||
#object
|
#object
|
||||||
snippet object
|
snippet object
|
||||||
object ${1:name}${2:(arg)}${3: extends }${4: with} ${5:}
|
object ${1:name}${2:(arg)}${3: extends }${4: with} ${0:}
|
||||||
#trait
|
#trait
|
||||||
snippet trait
|
snippet trait
|
||||||
trait ${1:name}${2: extends }${3: with} {
|
trait ${1:name}${2: extends }${3: with} {
|
||||||
${4:}
|
${0:}
|
||||||
}
|
}
|
||||||
#class with trait Ordered(page 265)
|
#class with trait Ordered(page 265)
|
||||||
snippet ordered
|
snippet ordered
|
||||||
class ${1:name}${2:(arg)} extends Ordered[$1] ${3: with} {
|
class ${1:name}${2:(arg)} extends Ordered[$1] ${3: with} {
|
||||||
${4:override def toString = "$1"}
|
${4:override def toString = "$1"}
|
||||||
def compare(that: $1) = ${5:this - that}
|
def compare(that: $1) = ${5:this - that}
|
||||||
${6}
|
${0}
|
||||||
}
|
}
|
||||||
#case class
|
#case class
|
||||||
snippet casecl
|
snippet casecl
|
||||||
case class ${1:name}${2:(arg)}${3: extends }${4: with} ${5:}
|
case class ${1:name}${2:(arg)}${3: extends }${4: with} ${0:}
|
||||||
############################
|
############################
|
||||||
# testing
|
# testing
|
||||||
#
|
#
|
||||||
#scalatest imports
|
#scalatest imports
|
||||||
snippet scalatest
|
snippet scalatest
|
||||||
${1:import org.scalatest.Suite}
|
${1:import org.scalatest.Suite}
|
||||||
${2:import org.scalatest.FunSuite}
|
${0:import org.scalatest.FunSuite}
|
||||||
#assert
|
#assert
|
||||||
snippet assert
|
snippet assert
|
||||||
assert(${1:a}==${2:b})
|
assert(${1:a}==${0:b})
|
||||||
#ensuring(p 296)
|
#ensuring(p 296)
|
||||||
snippet ensuring
|
snippet ensuring
|
||||||
ifel ensuring(${1:a}==${2:b})
|
ifel ensuring(${1:a}==${0:b})
|
||||||
#expect
|
#expect
|
||||||
snippet expect
|
snippet expect
|
||||||
expect(${1:what}) {
|
expect(${0:what}) {
|
||||||
#intercept
|
#intercept
|
||||||
snippet intercept
|
snippet intercept
|
||||||
intercept[${1:IllegalArgumentException}] {
|
intercept[${0:IllegalArgumentException}] {
|
||||||
#test
|
#test
|
||||||
snippet test
|
snippet test
|
||||||
test("${1:description}") {
|
test("${0:description}") {
|
||||||
#suite
|
#suite
|
||||||
snippet suite
|
snippet suite
|
||||||
class ${1:name} extends Suite {
|
class ${0:name} extends Suite {
|
||||||
def test() {
|
def test() {
|
||||||
}
|
}
|
||||||
#funsuite
|
#funsuite
|
||||||
snippet fsuite
|
snippet fsuite
|
||||||
class ${1:name} extends FunSuite {
|
class ${1:name} extends FunSuite {
|
||||||
test("${2:description}") {
|
test("${0:description}") {
|
||||||
}
|
}
|
||||||
############################
|
############################
|
||||||
# SBT
|
# SBT
|
||||||
@ -327,7 +327,7 @@ snippet webproject
|
|||||||
import sbt._
|
import sbt._
|
||||||
|
|
||||||
class ${1:Name}(info: ProjectInfo) extends DefaultWebProject(info) {
|
class ${1:Name}(info: ProjectInfo) extends DefaultWebProject(info) {
|
||||||
val liftVersion = "${2:2.3}"
|
val liftVersion = "${0:2.3}"
|
||||||
|
|
||||||
override def libraryDependencies = Set(
|
override def libraryDependencies = Set(
|
||||||
|
|
||||||
@ -337,9 +337,9 @@ snippet webproject
|
|||||||
}
|
}
|
||||||
#depencies
|
#depencies
|
||||||
snippet liftjar
|
snippet liftjar
|
||||||
"net.liftweb" %% "${1:lib}" % liftVersion % "compile->default",
|
"net.liftweb" %% "${0:lib}" % liftVersion % "compile->default",
|
||||||
snippet jettyjar
|
snippet jettyjar
|
||||||
"org.mortbay.jetty" % "jetty" % "${1:version}" % "test->default",
|
"org.mortbay.jetty" % "jetty" % "${0:version}" % "test->default",
|
||||||
############################
|
############################
|
||||||
# Lift
|
# Lift
|
||||||
#
|
#
|
||||||
|
@ -4,38 +4,38 @@ snippet #!
|
|||||||
|
|
||||||
snippet if
|
snippet if
|
||||||
if [[ ${1:condition} ]]; then
|
if [[ ${1:condition} ]]; then
|
||||||
${2:#statements}
|
${0:#statements}
|
||||||
fi
|
fi
|
||||||
snippet elif
|
snippet elif
|
||||||
elif [[ ${1:condition} ]]; then
|
elif [[ ${1:condition} ]]; then
|
||||||
${2:#statements}
|
${0:#statements}
|
||||||
snippet for
|
snippet for
|
||||||
for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
|
for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
|
||||||
${3:#statements}
|
${0:#statements}
|
||||||
done
|
done
|
||||||
snippet fori
|
snippet fori
|
||||||
for ${1:needle} in ${2:haystack} ; do
|
for ${1:needle} in ${2:haystack} ; do
|
||||||
${3:#statements}
|
${0:#statements}
|
||||||
done
|
done
|
||||||
snippet wh
|
snippet wh
|
||||||
while [[ ${1:condition} ]]; do
|
while [[ ${1:condition} ]]; do
|
||||||
${2:#statements}
|
${0:#statements}
|
||||||
done
|
done
|
||||||
snippet until
|
snippet until
|
||||||
until [[ ${1:condition} ]]; do
|
until [[ ${1:condition} ]]; do
|
||||||
${2:#statements}
|
${0:#statements}
|
||||||
done
|
done
|
||||||
snippet case
|
snippet case
|
||||||
case ${1:word} in
|
case ${1:word} in
|
||||||
${2:pattern})
|
${2:pattern})
|
||||||
${3};;
|
${0};;
|
||||||
esac
|
esac
|
||||||
snippet go
|
snippet go
|
||||||
while getopts '${1:o}' ${2:opts}
|
while getopts '${1:o}' ${2:opts}
|
||||||
do
|
do
|
||||||
case $$2 in
|
case $$2 in
|
||||||
${3:o0})
|
${3:o0})
|
||||||
${4:#staments};;
|
${0:#staments};;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
# Set SCRIPT_DIR variable to directory script is located.
|
# Set SCRIPT_DIR variable to directory script is located.
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# snippets for making snippets :)
|
# snippets for making snippets :)
|
||||||
snippet snip
|
snippet snip
|
||||||
snippet ${1:trigger}
|
snippet ${1:trigger}
|
||||||
${2}
|
${0}
|
||||||
snippet msnip
|
snippet msnip
|
||||||
snippet ${1:trigger} ${2:description}
|
snippet ${1:trigger} ${2:description}
|
||||||
${3}
|
${0}
|
||||||
snippet v
|
snippet v
|
||||||
{VISUAL}
|
{VISUAL}
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
snippet tbl
|
snippet tbl
|
||||||
create table ${1:table} (
|
create table ${1:table} (
|
||||||
${2:columns}
|
${0:columns}
|
||||||
);
|
);
|
||||||
snippet col
|
snippet col
|
||||||
${1:name} ${2:type} ${3:default ''} ${4:not null}
|
${1:name} ${2:type} ${3:default ''} ${0:not null}
|
||||||
snippet ccol
|
snippet ccol
|
||||||
${1:name} varchar2(${2:size}) ${3:default ''} ${4:not null}
|
${1:name} varchar2(${2:size}) ${3:default ''} ${0:not null}
|
||||||
snippet ncol
|
snippet ncol
|
||||||
${1:name} number ${3:default 0} ${4:not null}
|
${1:name} number ${3:default 0} ${0:not null}
|
||||||
snippet dcol
|
snippet dcol
|
||||||
${1:name} date ${3:default sysdate} ${4:not null}
|
${1:name} date ${3:default sysdate} ${0:not null}
|
||||||
snippet ind
|
snippet ind
|
||||||
create index ${3:$1_$2} on ${1:table}(${2:column});
|
create index ${0:$1_$2} on ${1:table}(${2:column});
|
||||||
snippet uind
|
snippet uind
|
||||||
create unique index ${1:name} on ${2:table}(${3:column});
|
create unique index ${1:name} on ${2:table}(${0:column});
|
||||||
snippet tblcom
|
snippet tblcom
|
||||||
comment on table ${1:table} is '${2:comment}';
|
comment on table ${1:table} is '${0:comment}';
|
||||||
snippet colcom
|
snippet colcom
|
||||||
comment on column ${1:table}.${2:column} is '${3:comment}';
|
comment on column ${1:table}.${2:column} is '${0:comment}';
|
||||||
snippet addcol
|
snippet addcol
|
||||||
alter table ${1:table} add (${2:column} ${3:type});
|
alter table ${1:table} add (${2:column} ${0:type});
|
||||||
snippet seq
|
snippet seq
|
||||||
create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};
|
create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${0:1};
|
||||||
snippet s*
|
snippet s*
|
||||||
select * from ${1:table}
|
select * from ${0:table}
|
||||||
|
@ -5,26 +5,26 @@ snippet #!
|
|||||||
# Process
|
# Process
|
||||||
snippet pro
|
snippet pro
|
||||||
proc ${1:function_name} {${2:args}} {
|
proc ${1:function_name} {${2:args}} {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
#xif
|
#xif
|
||||||
snippet xif
|
snippet xif
|
||||||
${1:expr}? ${2:true} : ${3:false}
|
${1:expr}? ${2:true} : ${0:false}
|
||||||
# Conditional
|
# Conditional
|
||||||
snippet if
|
snippet if
|
||||||
if {${1}} {
|
if {${1}} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# Conditional if..else
|
# Conditional if..else
|
||||||
snippet ife
|
snippet ife
|
||||||
if {${1}} {
|
if {${1}} {
|
||||||
${2}
|
${2}
|
||||||
} else {
|
} else {
|
||||||
${3:# else...}
|
${0:# else...}
|
||||||
}
|
}
|
||||||
snippet eif
|
snippet eif
|
||||||
elseif {${1}} {
|
elseif {${1}} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# Conditional if..elsif..else
|
# Conditional if..elsif..else
|
||||||
snippet ifee
|
snippet ifee
|
||||||
@ -33,51 +33,51 @@ snippet ifee
|
|||||||
} elseif {${3}} {
|
} elseif {${3}} {
|
||||||
${4:# elsif...}
|
${4:# elsif...}
|
||||||
} else {
|
} else {
|
||||||
${5:# else...}
|
${0:# else...}
|
||||||
}
|
}
|
||||||
# If catch then
|
# If catch then
|
||||||
snippet ifc
|
snippet ifc
|
||||||
if { [catch {${1:#do something...}} ${2:err}] } {
|
if { [catch {${1:#do something...}} ${2:err}] } {
|
||||||
${3:# handle failure...}
|
${0:# handle failure...}
|
||||||
}
|
}
|
||||||
# Catch
|
# Catch
|
||||||
snippet catch
|
snippet catch
|
||||||
catch {${1}} ${2:err} ${3:options}
|
catch {${1}} ${2:err} ${0:options}
|
||||||
# While Loop
|
# While Loop
|
||||||
snippet wh
|
snippet wh
|
||||||
while {${1}} {
|
while {${1}} {
|
||||||
${2}
|
${0}
|
||||||
}
|
}
|
||||||
# For Loop
|
# For Loop
|
||||||
snippet for
|
snippet for
|
||||||
for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {
|
for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {
|
||||||
${4}
|
${0}
|
||||||
}
|
}
|
||||||
# Foreach Loop
|
# Foreach Loop
|
||||||
snippet fore
|
snippet fore
|
||||||
foreach ${1:x} {${2:#list}} {
|
foreach ${1:x} {${2:#list}} {
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
# after ms script...
|
# after ms script...
|
||||||
snippet af
|
snippet af
|
||||||
after ${1:ms} ${2:#do something}
|
after ${1:ms} ${0:#do something}
|
||||||
# after cancel id
|
# after cancel id
|
||||||
snippet afc
|
snippet afc
|
||||||
after cancel ${1:id or script}
|
after cancel ${0:id or script}
|
||||||
# after idle
|
# after idle
|
||||||
snippet afi
|
snippet afi
|
||||||
after idle ${1:script}
|
after idle ${0:script}
|
||||||
# after info id
|
# after info id
|
||||||
snippet afin
|
snippet afin
|
||||||
after info ${1:id}
|
after info ${0:id}
|
||||||
# Expr
|
# Expr
|
||||||
snippet exp
|
snippet exp
|
||||||
expr {${1:#expression here}}
|
expr {${0:#expression here}}
|
||||||
# Switch
|
# Switch
|
||||||
snippet sw
|
snippet sw
|
||||||
switch ${1:var} {
|
switch ${1:var} {
|
||||||
${3:pattern 1} {
|
${3:pattern 1} {
|
||||||
${4:#do something}
|
${0:#do something}
|
||||||
}
|
}
|
||||||
default {
|
default {
|
||||||
${2:#do something}
|
${2:#do something}
|
||||||
@ -87,10 +87,10 @@ snippet sw
|
|||||||
snippet ca
|
snippet ca
|
||||||
${1:pattern} {
|
${1:pattern} {
|
||||||
${2:#do something}
|
${2:#do something}
|
||||||
}${3}
|
}
|
||||||
# Namespace eval
|
# Namespace eval
|
||||||
snippet ns
|
snippet ns
|
||||||
namespace eval ${1:path} {${2:#script...}}
|
namespace eval ${1:path} {${0:#script...}}
|
||||||
# Namespace current
|
# Namespace current
|
||||||
snippet nsc
|
snippet nsc
|
||||||
namespace current
|
namespace current
|
||||||
|
@ -1,205 +1,205 @@
|
|||||||
#PREAMBLE
|
#PREAMBLE
|
||||||
#newcommand
|
#newcommand
|
||||||
snippet nc
|
snippet nc
|
||||||
\newcommand{\${1:cmd}}[${2:opt}]{${3:realcmd}} ${4}
|
\newcommand{\${1:cmd}}[${2:opt}]{${3:realcmd}} ${0}
|
||||||
#usepackage
|
#usepackage
|
||||||
snippet up
|
snippet up
|
||||||
\usepackage[${1:options}]{${2:package}} ${3}
|
\usepackage[${1:options}]{${2:package}} ${0}
|
||||||
#newunicodechar
|
#newunicodechar
|
||||||
snippet nuc
|
snippet nuc
|
||||||
\newunicodechar{${1}}{${2:\ensuremath}${3:tex-substitute}}} ${4}
|
\newunicodechar{${1}}{${2:\ensuremath}${3:tex-substitute}}} ${0}
|
||||||
#DeclareMathOperator
|
#DeclareMathOperator
|
||||||
snippet dmo
|
snippet dmo
|
||||||
\DeclareMathOperator{${1}}{${2}} ${3}
|
\DeclareMathOperator{${1}}{${2}} ${0}
|
||||||
|
|
||||||
#DOCUMENT
|
#DOCUMENT
|
||||||
# \begin{}...\end{}
|
# \begin{}...\end{}
|
||||||
snippet begin
|
snippet begin
|
||||||
\begin{${1:env}}
|
\begin{${1:env}}
|
||||||
${2}
|
${0}
|
||||||
\end{$1}
|
\end{$1}
|
||||||
# Tabular
|
# Tabular
|
||||||
snippet tab
|
snippet tab
|
||||||
\begin{${1:tabular}}{${2:c}}
|
\begin{${1:tabular}}{${2:c}}
|
||||||
${3}
|
${0}
|
||||||
\end{$1}
|
\end{$1}
|
||||||
snippet thm
|
snippet thm
|
||||||
\begin[${1:author}]{${2:thm}}
|
\begin[${1:author}]{${2:thm}}
|
||||||
${3}
|
${0}
|
||||||
\end{$2}
|
\end{$2}
|
||||||
snippet center
|
snippet center
|
||||||
\begin{center}
|
\begin{center}
|
||||||
${1}
|
${0}
|
||||||
\end{center}
|
\end{center}
|
||||||
# Align(ed)
|
# Align(ed)
|
||||||
snippet ali
|
snippet ali
|
||||||
\begin{align${1:ed}}
|
\begin{align${1:ed}}
|
||||||
${2}
|
${0}
|
||||||
\end{align$1}
|
\end{align$1}
|
||||||
# Gather(ed)
|
# Gather(ed)
|
||||||
snippet gat
|
snippet gat
|
||||||
\begin{gather${1:ed}}
|
\begin{gather${1:ed}}
|
||||||
${2}
|
${0}
|
||||||
\end{gather$1}
|
\end{gather$1}
|
||||||
# Equation
|
# Equation
|
||||||
snippet eq
|
snippet eq
|
||||||
\begin{equation}
|
\begin{equation}
|
||||||
${1}
|
${0}
|
||||||
\end{equation}
|
\end{equation}
|
||||||
# Equation
|
# Equation
|
||||||
snippet eq*
|
snippet eq*
|
||||||
\begin{equation*}
|
\begin{equation*}
|
||||||
${1}
|
${0}
|
||||||
\end{equation*}
|
\end{equation*}
|
||||||
# Unnumbered Equation
|
# Unnumbered Equation
|
||||||
snippet \
|
snippet \
|
||||||
\[
|
\[
|
||||||
${1}
|
${0}
|
||||||
\]
|
\]
|
||||||
# Equation array
|
# Equation array
|
||||||
snippet eqnarray
|
snippet eqnarray
|
||||||
\begin{eqnarray}
|
\begin{eqnarray}
|
||||||
${1}
|
${0}
|
||||||
\end{eqnarray}
|
\end{eqnarray}
|
||||||
# Enumerate
|
# Enumerate
|
||||||
snippet enum
|
snippet enum
|
||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
\item ${1}
|
\item ${0}
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
# Itemize
|
# Itemize
|
||||||
snippet itemize
|
snippet itemize
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item ${1}
|
\item ${0}
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
snippet item
|
snippet item
|
||||||
\item ${1}
|
\item ${1}
|
||||||
# Description
|
# Description
|
||||||
snippet desc
|
snippet desc
|
||||||
\begin{description}
|
\begin{description}
|
||||||
\item[${1}] ${2}
|
\item[${1}] ${0}
|
||||||
\end{description}
|
\end{description}
|
||||||
# Endless new item
|
# Endless new item
|
||||||
snippet ]i
|
snippet ]i
|
||||||
\item ${1}
|
\item ${1}
|
||||||
${2:]i}
|
${0:]i}
|
||||||
# Matrix
|
# Matrix
|
||||||
snippet mat
|
snippet mat
|
||||||
\begin{${1:p/b/v/V/B/small}matrix}
|
\begin{${1:p/b/v/V/B/small}matrix}
|
||||||
${2}
|
${0}
|
||||||
\end{$1matrix}
|
\end{$1matrix}
|
||||||
# Cases
|
# Cases
|
||||||
snippet cas
|
snippet cas
|
||||||
\begin{cases}
|
\begin{cases}
|
||||||
${1:equation}, &\text{ if }${2:case}\\
|
${1:equation}, &\text{ if }${2:case}\\
|
||||||
${3}
|
${0}
|
||||||
\end{cases}
|
\end{cases}
|
||||||
# Split
|
# Split
|
||||||
snippet spl
|
snippet spl
|
||||||
\begin{split}
|
\begin{split}
|
||||||
${1}
|
${0}
|
||||||
\end{split}
|
\end{split}
|
||||||
# Part
|
# Part
|
||||||
snippet part
|
snippet part
|
||||||
\part{${1:part name}} % (fold)
|
\part{${1:part name}} % (fold)
|
||||||
\label{prt:${2:$1}}
|
\label{prt:${2:$1}}
|
||||||
${3}
|
${0}
|
||||||
% part $2 (end)
|
% part $2 (end)
|
||||||
# Chapter
|
# Chapter
|
||||||
snippet cha
|
snippet cha
|
||||||
\chapter{${1:chapter name}}
|
\chapter{${1:chapter name}}
|
||||||
\label{cha:${2:$1}}
|
\label{cha:${2:$1}}
|
||||||
${3}
|
${0}
|
||||||
# Section
|
# Section
|
||||||
snippet sec
|
snippet sec
|
||||||
\section{${1:section name}}
|
\section{${1:section name}}
|
||||||
\label{sec:${2:$1}}
|
\label{sec:${2:$1}}
|
||||||
${3}
|
${0}
|
||||||
# Section without number
|
# Section without number
|
||||||
snippet sec*
|
snippet sec*
|
||||||
\section*{${1:section name}}
|
\section*{${1:section name}}
|
||||||
\label{sec:${2:$1}}
|
\label{sec:${2:$1}}
|
||||||
${3}
|
${0}
|
||||||
# Sub Section
|
# Sub Section
|
||||||
snippet sub
|
snippet sub
|
||||||
\subsection{${1:subsection name}}
|
\subsection{${1:subsection name}}
|
||||||
\label{sub:${2:$1}}
|
\label{sub:${2:$1}}
|
||||||
${3}
|
${0}
|
||||||
# Sub Section without number
|
# Sub Section without number
|
||||||
snippet sub*
|
snippet sub*
|
||||||
\subsection*{${1:subsection name}}
|
\subsection*{${1:subsection name}}
|
||||||
\label{sub:${2:$1}}
|
\label{sub:${2:$1}}
|
||||||
${3}
|
${0}
|
||||||
# Sub Sub Section
|
# Sub Sub Section
|
||||||
snippet subs
|
snippet subs
|
||||||
\subsubsection{${1:subsubsection name}}
|
\subsubsection{${1:subsubsection name}}
|
||||||
\label{ssub:${2:$1}}
|
\label{ssub:${2:$1}}
|
||||||
${3}
|
${0}
|
||||||
# Sub Sub Section without number
|
# Sub Sub Section without number
|
||||||
snippet subs*
|
snippet subs*
|
||||||
\subsubsection*{${1:subsubsection name}}
|
\subsubsection*{${1:subsubsection name}}
|
||||||
\label{ssub:${2:$1}}
|
\label{ssub:${2:$1}}
|
||||||
${3}
|
${0}
|
||||||
# Paragraph
|
# Paragraph
|
||||||
snippet par
|
snippet par
|
||||||
\paragraph{${1:paragraph name}}
|
\paragraph{${1:paragraph name}}
|
||||||
\label{par:${2:$1}}
|
\label{par:${2:$1}}
|
||||||
${3}
|
${0}
|
||||||
# Sub Paragraph
|
# Sub Paragraph
|
||||||
snippet subp
|
snippet subp
|
||||||
\subparagraph{${1:subparagraph name}}
|
\subparagraph{${1:subparagraph name}}
|
||||||
\label{subp:${2:$1}}
|
\label{subp:${2:$1}}
|
||||||
${3}
|
${0}
|
||||||
snippet ni
|
snippet ni
|
||||||
\noindent
|
\noindent
|
||||||
${1}
|
${0}
|
||||||
#References
|
#References
|
||||||
snippet itd
|
snippet itd
|
||||||
\item[${1:description}] ${2:item}
|
\item[${1:description}] ${0:item}
|
||||||
snippet figure
|
snippet figure
|
||||||
${1:Figure}~\ref{${2:fig:}}${3}
|
${1:Figure}~\ref{${2:fig:}}
|
||||||
snippet table
|
snippet table
|
||||||
${1:Table}~\ref{${2:tab:}}${3}
|
${1:Table}~\ref{${2:tab:}}
|
||||||
snippet listing
|
snippet listing
|
||||||
${1:Listing}~\ref{${2:list}}${3}
|
${1:Listing}~\ref{${2:list}}
|
||||||
snippet section
|
snippet section
|
||||||
${1:Section}~\ref{sec:${2}} ${3}
|
${1:Section}~\ref{sec:${2}} ${0}
|
||||||
snippet page
|
snippet page
|
||||||
${1:page}~\pageref{${2}} ${3}
|
${1:page}~\pageref{${2}} ${0}
|
||||||
snippet index
|
snippet index
|
||||||
\index{${1:index}} ${2}
|
\index{${1:index}} ${0}
|
||||||
#Citations
|
#Citations
|
||||||
snippet citen
|
snippet citen
|
||||||
\cite{$1} ${2}
|
\cite{$1} ${0}
|
||||||
# bibtex commands
|
# bibtex commands
|
||||||
snippet citep
|
snippet citep
|
||||||
\citep{$1} ${2}
|
\citep{$1} ${0}
|
||||||
snippet citet
|
snippet citet
|
||||||
\citet{$1} ${2}
|
\citet{$1} ${0}
|
||||||
snippet cite
|
snippet cite
|
||||||
\cite[${1}]{${2}} ${3}
|
\cite[${1}]{${2}} ${0}
|
||||||
snippet fcite
|
snippet fcite
|
||||||
\footcite[${1}]{${2}}${3}
|
\footcite[${1}]{${2}}${0}
|
||||||
#Formating text: italic, bold, underline, small capital, emphase ..
|
#Formating text: italic, bold, underline, small capital, emphase ..
|
||||||
snippet it
|
snippet it
|
||||||
\textit{${1:text}}
|
\textit{${0:text}}
|
||||||
snippet bf
|
snippet bf
|
||||||
\textbf{${1:text}}
|
\textbf{${0:text}}
|
||||||
snippet under
|
snippet under
|
||||||
\underline{${1:text}}
|
\underline{${0:text}}
|
||||||
snippet emp
|
snippet emp
|
||||||
\emph{${1:text}}
|
\emph{${0:text}}
|
||||||
snippet sc
|
snippet sc
|
||||||
\textsc{${1:text}}
|
\textsc{${0:text}}
|
||||||
#Choosing font
|
#Choosing font
|
||||||
snippet sf
|
snippet sf
|
||||||
\textsf{${1:text}}
|
\textsf{${0:text}}
|
||||||
snippet rm
|
snippet rm
|
||||||
\textrm{${1:text}}
|
\textrm{${0:text}}
|
||||||
snippet tt
|
snippet tt
|
||||||
\texttt{${1:text}}
|
\texttt{${0:text}}
|
||||||
#misc
|
#misc
|
||||||
snippet ft
|
snippet ft
|
||||||
\footnote{${1:text}}
|
\footnote{${0:text}}
|
||||||
snippet fig
|
snippet fig
|
||||||
\begin{figure}
|
\begin{figure}
|
||||||
\begin{center}
|
\begin{center}
|
||||||
@ -208,7 +208,7 @@ snippet fig
|
|||||||
\caption{${3}}
|
\caption{${3}}
|
||||||
\label{fig:${4}}
|
\label{fig:${4}}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
${5}
|
${0}
|
||||||
snippet tikz
|
snippet tikz
|
||||||
\begin{figure}
|
\begin{figure}
|
||||||
\begin{center}
|
\begin{center}
|
||||||
@ -219,33 +219,33 @@ snippet tikz
|
|||||||
\caption{${3}}
|
\caption{${3}}
|
||||||
\label{fig:${4}}
|
\label{fig:${4}}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
${5}
|
${0}
|
||||||
#math
|
#math
|
||||||
snippet stackrel
|
snippet stackrel
|
||||||
\stackrel{${1:above}}{${2:below}} ${3}
|
\stackrel{${1:above}}{${2:below}} ${0}
|
||||||
snippet frac
|
snippet frac
|
||||||
\frac{${1:num}}{${2:denom}} ${3}
|
\frac{${1:num}}{${2:denom}} ${0}
|
||||||
snippet sum
|
snippet sum
|
||||||
\sum^{${1:n}}_{${2:i=1}} ${3}
|
\sum^{${1:n}}_{${2:i=1}} ${0}
|
||||||
snippet lim
|
snippet lim
|
||||||
\lim_{${1:x \to +\infty}} ${2}
|
\lim_{${1:x \to +\infty}} ${0}
|
||||||
snippet frame
|
snippet frame
|
||||||
\begin{frame}[<+->]
|
\begin{frame}[<+->]
|
||||||
\frametitle{${1:title}}
|
\frametitle{${1:title}}
|
||||||
|
|
||||||
${2}
|
${0}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
snippet block
|
snippet block
|
||||||
\begin{block}{${1:title}}
|
\begin{block}{${1:title}}
|
||||||
${2}
|
${0}
|
||||||
\end{block}
|
\end{block}
|
||||||
snippet alert
|
snippet alert
|
||||||
\begin{alertblock}{${1:title}}
|
\begin{alertblock}{${1:title}}
|
||||||
${2}
|
${0}
|
||||||
\end{alertblock}
|
\end{alertblock}
|
||||||
snippet example
|
snippet example
|
||||||
\begin{exampleblock}{${1:title}}
|
\begin{exampleblock}{${1:title}}
|
||||||
${2}
|
${0}
|
||||||
\end{exampleblock}
|
\end{exampleblock}
|
||||||
snippet col2
|
snippet col2
|
||||||
\begin{columns}
|
\begin{columns}
|
||||||
@ -253,6 +253,6 @@ snippet col2
|
|||||||
${1}
|
${1}
|
||||||
\end{column}
|
\end{column}
|
||||||
\begin{column}{0.5\textwidth}
|
\begin{column}{0.5\textwidth}
|
||||||
${2}
|
${0}
|
||||||
\end{column}
|
\end{column}
|
||||||
\end{columns}
|
\end{columns}
|
||||||
|
@ -3,28 +3,28 @@ snippet header
|
|||||||
---
|
---
|
||||||
title: ${1:title}
|
title: ${1:title}
|
||||||
layout: post
|
layout: post
|
||||||
date: ${2:date} ${3:hour:minute:second} -05:00
|
date: ${2:date} ${0:hour:minute:second} -05:00
|
||||||
---
|
---
|
||||||
|
|
||||||
# Image
|
# Image
|
||||||
snippet img
|
snippet img
|
||||||
!${1:url}(${2:title}):${3:link}!
|
!${1:url}(${2:title}):${0:link}!
|
||||||
|
|
||||||
# Table
|
# Table
|
||||||
snippet |
|
snippet |
|
||||||
|${1}|${2}
|
|${1}|
|
||||||
|
|
||||||
# Link
|
# Link
|
||||||
snippet link
|
snippet link
|
||||||
"${1:link text}":${2:url}
|
"${1:link text}":${0:url}
|
||||||
|
|
||||||
# Acronym
|
# Acronym
|
||||||
snippet (
|
snippet (
|
||||||
(${1:Expand acronym})${2}
|
(${1:Expand acronym})
|
||||||
|
|
||||||
# Footnote
|
# Footnote
|
||||||
snippet fn
|
snippet fn
|
||||||
[${1:ref number}] ${3}
|
[${1:ref number}] ${0}
|
||||||
|
|
||||||
fn$1. ${2:footnote}
|
fn$1. ${2:footnote}
|
||||||
|
|
||||||
|
@ -2,50 +2,50 @@ snippet header
|
|||||||
" File: ${1:`expand('%:t')`}
|
" File: ${1:`expand('%:t')`}
|
||||||
" Author: ${2:`g:snips_author`}
|
" Author: ${2:`g:snips_author`}
|
||||||
" Description: ${3}
|
" Description: ${3}
|
||||||
${4:" Last Modified: `strftime("%B %d, %Y")`}
|
${0:" Last Modified: `strftime("%B %d, %Y")`}
|
||||||
snippet guard
|
snippet guard
|
||||||
if exists('${1:did_`vim_snippets#Filename()`}') || &cp${2: || version < 700}
|
if exists('${1:did_`vim_snippets#Filename()`}') || &cp${2: || version < 700}
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let $1 = 1${3}
|
let $1 = 1${0}
|
||||||
snippet f
|
snippet f
|
||||||
fun! ${1:`expand('%') =~ 'autoload' ? substitute(matchstr(expand('%:p'),'autoload/\zs.*\ze.vim'),'[/\\]','#','g').'#' : ''`}${2:function_name}(${3})
|
fun! ${1:`expand('%') =~ 'autoload' ? substitute(matchstr(expand('%:p'),'autoload/\zs.*\ze.vim'),'[/\\]','#','g').'#' : ''`}${2:function_name}(${3})
|
||||||
${4}
|
${0}
|
||||||
endf
|
endf
|
||||||
snippet t
|
snippet t
|
||||||
try
|
try
|
||||||
${1}
|
${1}
|
||||||
catch ${2}
|
catch ${2}
|
||||||
${3}
|
${0}
|
||||||
endtry
|
endtry
|
||||||
snippet for
|
snippet for
|
||||||
for ${1} in ${2}
|
for ${1} in ${2}
|
||||||
${3}
|
${0}
|
||||||
endfor
|
endfor
|
||||||
snippet forkv
|
snippet forkv
|
||||||
for [${1},${2}] in items(${3})
|
for [${1},${2}] in items(${3})
|
||||||
${4}
|
${0}
|
||||||
unlet $1 $2
|
unlet $1 $2
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
snippet wh
|
snippet wh
|
||||||
while ${1}
|
while ${1}
|
||||||
${2}
|
${0}
|
||||||
endw
|
endw
|
||||||
snippet if
|
snippet if
|
||||||
if ${1}
|
if ${1}
|
||||||
${2}
|
${0}
|
||||||
endif
|
endif
|
||||||
snippet ife
|
snippet ife
|
||||||
if ${1}
|
if ${1}
|
||||||
${2}
|
${2}
|
||||||
else
|
else
|
||||||
${3}
|
${0}
|
||||||
endif
|
endif
|
||||||
snippet au
|
snippet au
|
||||||
augroup ${1:AU_NAME}
|
augroup ${1:AU_NAME}
|
||||||
" this one is which you're most likely to use?
|
" this one is which you're most likely to use?
|
||||||
autocmd ${2:BufRead,BufNewFile} ${3:*.ext,*.ext3|<buffer[=N]>} ${4}
|
autocmd ${2:BufRead,BufNewFile} ${3:*.ext,*.ext3|<buffer[=N]>} ${0}
|
||||||
augroup end
|
augroup end
|
||||||
snippet bun
|
snippet bun
|
||||||
Bundle '${1}'
|
Bundle '${0}'
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
snippet apply-templates with-param
|
snippet apply-templates with-param
|
||||||
<xsl:apply-templates select="${1:*}">
|
<xsl:apply-templates select="${1:*}">
|
||||||
<xsl:with-param name="${2:param}">${3}</xsl:with-param>${4}
|
<xsl:with-param name="${2:param}">${3}</xsl:with-param>${4}
|
||||||
</xsl:apply-templates>${5}
|
</xsl:apply-templates>
|
||||||
|
|
||||||
snippet apply-templates sort-by
|
snippet apply-templates sort-by
|
||||||
<xsl:apply-templates select="${1:*}">
|
<xsl:apply-templates select="${1:*}">
|
||||||
<xsl:sort select="${2:node}" order="${3:ascending}" data-type="${4:text}">${5}
|
<xsl:sort select="${2:node}" order="${3:ascending}" data-type="${4:text}">${5}
|
||||||
</xsl:apply-templates>${6}
|
</xsl:apply-templates>
|
||||||
|
|
||||||
snippet apply-templates plain
|
snippet apply-templates plain
|
||||||
<xsl:apply-templates select="${1:*}" />${2}
|
<xsl:apply-templates select="${1:*}" />
|
||||||
|
|
||||||
snippet attribute blank
|
snippet attribute blank
|
||||||
<xsl:attribute name="${1:name}">${2}</xsl:attribute>${3}
|
<xsl:attribute name="${1:name}">${2}</xsl:attribute>
|
||||||
|
|
||||||
snippet attribute value-of
|
snippet attribute value-of
|
||||||
<xsl:attribute name="${1:name}">
|
<xsl:attribute name="${1:name}">
|
||||||
<xsl:value-of select="${2:*}" />
|
<xsl:value-of select="${2:*}" />
|
||||||
</xsl:attribute>${3}
|
</xsl:attribute>
|
||||||
|
|
||||||
snippet call-template
|
snippet call-template
|
||||||
<xsl:call-template name="${1:template}" />
|
<xsl:call-template name="${1:template}" />
|
||||||
@ -25,73 +25,73 @@ snippet call-template
|
|||||||
snippet call-template with-param
|
snippet call-template with-param
|
||||||
<xsl:call-template name="${1:template}">
|
<xsl:call-template name="${1:template}">
|
||||||
<xsl:with-param name="${2:param}">${3}</xsl:with-param>${4}
|
<xsl:with-param name="${2:param}">${3}</xsl:with-param>${4}
|
||||||
</xsl:call-template>${5}
|
</xsl:call-template>
|
||||||
|
|
||||||
snippet choose
|
snippet choose
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="${1:value}">
|
<xsl:when test="${1:value}">
|
||||||
${2}
|
${2}
|
||||||
</xsl:when>${3}
|
</xsl:when>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
||||||
snippet copy-of
|
snippet copy-of
|
||||||
<xsl:copy-of select="${1:*}" />${2}
|
<xsl:copy-of select="${1:*}" />
|
||||||
|
|
||||||
snippet for-each
|
snippet for-each
|
||||||
<xsl:for-each select="${1:*}">${2}
|
<xsl:for-each select="${1:*}">${2}
|
||||||
</xsl:for-each>${3}
|
</xsl:for-each>
|
||||||
|
|
||||||
snippet if
|
snippet if
|
||||||
<xsl:if test="${1:test}">${2}
|
<xsl:if test="${1:test}">${2}
|
||||||
</xsl:if>${3}
|
</xsl:if>
|
||||||
|
|
||||||
snippet import
|
snippet import
|
||||||
<xsl:import href="${1:stylesheet}" />${2}
|
<xsl:import href="${1:stylesheet}" />
|
||||||
|
|
||||||
snippet include
|
snippet include
|
||||||
<xsl:include href="${1:stylesheet}" />${2}
|
<xsl:include href="${1:stylesheet}" />
|
||||||
|
|
||||||
snippet otherwise
|
snippet otherwise
|
||||||
<xsl:otherwise>${1}
|
<xsl:otherwise>${0}
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
|
|
||||||
snippet param
|
snippet param
|
||||||
<xsl:param name="${1:name}">${2}
|
<xsl:param name="${1:name}">${2}
|
||||||
</xsl:param>${3}
|
</xsl:param>
|
||||||
|
|
||||||
snippet stylesheet
|
snippet stylesheet
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">${1}
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">${0}
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
||||||
snippet template
|
snippet template
|
||||||
<xsl:template match="${1:*}">${3}
|
<xsl:template match="${1:*}">${0}
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
snippet template named
|
snippet template named
|
||||||
<xsl:template name="${1:name}">${2}
|
<xsl:template name="${1:name}">${0}
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
snippet text
|
snippet text
|
||||||
<xsl:text>${1}</xsl:text>
|
<xsl:text>${0}</xsl:text>
|
||||||
|
|
||||||
snippet value-of
|
snippet value-of
|
||||||
<xsl:value-of select="${1:*}" />${2}
|
<xsl:value-of select="${1:*}" />
|
||||||
|
|
||||||
snippet variable blank
|
snippet variable blank
|
||||||
<xsl:variable name="${1:name}">${2}
|
<xsl:variable name="${1:name}">${0}
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
snippet variable select
|
snippet variable select
|
||||||
<xsl:variable select="${1:*}" />${2}
|
<xsl:variable select="${1:*}" />
|
||||||
|
|
||||||
snippet when
|
snippet when
|
||||||
<xsl:when test="${1:test}">${2}
|
<xsl:when test="${1:test}">${0}
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
||||||
snippet with-param
|
snippet with-param
|
||||||
<xsl:with-param name="${1:name}">${2}</xsl:with-param>
|
<xsl:with-param name="${1:name}">${0}</xsl:with-param>
|
||||||
|
|
||||||
snippet with-param select
|
snippet with-param select
|
||||||
<xsl:with-param name="${1:name}" select="${2:*}" />
|
<xsl:with-param name="${1:name}" select="${0:*}" />
|
||||||
|
|
||||||
|
@ -1,248 +1,248 @@
|
|||||||
#--------------------Yii CHtml---------------------------------
|
#--------------------Yii CHtml---------------------------------
|
||||||
#Yii CHtml::radioButton
|
#Yii CHtml::radioButton
|
||||||
snippet yhrb
|
snippet yhrb
|
||||||
echo CHtml::radioButton('${1:name}', ${2:false},array(${3:optionName}=>${4:optionValue} );
|
echo CHtml::radioButton('${1:name}', ${2:false},array(${3:optionName}=>${0:optionValue} );
|
||||||
|
|
||||||
#Yii CHtml::asset
|
#Yii CHtml::asset
|
||||||
snippet yhass
|
snippet yhass
|
||||||
echo CHtml::asset('${1:path}');
|
echo CHtml::asset('${0:path}');
|
||||||
|
|
||||||
#Yii CHtml::activeLabelEx
|
#Yii CHtml::activeLabelEx
|
||||||
snippet yhale
|
snippet yhale
|
||||||
echo CHtml::activeLabelEx(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::activeLabelEx(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::encodeArray
|
#Yii CHtml::encodeArray
|
||||||
snippet yheca
|
snippet yheca
|
||||||
echo CHtml::encodeArray(array(${1}));
|
echo CHtml::encodeArray(array(${0}));
|
||||||
|
|
||||||
#Yii CHtml::normalizeUrl
|
#Yii CHtml::normalizeUrl
|
||||||
snippet yhnurl
|
snippet yhnurl
|
||||||
echo CHtml::normalizeUrl(array('${1}'));
|
echo CHtml::normalizeUrl(array('${0}'));
|
||||||
|
|
||||||
#Yii CHtml::resetButton
|
#Yii CHtml::resetButton
|
||||||
snippet yhsb
|
snippet yhsb
|
||||||
echo CHtml::submitButton('${1:label}',array('${2:optionName}'=>${3:optionValue}));
|
echo CHtml::submitButton('${1:label}',array('${2:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::linkButton
|
#Yii CHtml::linkButton
|
||||||
snippet yhlinkb
|
snippet yhlinkb
|
||||||
echo CHtml::linkButton('${1:lable}',array('${2:optionName}'=>${3:optionValue}));
|
echo CHtml::linkButton('${1:lable}',array('${2:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeTextArea
|
#Yii CHtml::activeTextArea
|
||||||
snippet yhata
|
snippet yhata
|
||||||
echo CHtml::activeTextArea(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::activeTextArea(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::ajaxButton
|
#Yii CHtml::ajaxButton
|
||||||
snippet yhajb
|
snippet yhajb
|
||||||
echo CHtml::ajaxButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${6:optionValue}));
|
echo CHtml::ajaxButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeId
|
#Yii CHtml::activeId
|
||||||
snippet yhai
|
snippet yhai
|
||||||
echo CHtml::activeId(${1:model}, '${2:attribute}');
|
echo CHtml::activeId(${1:model}, '${0:attribute}');
|
||||||
|
|
||||||
#Yii CHtml::activeCheckBox
|
#Yii CHtml::activeCheckBox
|
||||||
snippet yhacb
|
snippet yhacb
|
||||||
echo CHtml::activeCheckBox(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::activeCheckBox(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeHiddenField
|
#Yii CHtml::activeHiddenField
|
||||||
snippet yhahf
|
snippet yhahf
|
||||||
echo CHtml::activeHiddenField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::activeHiddenField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::encode
|
#Yii CHtml::encode
|
||||||
snippet yhec
|
snippet yhec
|
||||||
echo CHtml::encode(${1:text});
|
echo CHtml::encode(${0:text});
|
||||||
|
|
||||||
#Yii CHtml::metaTag
|
#Yii CHtml::metaTag
|
||||||
snippet yhmtag
|
snippet yhmtag
|
||||||
echo CHtml::metaTag('${1:content}', '${2:name}', '${3:httpEquiv}',array('${4:optionName}'=>${5:optionValue}));
|
echo CHtml::metaTag('${1:content}', '${2:name}', '${3:httpEquiv}',array('${4:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::dropDownList
|
#Yii CHtml::dropDownList
|
||||||
snippet yhddl
|
snippet yhddl
|
||||||
echo CHtml::dropDownList('${1:name}', '${2:select}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
echo CHtml::dropDownList('${1:name}', '${2:select}', array(${3}),array('${4:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::listBox
|
#Yii CHtml::listBox
|
||||||
snippet yhlb
|
snippet yhlb
|
||||||
echo CHtml::listBox('${1:name}', '${2:select}',array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
echo CHtml::listBox('${1:name}', '${2:select}',array(${3}),array('${4:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::script
|
#Yii CHtml::script
|
||||||
snippet yhjs
|
snippet yhjs
|
||||||
echo CHtml::script('${1:test}');
|
echo CHtml::script('${0:test}');
|
||||||
|
|
||||||
#Yii CHtml::ajax
|
#Yii CHtml::ajax
|
||||||
snippet yhaj
|
snippet yhaj
|
||||||
echo CHtml::ajax(array(${1}));
|
echo CHtml::ajax(array(${0}));
|
||||||
|
|
||||||
#Yii CHtml::textField
|
#Yii CHtml::textField
|
||||||
snippet yhtf
|
snippet yhtf
|
||||||
echo CHtml::textField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::textField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activePasswordField
|
#Yii CHtml::activePasswordField
|
||||||
snippet yhapf
|
snippet yhapf
|
||||||
echo CHtml::activePasswordField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::activePasswordField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::listData
|
#Yii CHtml::listData
|
||||||
snippet yhld
|
snippet yhld
|
||||||
echo CHtml::listData(array(${1}),'${2:valueField}', '${3:textField}','${4:groupField}');
|
echo CHtml::listData(array(${1}),'${2:valueField}', '${3:textField}','${0:groupField}');
|
||||||
|
|
||||||
#Yii CHtml::mailto
|
#Yii CHtml::mailto
|
||||||
snippet yhmt
|
snippet yhmt
|
||||||
echo CHtml::mailto('${1:text}', '${2:email}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::mailto('${1:text}', '${2:email}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::image
|
#Yii CHtml::image
|
||||||
snippet yhimg
|
snippet yhimg
|
||||||
echo CHtml::image('${1:src}', '${2:alt}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::image('${1:src}', '${2:alt}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeListBox
|
#Yii CHtml::activeListBox
|
||||||
snippet yhalb
|
snippet yhalb
|
||||||
echo CHtml::activeListBox(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
echo CHtml::activeListBox(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeFileField
|
#Yii CHtml::activeFileField
|
||||||
snippet yhaff
|
snippet yhaff
|
||||||
echo CHtml::activeFileField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::activeFileField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::closeTag
|
#Yii CHtml::closeTag
|
||||||
snippet yhct
|
snippet yhct
|
||||||
echo CHtml::closeTag('${1:tag}');
|
echo CHtml::closeTag('${0:tag}');
|
||||||
|
|
||||||
#Yii CHtml::activeInputField
|
#Yii CHtml::activeInputField
|
||||||
snippet yhaif
|
snippet yhaif
|
||||||
echo CHtml::activeInputField('${1:type}', ${2:model}, '${3:attribute}',array('${4:optionName}'=>${5:optionValue}));
|
echo CHtml::activeInputField('${1:type}', ${2:model}, '${3:attribute}',array('${4:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::scriptFile
|
#Yii CHtml::scriptFile
|
||||||
snippet yhjsf
|
snippet yhjsf
|
||||||
echo CHtml::scriptFile('${1:url}');
|
echo CHtml::scriptFile('${0:url}');
|
||||||
|
|
||||||
#Yii CHtml::radioButtonList
|
#Yii CHtml::radioButtonList
|
||||||
snippet yhrbl
|
snippet yhrbl
|
||||||
echo CHtml::radioButtonList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
echo CHtml::radioButtonList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::cssFile
|
#Yii CHtml::cssFile
|
||||||
snippet yhcssf
|
snippet yhcssf
|
||||||
echo CHtml::cssFile('${1:url}','${2:media}');
|
echo CHtml::cssFile('${1:url}','${0:media}');
|
||||||
|
|
||||||
#Yii CHtml::error
|
#Yii CHtml::error
|
||||||
snippet yherr
|
snippet yherr
|
||||||
echo CHtml::error(${1:model}, '${2:attribute}');
|
echo CHtml::error(${1:model}, '${0:attribute}');
|
||||||
|
|
||||||
#Yii CHtml::passwordField
|
#Yii CHtml::passwordField
|
||||||
snippet yhpf
|
snippet yhpf
|
||||||
echo CHtml::passwordField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::passwordField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::hiddenField
|
#Yii CHtml::hiddenField
|
||||||
snippet yhhf
|
snippet yhhf
|
||||||
echo CHtml::hiddenField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::hiddenField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::cdata
|
#Yii CHtml::cdata
|
||||||
snippet yhc
|
snippet yhc
|
||||||
echo CHtml::cdata(${1:text});
|
echo CHtml::cdata(${0:text});
|
||||||
|
|
||||||
#Yii CHtml::link
|
#Yii CHtml::link
|
||||||
snippet yhlink
|
snippet yhlink
|
||||||
echo CHtml::link('${1:text}',array(${2}),array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::link('${1:text}',array(${2}),array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::errorSummary
|
#Yii CHtml::errorSummary
|
||||||
snippet yherrs
|
snippet yherrs
|
||||||
echo CHtml::errorSummary(${1:model},'${2:headerHtml}','${3:footerHtml}');
|
echo CHtml::errorSummary(${1:model},'${2:headerHtml}','${0:footerHtml}');
|
||||||
|
|
||||||
#Yii CHtml::tag
|
#Yii CHtml::tag
|
||||||
snippet yht
|
snippet yht
|
||||||
echo CHtml::tag('${1:tag}',array('${2:optionName}'=>${3:optionValue}),${4:false},${5:true});
|
echo CHtml::tag('${1:tag}',array('${2:optionName}'=>${3:optionValue}),${4:false},${0:true});
|
||||||
|
|
||||||
#Yii CHtml::ajaxLink
|
#Yii CHtml::ajaxLink
|
||||||
snippet yhajl
|
snippet yhajl
|
||||||
echo CHtml::ajaxLink('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${6:optionValue}));
|
echo CHtml::ajaxLink('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::label
|
#Yii CHtml::label
|
||||||
snippet yhlabel
|
snippet yhlabel
|
||||||
echo CHtml::label('${1:label}', '${2:for}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::label('${1:label}', '${2:for}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeName
|
#Yii CHtml::activeName
|
||||||
snippet yhan
|
snippet yhan
|
||||||
echo CHtml::activeName(${1:model}, '${2:attribute}');
|
echo CHtml::activeName(${1:model}, '${0:attribute}');
|
||||||
|
|
||||||
#Yii CHtml::statefulForm
|
#Yii CHtml::statefulForm
|
||||||
snippet yhsform
|
snippet yhsform
|
||||||
echo CHtml::statefulForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::statefulForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::fileField
|
#Yii CHtml::fileField
|
||||||
snippet yhff
|
snippet yhff
|
||||||
echo CHtml::fileField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::fileField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeTextField
|
#Yii CHtml::activeTextField
|
||||||
snippet yhatf
|
snippet yhatf
|
||||||
echo CHtml::activeTextField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::activeTextField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::css
|
#Yii CHtml::css
|
||||||
snippet yhcss
|
snippet yhcss
|
||||||
echo CHtml::css('${1:test}','${2:media}');
|
echo CHtml::css('${1:test}','${0:media}');
|
||||||
|
|
||||||
#Yii CHtml::imageButton
|
#Yii CHtml::imageButton
|
||||||
snippet yhimgb
|
snippet yhimgb
|
||||||
echo CHtml::imageButton('${1:src}',array('${2:optionName}'=>${3:optionValue}));
|
echo CHtml::imageButton('${1:src}',array('${2:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::ajaxSubmitButton
|
#Yii CHtml::ajaxSubmitButton
|
||||||
snippet yhajsb
|
snippet yhajsb
|
||||||
echo CHtml::ajaxSubmitButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${6:optionValue}));
|
echo CHtml::ajaxSubmitButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::button
|
#Yii CHtml::button
|
||||||
snippet yhb
|
snippet yhb
|
||||||
echo CHtml::button('${1:label}',array('${2:optionName}'=>${3:optionValue}));
|
echo CHtml::button('${1:label}',array('${2:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::listOptions
|
#Yii CHtml::listOptions
|
||||||
snippet yhlo
|
snippet yhlo
|
||||||
echo CHtml::listOptions('${1:selection}', array(${2}), array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::listOptions('${1:selection}', array(${2}), array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeCheckBoxList
|
#Yii CHtml::activeCheckBoxList
|
||||||
snippet yhacbl
|
snippet yhacbl
|
||||||
echo CHtml::activeCheckBoxList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
echo CHtml::activeCheckBoxList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::openTag
|
#Yii CHtml::openTag
|
||||||
snippet yhot
|
snippet yhot
|
||||||
echo CHtml::openTag('${1:tag}', array('${2:optionName}'=>${3:optionValue}));
|
echo CHtml::openTag('${1:tag}', array('${2:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::checkBox
|
#Yii CHtml::checkBox
|
||||||
snippet yhcb
|
snippet yhcb
|
||||||
echo CHtml::checkBox('${1:name}', ${2:false}, array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::checkBox('${1:name}', ${2:false}, array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::textArea
|
#Yii CHtml::textArea
|
||||||
snippet yhta
|
snippet yhta
|
||||||
echo CHtml::textArea('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::textArea('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::linkTag
|
#Yii CHtml::linkTag
|
||||||
snippet yhlinkt
|
snippet yhlinkt
|
||||||
echo CHtml::linkTag('${1:relation}', '${2:type}', '${3:href}', '${4:media}',array('${5:optionName}'=>${6:optionValue}));
|
echo CHtml::linkTag('${1:relation}', '${2:type}', '${3:href}', '${4:media}',array('${5:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::resetButton
|
#Yii CHtml::resetButton
|
||||||
snippet yhrsb
|
snippet yhrsb
|
||||||
echo CHtml::resetButton('${1:label}',array('${2:optionName}'=>${3:optionValue}));
|
echo CHtml::resetButton('${1:label}',array('${2:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeRadioButtonList
|
#Yii CHtml::activeRadioButtonList
|
||||||
snippet yharbl
|
snippet yharbl
|
||||||
echo CHtml::activeRadioButtonList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
echo CHtml::activeRadioButtonList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::checkBoxList
|
#Yii CHtml::checkBoxList
|
||||||
snippet yhcbl
|
snippet yhcbl
|
||||||
echo CHtml::checkBoxList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
echo CHtml::checkBoxList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::form
|
#Yii CHtml::form
|
||||||
snippet yhform
|
snippet yhform
|
||||||
echo CHtml::form(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::form(array('${1}'), '${2:post}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::beginForm
|
#Yii CHtml::beginForm
|
||||||
snippet yhbeform
|
snippet yhbeform
|
||||||
echo CHtml::beginForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::beginForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
|
||||||
${5}
|
${0}
|
||||||
echo CHtml::endForm();
|
echo CHtml::endForm();
|
||||||
|
|
||||||
#Yii CHtml::activeDropDownList
|
#Yii CHtml::activeDropDownList
|
||||||
snippet yhaddl
|
snippet yhaddl
|
||||||
echo CHtml::activeDropDownList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
echo CHtml::activeDropDownList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeRadioButton
|
#Yii CHtml::activeRadioButton
|
||||||
snippet yharb
|
snippet yharb
|
||||||
echo CHtml::activeRadioButton(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::activeRadioButton(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
#Yii CHtml::activeLabel
|
#Yii CHtml::activeLabel
|
||||||
snippet yhal
|
snippet yhal
|
||||||
echo CHtml::activeLabel(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
echo CHtml::activeLabel(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
#Yii session offset
|
#Yii session offset
|
||||||
snippet yse
|
snippet yse
|
||||||
Yii::app()->session['${1}'];
|
Yii::app()->session['${0}'];
|
||||||
|
|
||||||
#Yii renderDynamic
|
#Yii renderDynamic
|
||||||
snippet yrd
|
snippet yrd
|
||||||
$this->renderDynamic('${1:callback}');
|
$this->renderDynamic('${0:callback}');
|
||||||
|
|
||||||
#Yii set cache
|
#Yii set cache
|
||||||
snippet ycas
|
snippet ycas
|
||||||
Yii::app()->cache->set('${1:key}', ${2:value}, ${3:expire}, new C${4:}CacheDependency(${5}));
|
Yii::app()->cache->set('${1:key}', ${2:value}, ${3:expire}, new C${4:}CacheDependency(${0}));
|
||||||
|
|
||||||
#Yii Add cache
|
#Yii Add cache
|
||||||
snippet ycad
|
snippet ycad
|
||||||
Yii::app()->cache->add('${1:key}', ${2:value}, ${3:expire}, new C${4}CacheDependency(${5}));
|
Yii::app()->cache->add('${1:key}', ${2:value}, ${3:expire}, new C${4}CacheDependency(${0}));
|
||||||
|
|
||||||
#Yii register CSS file
|
#Yii register CSS file
|
||||||
snippet yregcf
|
snippet yregcf
|
||||||
Yii::app()->clientScript->registerCssFile('${1:file}');
|
Yii::app()->clientScript->registerCssFile('${0:file}');
|
||||||
|
|
||||||
#Yii requestType
|
#Yii requestType
|
||||||
snippet yreqtype
|
snippet yreqtype
|
||||||
@ -28,15 +28,15 @@ snippet yisajax
|
|||||||
|
|
||||||
#Yii translate
|
#Yii translate
|
||||||
snippet yt
|
snippet yt
|
||||||
Yii::t('${1:category}', '${2:message}',array(${3}));
|
Yii::t('${1:category}', '${2:message}',array(${0}));
|
||||||
|
|
||||||
#Yii register CSS
|
#Yii register CSS
|
||||||
snippet yregc
|
snippet yregc
|
||||||
Yii::app()->clientScript->registerCss('${1:id}', '${2}');
|
Yii::app()->clientScript->registerCss('${1:id}', '${0}');
|
||||||
|
|
||||||
#Yii log
|
#Yii log
|
||||||
snippet ylog
|
snippet ylog
|
||||||
Yii::log('${1:msg}', '${2:info}');
|
Yii::log('${1:msg}', '${0:info}');
|
||||||
|
|
||||||
#Yii userHostAddress
|
#Yii userHostAddress
|
||||||
snippet yuserip
|
snippet yuserip
|
||||||
@ -44,15 +44,15 @@ snippet yuserip
|
|||||||
|
|
||||||
#Yii register script file
|
#Yii register script file
|
||||||
snippet yregsf
|
snippet yregsf
|
||||||
Yii::app()->clientScript->registerScriptFile('${1:scriptUrl}', CClientScript::POS_${2:END});
|
Yii::app()->clientScript->registerScriptFile('${1:scriptUrl}', CClientScript::POS_${0:END});
|
||||||
|
|
||||||
#Yii CLinkPager
|
#Yii CLinkPager
|
||||||
snippet ylinkpager
|
snippet ylinkpager
|
||||||
$this->widget('CLinkPager', array('pages'=>$pages,'header'=>'${1}'}))
|
$this->widget('CLinkPager', array('pages'=>$pages,'header'=>'${0}'}))
|
||||||
|
|
||||||
#Yii CJSON::encode
|
#Yii CJSON::encode
|
||||||
snippet yjec
|
snippet yjec
|
||||||
CJSON::encode(${1:text});
|
CJSON::encode(${0:text});
|
||||||
|
|
||||||
#CActiveDataProvider
|
#CActiveDataProvider
|
||||||
snippet yadp
|
snippet yadp
|
||||||
@ -67,16 +67,16 @@ snippet yadp
|
|||||||
'pageSize'=>${5},
|
'pageSize'=>${5},
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
${6}
|
${0}
|
||||||
// $dataProvider->getData() will return a list of Post objects
|
// $dataProvider->getData() will return a list of Post objects
|
||||||
|
|
||||||
#Yii renderDynamic internal
|
#Yii renderDynamic internal
|
||||||
snippet yrdi
|
snippet yrdi
|
||||||
$this->renderDynamic('${1:callback}', array('${2:key}'=>${3:value}));
|
$this->renderDynamic('${1:callback}', array('${2:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii register script
|
#Yii register script
|
||||||
snippet yregs
|
snippet yregs
|
||||||
Yii::app()->clientScript->registerScript('${1:id}', '${2}', CClientScript::POS_${3:READY});
|
Yii::app()->clientScript->registerScript('${1:id}', '${2}', CClientScript::POS_${0:READY});
|
||||||
|
|
||||||
#Yii Flush cache
|
#Yii Flush cache
|
||||||
snippet ycaf
|
snippet ycaf
|
||||||
@ -84,11 +84,11 @@ snippet ycaf
|
|||||||
|
|
||||||
#Yii Yii::app()->request->cookies
|
#Yii Yii::app()->request->cookies
|
||||||
snippet yco
|
snippet yco
|
||||||
Yii::app()->request->cookies['${1}']
|
Yii::app()->request->cookies['${0}']
|
||||||
|
|
||||||
#Yii user->
|
#Yii user->
|
||||||
snippet yuser
|
snippet yuser
|
||||||
Yii::app()->user->${1}
|
Yii::app()->user->
|
||||||
|
|
||||||
#Yii refresh
|
#Yii refresh
|
||||||
snippet yrf
|
snippet yrf
|
||||||
@ -96,15 +96,15 @@ snippet yrf
|
|||||||
|
|
||||||
#Yii import
|
#Yii import
|
||||||
snippet yimp
|
snippet yimp
|
||||||
Yii::import('${1}');
|
Yii::import('${0}');
|
||||||
|
|
||||||
#Yii trace
|
#Yii trace
|
||||||
snippet ytrace
|
snippet ytrace
|
||||||
Yii::trace('${1:msg}');
|
Yii::trace('${0:msg}');
|
||||||
|
|
||||||
#Yii params
|
#Yii params
|
||||||
snippet ypar
|
snippet ypar
|
||||||
Yii::app()->params['${1}']
|
Yii::app()->params['${0}']
|
||||||
|
|
||||||
#Yii isPostRequest
|
#Yii isPostRequest
|
||||||
snippet yispost
|
snippet yispost
|
||||||
@ -114,85 +114,85 @@ snippet yispost
|
|||||||
snippet yifisajax
|
snippet yifisajax
|
||||||
if(Yii::app()->request->isAjaxRequest == TRUE)
|
if(Yii::app()->request->isAjaxRequest == TRUE)
|
||||||
{
|
{
|
||||||
${1}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Yii Yii::app()->cache->delete
|
#Yii Yii::app()->cache->delete
|
||||||
snippet ydelcache
|
snippet ydelcache
|
||||||
Yii::app()->cache->delete('${1:key}');
|
Yii::app()->cache->delete('${0:key}');
|
||||||
|
|
||||||
#Yii render view
|
#Yii render view
|
||||||
snippet yr
|
snippet yr
|
||||||
$this->render('${1:view}',array('${2:key}'=>${3:value}));
|
$this->render('${1:view}',array('${2:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii redirect
|
#Yii redirect
|
||||||
snippet yre
|
snippet yre
|
||||||
$this->redirect(array('${1:controller}/${2:action}'));
|
$this->redirect(array('${1:controller}/${0:action}'));
|
||||||
|
|
||||||
#Yii Get cache
|
#Yii Get cache
|
||||||
snippet ycag
|
snippet ycag
|
||||||
Yii::app()->cache->get('${1:key}');
|
Yii::app()->cache->get('${0:key}');
|
||||||
|
|
||||||
#Yii render text
|
#Yii render text
|
||||||
snippet yrt
|
snippet yrt
|
||||||
$this->renderText('${1}');
|
$this->renderText('${0}');
|
||||||
|
|
||||||
#Yii render partial
|
#Yii render partial
|
||||||
snippet yrp
|
snippet yrp
|
||||||
$this->renderPartial('${1:view}',array('${2:key}'=>${3:value}));
|
$this->renderPartial('${1:view}',array('${2:key}'=>${0:value}));
|
||||||
|
|
||||||
#----------------Yii Model-----------------------------
|
#----------------Yii Model-----------------------------
|
||||||
#Yii Model count
|
#Yii Model count
|
||||||
snippet ycountm
|
snippet ycountm
|
||||||
${1:ModelName}::model()->count(${2:condition}, array('${3:key}'=>${4:value}));
|
${1:ModelName}::model()->count(${2:condition}, array('${3:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model countBySql
|
#Yii Model countBySql
|
||||||
snippet ycountbs
|
snippet ycountbs
|
||||||
${1:ModelName}::model()->countBySql(${2:sql},array('${3:key}'=>${4:value}));
|
${1:ModelName}::model()->countBySql(${2:sql},array('${3:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model updateAll
|
#Yii Model updateAll
|
||||||
snippet yupdatea
|
snippet yupdatea
|
||||||
${1:ModelName}::model()->updateAll(${2:array('attributes')}, ${3:condition},array('${4:key}'=>${5:value}));
|
${1:ModelName}::model()->updateAll(${2:array('attributes')}, ${3:condition},array('${4:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model updateByPk
|
#Yii Model updateByPk
|
||||||
snippet yupdatebp
|
snippet yupdatebp
|
||||||
${1:ModelName}::model()->updateByPk(${2:pk}, ${3:array('attributes')}, ${4:condition},array('${5:key}'=>${6:value}));
|
${1:ModelName}::model()->updateByPk(${2:pk}, ${3:array('attributes')}, ${4:condition},array('${5:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model deleteAll
|
#Yii Model deleteAll
|
||||||
snippet ydela
|
snippet ydela
|
||||||
${1:ModelName}::model()->deleteAll(${2:condition},array('${3:key}'=>${4:value}));
|
${1:ModelName}::model()->deleteAll(${2:condition},array('${3:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model deleteByPk
|
#Yii Model deleteByPk
|
||||||
snippet ydelbp
|
snippet ydelbp
|
||||||
${1:ModelName}::model()->deleteByPk(${2:pk}, ${3:condition}, array('${4:key}'=>${5:value}));
|
${1:ModelName}::model()->deleteByPk(${2:pk}, ${3:condition}, array('${4:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model find
|
#Yii Model find
|
||||||
snippet yfind
|
snippet yfind
|
||||||
${1:ModelName}::model()->find(${2:condition},array('${3:key}'=>${4:value}));
|
${1:ModelName}::model()->find(${2:condition},array('${3:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model findAll
|
#Yii Model findAll
|
||||||
snippet yfinda
|
snippet yfinda
|
||||||
${1:ModelName}::model()->findAll(${2:condition},array('${3:key}'=>${4:value}));
|
${1:ModelName}::model()->findAll(${2:condition},array('${3:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model findByPk
|
#Yii Model findByPk
|
||||||
snippet yfindbp
|
snippet yfindbp
|
||||||
${1:ModelName}::model()->findByPk(${2:pk}, ${3:condition}, array('${4:key}'=>${5:value}));
|
${1:ModelName}::model()->findByPk(${2:pk}, ${3:condition}, array('${4:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model findAllByPk
|
#Yii Model findAllByPk
|
||||||
snippet yfindabp
|
snippet yfindabp
|
||||||
${1:ModelName}::model()->findAllByPk(${2:pk}, ${3:condition},array('${4:key}'=>${5:value}));
|
${1:ModelName}::model()->findAllByPk(${2:pk}, ${3:condition},array('${4:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model findBySql
|
#Yii Model findBySql
|
||||||
snippet yfindbs
|
snippet yfindbs
|
||||||
${1:ModelName}::model()->findBySql(${2:sql}, array('${3:key}'=>${4:value}));
|
${1:ModelName}::model()->findBySql(${2:sql}, array('${3:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model findAllByAttributes
|
#Yii Model findAllByAttributes
|
||||||
snippet yfindaba
|
snippet yfindaba
|
||||||
${1:ModelName}::model()->findAllByAttributes(array('${2:attributeName}'=>${3:attributeValue}), ${4:condition}, array('${5:key}'=>${6:value}));
|
${1:ModelName}::model()->findAllByAttributes(array('${2:attributeName}'=>${3:attributeValue}), ${4:condition}, array('${5:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Model exists
|
#Yii Model exists
|
||||||
snippet yexists
|
snippet yexists
|
||||||
${1:ModelName}::model()->exists(${2:condition}, array('${3:key}'=>${4:value}));
|
${1:ModelName}::model()->exists(${2:condition}, array('${3:key}'=>${0:value}));
|
||||||
|
|
||||||
#Yii Create model class
|
#Yii Create model class
|
||||||
snippet ymodel
|
snippet ymodel
|
||||||
@ -214,7 +214,7 @@ snippet ymodel
|
|||||||
*/
|
*/
|
||||||
public function tableName()
|
public function tableName()
|
||||||
{
|
{
|
||||||
return '${3:table_name}';
|
return '${0:table_name}';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -258,7 +258,7 @@ snippet ycontroller
|
|||||||
{
|
{
|
||||||
public function action${4:Index}()
|
public function action${4:Index}()
|
||||||
{
|
{
|
||||||
${5}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------
|
// -----------------------------------------------------------
|
||||||
@ -294,7 +294,7 @@ snippet ycontroller
|
|||||||
snippet yact
|
snippet yact
|
||||||
public function action${1:Index}(${2:params})
|
public function action${1:Index}(${2:params})
|
||||||
{
|
{
|
||||||
${3}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,59 +4,59 @@ snippet #!
|
|||||||
|
|
||||||
snippet if
|
snippet if
|
||||||
if ${1:condition}; then
|
if ${1:condition}; then
|
||||||
${2:# statements}
|
${0:# statements}
|
||||||
fi
|
fi
|
||||||
snippet ife
|
snippet ife
|
||||||
if ${1:condition}; then
|
if ${1:condition}; then
|
||||||
${2:# statements}
|
${2:# statements}
|
||||||
else
|
else
|
||||||
${3:# statements}
|
${0:# statements}
|
||||||
fi
|
fi
|
||||||
snippet eif
|
snippet eif
|
||||||
elif ${1:condition} ; then
|
elif ${1:condition} ; then
|
||||||
${2:# statements}
|
${0:# statements}
|
||||||
snippet for
|
snippet for
|
||||||
for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
|
for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
|
||||||
${3:# statements}
|
${0:# statements}
|
||||||
done
|
done
|
||||||
snippet fori
|
snippet fori
|
||||||
for ${1:needle} in ${2:haystack} ; do
|
for ${1:needle} in ${2:haystack} ; do
|
||||||
${3:#statements}
|
${0:#statements}
|
||||||
done
|
done
|
||||||
snippet fore
|
snippet fore
|
||||||
for ${1:item} in ${2:list}; do
|
for ${1:item} in ${2:list}; do
|
||||||
${3:# statements}
|
${0:# statements}
|
||||||
done
|
done
|
||||||
snippet wh
|
snippet wh
|
||||||
while ${1:condition}; do
|
while ${1:condition}; do
|
||||||
${2:# statements}
|
${0:# statements}
|
||||||
done
|
done
|
||||||
snippet until
|
snippet until
|
||||||
until ${1:condition}; do
|
until ${1:condition}; do
|
||||||
${2:# statements}
|
${0:# statements}
|
||||||
done
|
done
|
||||||
snippet repeat
|
snippet repeat
|
||||||
repeat ${1:integer}; do
|
repeat ${1:integer}; do
|
||||||
${2:# statements}
|
${0:# statements}
|
||||||
done
|
done
|
||||||
snippet case
|
snippet case
|
||||||
case ${1:word} in
|
case ${1:word} in
|
||||||
${2:pattern})
|
${2:pattern})
|
||||||
${3};;
|
${0};;
|
||||||
esac
|
esac
|
||||||
snippet select
|
snippet select
|
||||||
select ${1:answer} in ${2:choices}; do
|
select ${1:answer} in ${2:choices}; do
|
||||||
${3:# statements}
|
${0:# statements}
|
||||||
done
|
done
|
||||||
snippet (
|
snippet (
|
||||||
( ${1:#statements} )
|
( ${0:#statements} )
|
||||||
snippet {
|
snippet {
|
||||||
{ ${1:#statements} }
|
{ ${0:#statements} }
|
||||||
snippet [
|
snippet [
|
||||||
[[ ${1:test} ]]
|
[[ ${0:test} ]]
|
||||||
snippet always
|
snippet always
|
||||||
{ ${1:try} } always { ${2:always} }
|
{ ${1:try} } always { ${0:always} }
|
||||||
snippet fun
|
snippet fun
|
||||||
function ${1:name} (${2:args}) {
|
function ${1:name} (${2:args}) {
|
||||||
${3:# body}
|
${0:# body}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user