Permalink
Browse files

Have function snippet use filename for the function name

  • Loading branch information...
1 parent 9a49203 commit e57cfe21faa63914b26a4b8af79414a713ef560e @DGrady DGrady committed with infininight Feb 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Snippets/function (fun).plist
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>function ${1:out} = ${2:f}(${3:in})
+ <string>function ${1:out} = ${2:${TM_FILENAME:?${TM_FILENAME/\.m//}:f}}(${3:in})
% ${2/.*/\U$0/} ${4:Description}
% ${1/.*/\U$0/} = ${2/.*/\U$0/}(${6:${3/.*/\U$0/}})
%

0 comments on commit e57cfe2

Please sign in to comment.