I've created live template that uses variables, something like :
A::set($CATEGORY$,$MESSAGE$);
And I want to set default value of variable $CATEGORY$ as a directory, where the file I've used this live template located.
There is expression fileName() that does a thing close to my task.
So if I use my live template in file located app\views\home\index.php - I would like to get default value for $CATEGORY$ - 'home'. How can I do this?
homefrom the value returned byfileName()function yourself (there is no built-in Live Template function to do that). You may check youtrack.jetbrains.com/issue/IDEA-155907#comment=27-2662765 for some info.