randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.4k stars 81 forks source link

$file from build system not expanded #93

Closed daviehh closed 5 years ago

daviehh commented 5 years ago

I would like to use Terminus as a build system (for julia), where the build command is include("/path/to/file"). The following build system

{
    "string": "include($file)\n",
    "target":"terminus_send_string",
    "selector": "source.Julia"
}

sends $file as-is, i.e. in the Terminus window, I see include($file) instead of include("/path/to/file"). Is it a bug or such case should be handled by a build script as the "Advanced Example" section here? Thanks a lot!

randy3k commented 5 years ago

It is the expected behavior as terminus_send_string does not resolve any variables. You can try my another package https://github.com/randy3k/SendCode

daviehh commented 5 years ago

Got it, thanks a lot!