Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
--- /dev/null
+# -*- mode: snippet -*-
+# name: filelink
+# key: fileln
+# --
+"${1:file}"
+handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_link" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}",
+comment => "ln -s $1",
+move_obstructions => "${5:$$(yas-choose-value '("true" "false"))}",
+link_from => ln_s( "$6" );
--- /dev/null
+# -*- mode: snippet -*-
+# name: filesetvalquoted
+# key: filesetvalquoted
+# --
+"${1:file}"
+handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}",
+comment => "configure $1",
+perms => mog("${2:600}","${3:root}","${4:root}"),
+create => "${5:$$(yas-choose-value '("true" "false"))}",
+edit_line => set_quoted_values( "\$(this.bundle).$6" );