I'm trying to work out a way to access just the file path from the root of my project in a snippet.
I can access the full file path with ${TM_FILEPATH} but I'm trying to set up a file documentation snippet that will automatically get the path to add to the documentation block like so:
/**
 * app/Controllers/MyClass.php
 *
 * Class summary here.
 *
 * @author Author Name <name@example.com>
 * @copyright  2016 Company Name
 * @package  MyClass
 */
with just TM_FILEPATH I get this:
/**
 * /Users/username/Code/project/app/Controllers/MyClass.php
 *
 * Class summary here.
 *
 * @author Author Name <name@example.com>
 * @copyright  2016 Company Name
 * @package  MyClass
 */
Is there a way to parse ${TM_FILEPATH} to get just the part I need, or is it possible to set up a variable I can use myself like ${ROOT_PATH} or similar?
 
    