Sublime Forum

Sublime Build System with Terminus and Fish

#1

Hello to all.
I just install Sublime Text 4 in a Linux system. I have also installed Terminus. I have two questions:

  1. in Terminus Keybinding I have
    [
    {
    “keys”: [“alt+q”], “command”: “terminus_open”, “args”: {
    “cmd”: “fish”,
    “cwd”: “${file_path:${folder}}”
    }
    }
    ]
    which works fine, but I have not been able to insert a combination for closing the Terminus. Is there any?

  2. How could I define a build system using Terminus AND fish shell --say for Pascal?
    I have modified OdatNurd’s answer from here:
    Build system with terminus doesn't work
    but it opens Terminus with bash and not with fish.

Thank you very much

0 Likes

#2

The Terminus README has an example key binding that shows how to do this:

{ 
    "keys": ["ctrl+w"], "command": "terminus_close", "context": [{ "key": "terminus_view"}]
}

That particular key (which you could change) would trigger only while the input focus is the Terminus tab, and would close it.

Terminus by default always runs things on Linux in bash; you would have to craft a cmd that executes the fish shell directly, I would imagine.

0 Likes