mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
removed group-name prefix on trigger keys
This commit is contained in:
parent
7b383f8c22
commit
3aea27042b
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h1>...</h1>
|
||||
# key: headerh1
|
||||
# key: h1
|
||||
# --
|
||||
<h1>$1</h1>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h2>...</h2>
|
||||
# key: headerh2
|
||||
# key: h2
|
||||
# --
|
||||
<h2>$1</h2>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h3>...</h3>
|
||||
# key: headerh3
|
||||
# key: h3
|
||||
# --
|
||||
<h3>$1</h3>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h4>...</h4>
|
||||
# key: headerh4
|
||||
# key: h4
|
||||
# --
|
||||
<h4>$1</h4>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h5>...</h5>
|
||||
# key: headerh5
|
||||
# key: h5
|
||||
# --
|
||||
<h5>$1</h5>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h6>...</h6>
|
||||
# key: headerh6
|
||||
# key: h6
|
||||
# --
|
||||
<h6>$1</h6>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
|
||||
#name : <dd> ... </dd>
|
||||
# key: listdd
|
||||
# key: dd
|
||||
# --
|
||||
<dd>$1</dd>
|
@ -1,6 +1,6 @@
|
||||
#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
|
||||
#name : <dl> ... </dl>
|
||||
# key: listdl
|
||||
# key: dl
|
||||
# --
|
||||
<dl>
|
||||
$0
|
||||
|
@ -1,6 +1,6 @@
|
||||
#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
|
||||
#name : <dl> ... </dl>
|
||||
# key: listdl
|
||||
# key: dl
|
||||
# --
|
||||
<dl id="$1">
|
||||
$0
|
||||
|
@ -1,5 +1,5 @@
|
||||
#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
|
||||
#name : <dt> ... </dt>
|
||||
# key: listdt
|
||||
# key: dt
|
||||
# --
|
||||
<dt>$1</dt>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <li>...</li>
|
||||
# key: listli
|
||||
# key: li
|
||||
# --
|
||||
<li>$1</li>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <li class="...">...</li>
|
||||
# key: listli
|
||||
# key: li
|
||||
# --
|
||||
<li class="$1">$2</li>
|
@ -1,6 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ol>...</ol>
|
||||
# key: listol
|
||||
# key: ol
|
||||
# --
|
||||
<ol>
|
||||
$0
|
||||
|
@ -1,6 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ol class="...">...</ol>
|
||||
# key: listol
|
||||
# key: ol
|
||||
# --
|
||||
<ol class="$1">
|
||||
$0
|
||||
|
@ -1,6 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ol id="...">...</ol>
|
||||
# key: listol
|
||||
# key: ol
|
||||
# --
|
||||
<ol id="$1">
|
||||
$0
|
||||
|
@ -1,6 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ul>...</ul>
|
||||
# key: listul
|
||||
# key: ul
|
||||
# --
|
||||
<ul>
|
||||
$0
|
||||
|
@ -1,6 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ul class="...">...</ul>
|
||||
# key: listul
|
||||
# key: ul
|
||||
# --
|
||||
<ul class="$1">
|
||||
$0
|
||||
|
@ -1,6 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ul id="...">...</ul>
|
||||
# key: listul
|
||||
# key: ul
|
||||
# --
|
||||
<ul id="$1">
|
||||
$0
|
||||
|
@ -1,4 +1,4 @@
|
||||
#name : Doctype HTML 4.01 Strict
|
||||
# key: metadoctype
|
||||
# key: doctype
|
||||
# --
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
@ -1,4 +1,4 @@
|
||||
#name : DocType XHTML 1.0 frameset
|
||||
# key: metadoctype
|
||||
# key: doctype
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
@ -1,4 +1,4 @@
|
||||
#name : DocType XHTML 1.1
|
||||
# key: metadoctype
|
||||
# key: doctype
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
@ -1,4 +1,4 @@
|
||||
#name : DocType XHTML 1.0 Strict
|
||||
# key: metadoctype
|
||||
# key: doctype
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
@ -1,4 +1,4 @@
|
||||
#name : DocType XHTML 1.0 Transitional
|
||||
# key: metadoctype
|
||||
# key: doctype
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <meta name="..." content="..." />
|
||||
# key: metameta
|
||||
# key: meta
|
||||
# --
|
||||
<meta name="${1:generator}" content="${2:content}" />
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <meta http-equiv="..." content="..." />
|
||||
# key: metameta
|
||||
# key: meta
|
||||
# --
|
||||
<meta http-equiv="${1:Content-Type}" content="${2:text/html; charset=UTF-8}" />
|
@ -1,6 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <table ...>...</table>
|
||||
# key: tabletable
|
||||
# key: table
|
||||
# --
|
||||
<table width="$1" cellspacing="$2" cellpadding="$3" border="$4">
|
||||
$0
|
||||
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <td>...</td>
|
||||
# key: tabletd
|
||||
# key: td
|
||||
# --
|
||||
<td$1>$2</td>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <th>...</th>
|
||||
# key: tableth
|
||||
# key: th
|
||||
# --
|
||||
<th$1>$2</th>
|
@ -1,6 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <tr>...</tr>
|
||||
# key: tabletr
|
||||
# key: tr
|
||||
# --
|
||||
<tr>
|
||||
$0
|
||||
|
@ -1,5 +1,5 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h1>...</h1>
|
||||
# key: headerh1
|
||||
# key: h1
|
||||
# --
|
||||
<h1>$1</h1>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h2>...</h2>
|
||||
# key: headerh2
|
||||
# key: h2
|
||||
# --
|
||||
<h2>$1</h2>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h3>...</h3>
|
||||
# key: headerh3
|
||||
# key: h3
|
||||
# --
|
||||
<h3>$1</h3>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h4>...</h4>
|
||||
# key: headerh4
|
||||
# key: h4
|
||||
# --
|
||||
<h4>$1</h4>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h5>...</h5>
|
||||
# key: headerh5
|
||||
# key: h5
|
||||
# --
|
||||
<h5>$1</h5>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h6>...</h6>
|
||||
# key: headerh6
|
||||
# key: h6
|
||||
# --
|
||||
<h6>$1</h6>
|
@ -1,5 +1,5 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : DocType XHTML 1.1
|
||||
# key: metadoctype
|
||||
# key: doctype
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
@ -1,5 +1,5 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : DocType XHTML 1.0 Strict
|
||||
# key: metadoctype
|
||||
# key: doctype
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
@ -1,5 +1,5 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : DocType XHTML 1.0 Transitional
|
||||
# key: metadoctype
|
||||
# key: doctype
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
@ -1,5 +1,5 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <meta name="..." content="..." />
|
||||
# key: metameta
|
||||
# key: meta
|
||||
# --
|
||||
<meta name="${1:generator}" content="${2:content}" />
|
@ -1,4 +1,4 @@
|
||||
#name : all? { |...| ... }
|
||||
# key: collectionsall
|
||||
# key: all
|
||||
# --
|
||||
all? { |${e}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : any? { |...| ... }
|
||||
# key: collectionsany
|
||||
# key: any
|
||||
# --
|
||||
any? { |${e}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : classify { |...| ... }
|
||||
# key: collectionsclassify
|
||||
# key: classify
|
||||
# --
|
||||
classify { |${e}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : collect { |...| ... }
|
||||
# key: collectionscollect
|
||||
# key: collect
|
||||
# --
|
||||
collect { |${e}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : delete_if { |...| ... }
|
||||
# key: collectionsdeli
|
||||
# key: deli
|
||||
# --
|
||||
delete_if { |${e} $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : detect { |...| ... }
|
||||
# key: collectionsdet
|
||||
# key: det
|
||||
# --
|
||||
detect { |${e}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : each { |...| ... }
|
||||
# key: collectionsea
|
||||
# key: ea
|
||||
# --
|
||||
each { |${e}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : each_cons(...) { |...| ... }
|
||||
# key: collectionseac
|
||||
# key: eac
|
||||
# --
|
||||
each_cons(${1:2}) { |${group}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : each_index { |i| ... }
|
||||
# key: collectionseai
|
||||
# key: eai
|
||||
# --
|
||||
each_index { |${i}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : each_value { |val| ... }
|
||||
# key: collectionseav
|
||||
# key: eav
|
||||
# --
|
||||
each_value { |${val}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : each_with_index { |e, i| ... }
|
||||
# key: collectionseawi
|
||||
# key: eawi
|
||||
# --
|
||||
each_with_index { |${e}, ${i}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : inject(...) { |...| ... }
|
||||
# key: collectionsinject
|
||||
# key: inject
|
||||
# --
|
||||
inject(${1:0}) { |${2:injection}, ${3:element}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : reject { |...| ... }
|
||||
# key: collectionsreject
|
||||
# key: reject
|
||||
# --
|
||||
reject { |${1:element}| $0 }
|
@ -1,4 +1,4 @@
|
||||
#name : select { |...| ... }
|
||||
# key: collectionsselect
|
||||
# key: select
|
||||
# --
|
||||
select { |${1:element}| $0 }
|
@ -1,5 +1,5 @@
|
||||
#name : include Comparable; def <=> ... end
|
||||
# key: definitionsComp
|
||||
# key: Comp
|
||||
# --
|
||||
include Comparable
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#name : alias_method new, old
|
||||
# key: definitionsam
|
||||
# key: am
|
||||
# --
|
||||
alias_method :${new_name}, :${old_name}
|
@ -1,5 +1,5 @@
|
||||
#name : class << self ... end
|
||||
# key: definitionscla
|
||||
# key: cla
|
||||
# --
|
||||
class << ${self}
|
||||
$0
|
||||
|
@ -1,6 +1,6 @@
|
||||
#name : class ... end
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
# key: definitionscls
|
||||
# key: cls
|
||||
# --
|
||||
class ${1:`(let ((fn (capitalize (file-name-nondirectory
|
||||
(file-name-sans-extension
|
||||
|
@ -1,5 +1,5 @@
|
||||
#name : def method_missing ... end
|
||||
# key: definitionsmm
|
||||
# key: mm
|
||||
# --
|
||||
def method_missing(method, *args)
|
||||
$0
|
||||
|
@ -1,4 +1,4 @@
|
||||
#name : attr_reader ...
|
||||
# key: definitionsr
|
||||
# key: r
|
||||
# --
|
||||
attr_reader :
|
@ -1,4 +1,4 @@
|
||||
#name : attr_accessor ...
|
||||
# key: definitionsrw
|
||||
# key: rw
|
||||
# --
|
||||
attr_accessor :
|
@ -1,4 +1,4 @@
|
||||
#name : attr_writer ...
|
||||
# key: definitionsw
|
||||
# key: w
|
||||
# --
|
||||
attr_writer :
|
@ -1,4 +1,4 @@
|
||||
#name : # =>
|
||||
# key: general#
|
||||
# key: #
|
||||
# --
|
||||
# =>
|
@ -1,5 +1,5 @@
|
||||
#name : =begin rdoc ... =end
|
||||
# key: general=b
|
||||
# key: =b
|
||||
# --
|
||||
=begin rdoc
|
||||
$0
|
||||
|
@ -1,5 +1,5 @@
|
||||
#name : if __FILE__ == $PROGRAM_NAME ... end
|
||||
# key: generalapp
|
||||
# key: app
|
||||
# --
|
||||
if __FILE__ == $PROGRAM_NAME
|
||||
$0
|
||||
|
@ -1,5 +1,5 @@
|
||||
#name : Benchmark.bmbm(...) do ... end
|
||||
# key: generalbm
|
||||
# key: bm
|
||||
# --
|
||||
Benchmark.bmbm(${1:10}) do |x|
|
||||
$0
|
||||
|
@ -1,5 +1,5 @@
|
||||
#name : case ... end
|
||||
# key: generalcase
|
||||
# key: case
|
||||
# --
|
||||
case ${1:object}
|
||||
when ${2:condition}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#name : deep_copy(...)
|
||||
# key: generaldee
|
||||
# key: dee
|
||||
# --
|
||||
Marshal.load(Marshal.dump($0))
|
@ -1,4 +1,4 @@
|
||||
#name : /usr/bin/ruby -wKU
|
||||
# key: generalrb
|
||||
# key: rb
|
||||
# --
|
||||
#!/usr/bin/ruby -wKU
|
@ -1,4 +1,4 @@
|
||||
#name : require "..."
|
||||
# key: generalreq
|
||||
# key: req
|
||||
# --
|
||||
require "$0"
|
@ -1,4 +1,4 @@
|
||||
#name : require File.join(File.dirname(__FILE__), ...)
|
||||
# key: generalrreq
|
||||
# key: rreq
|
||||
# --
|
||||
require File.join(File.dirname(__FILE__), $0)
|
@ -1,4 +1,4 @@
|
||||
#name : :yields: arguments (rdoc)
|
||||
# key: generaly
|
||||
# key: y
|
||||
# --
|
||||
:yields: $0
|
Loading…
x
Reference in New Issue
Block a user