Hello everyone, I have a simple macro that returns me a file name without path for a given full path file name. The problem is that, some results are getting wikified. This is a big problem because I want to use the result of the macro as the text of a button. But instead of firing the button, it is navigating to the camel case title.
Here is the macro code (very simple!) /*\ title: daMacro type: application/javascript module-type: macro Macro that removes the path part of an absolute filename \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; /* Information about this macro */ exports.name = "removepath"; exports.params = [{name:"filename"}]; /* Run the macro */ exports.run = function(filename) { return filename.substr(filename.lastIndexOf('/')+1); }; })(); An invocation example <$macrocall $name="removepath" filename="path/to/GettingStarted.tid"/> Regards -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywikidev@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/0b265134-0765-4ef2-b831-069b2782c1c2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.