randy3k / Terminus

Bring a real terminal to Sublime Text

Home Page:https://packagecontrol.io/packages/Terminus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Set tab title to ${file_name}

Mark-Joy opened this issue · comments

I am completly new to sublimeText and Terminus, so please excuse me if I ask something so obvious.
How can I set tab title to ${file_name}?
The below code does not work.

[
    {
        "caption": "Terminus: Open iPython",
        "command": "terminus_open",
        "args"   : {
            "cmd": "ipython",
            "cwd": "${file_path:${folder}}",
            "title": "${file_name}"
        }
    }
]

We currently do not "expand_variables" for the title argument. See for example how it could be done:

A PR is welcome.