The following patch makes the Module Directive snippet in
Erlang.tmBundle put in the name of the current file without the file
extension.
Index: Erlang.tmbundle/Snippets/Module Directive.tmSnippet
===================================================================
--- Erlang.tmbundle/Snippets/Module Directive.tmSnippet (revision 8933)
+++ Erlang.tmbundle/Snippets/Module Directive.tmSnippet (working copy)
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
<key>content</key>
- <string>-module (${1:module}).</string>
+ <string>-module (${TM_FILEPATH/^.*\/(.*)\.erl$/$1/g}).</string>
<key>name</key>
<string>Module Directive</string>
<key>scope</key>
_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/mailman/listinfo/textmate-dev