Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions snippets/jq.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
snippet if "if / then"
if $1 then $2 end
snippet ife "if / then / else"
if $1 then $2 else $3 end
snippet elif "elif / then"
elif $1 then $2
snippet elife "elif / then / else"
elif $1 then $2 else $3
snippet try "try / catch"
try $1 catch $2
snippet red "reduce / as"
reduce $1 as ${2:item} ($3; $4)
snippet fore "foreach / as"
foreach $1 as ${2:item} ($3; $4; $5)