Skip to content

Commit b06983b

Browse files
author
lispy-dobby
committed
added specific keys to avoid using file names for snippet id
1 parent 6a2f26c commit b06983b

File tree

22 files changed

+22
-0
lines changed

22 files changed

+22
-0
lines changed

snippets/crystal-mode/any

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: any? { |...| ... }
3+
# key: any
34
# group : collections
45
# --
56
any? { |${e}| $0 }

snippets/crystal-mode/case

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: case ... end
3+
# key: case
34
# group : general
45
# --
56
case ${1:object}

snippets/crystal-mode/cls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: class ... end
3+
# key: cls
34
# group : definitions
45
# --
56
class ${1:`(let ((fn (capitalize (file-name-nondirectory

snippets/crystal-mode/def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- mode: snippet -*-
22
# name: def ... end
33
# key: def
4+
# key: def
45
# --
56
def ${1:method}${2:(${3:args})}
67
$0

snippets/crystal-mode/ea

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: each { |...| ... }
3+
# key: ea
34
# group : collections
45
# --
56
each { |${e}| $0 }

snippets/crystal-mode/eac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: each_cons(...) { |...| ... }
3+
# key: eac
34
# group : collections
45
# --
56
each_cons(${1:2}) { |${group}| $0 }

snippets/crystal-mode/eai

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: each_index { |i| ... }
3+
# key: eai
34
# group : collections
45
# --
56
each_index { |${i}| $0 }

snippets/crystal-mode/eawi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: each_with_index { |e, i| ... }
3+
# key: eawi
34
# group : collections
45
# --
56
each_with_index { |${e}, ${i}| $0 }

snippets/crystal-mode/el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: else ...
3+
# key: el
34
# group : control structure
45
# --
56
else`(indent-for-tab-command)`

snippets/crystal-mode/esi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: elsif ...
3+
# key: esi
34
# group : control structure
45
# --
56
elsif`(indent-for-tab-command)` ${1:condition}

0 commit comments

Comments
 (0)