mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 18:04:18 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: all
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: all? { |e| .. }
|
||||
# --
|
||||
all? { |${1:e}| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: any
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: any? { |e| .. }
|
||||
# --
|
||||
any? { |${1:e}| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: cl
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: classify { |e| .. }
|
||||
# --
|
||||
classify { |${1:e}| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: col
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: collect { |e| .. }
|
||||
# --
|
||||
collect { |${1:e}| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: det
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: detect { |e| .. }
|
||||
# --
|
||||
detect { |${1:e}| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: fet
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: fetch(name) { |key| .. }
|
||||
# --
|
||||
fetch(${1:name}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:key}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: fin
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: find { |e| .. }
|
||||
# --
|
||||
find { |${1:e}| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: fina
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: find_all { |e| .. }
|
||||
# --
|
||||
find_all { |${1:e}| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: gre
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: grep(/pattern/) { |match| .. }
|
||||
# --
|
||||
grep(${1:/${2:pattern}/}) { |${3:match}| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: max
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: max { |a, b| .. }
|
||||
# --
|
||||
max { |a, b| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: min
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: min { |a, b| .. }
|
||||
# --
|
||||
min { |a, b| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: par
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: partition { |e| .. }
|
||||
# --
|
||||
partition { |${1:e}| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: rej
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: reject { |e| .. }
|
||||
# --
|
||||
reject { |${1:e}| $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: sel
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: select { |e| .. }
|
||||
# --
|
||||
select { |${1:e}| $0 }
|
||||
Reference in New Issue
Block a user