Sublime Forum

Finally, a multi-platform Terminal running in Sublime Text

#145

If you could implement snippets behaviour in the terminal, it will be awesome, cause I need matched brackets for my workflow.

0 Likes

#146

untill then i made a workaround using macros.

0 Likes

#147

I am not sure I am convinced that it is a good idea to support snippets in Terminus. The behavior of auto bracket should depend on the cli problem. It may make sense for some interpreters, but it may not in other cases.

0 Likes

#148

I haven’t tried something like that yet, but I guess it would be possible with a custom target built system as described at https://www.sublimetext.com/docs/3/build_systems.html#advanced_example

You’d need to create a WindowCommand, which opens a Terminus session and than pastes the built command and runs it.

Something like

  1. run_command("terminus_open", {"config_name": "Default")
  2. set_clipboard("<the built command>")
  3. run_command("terminus_paste")
  4. run_command("terminus_keypress", {"key": "enter"})
0 Likes

#149

there is a command “terminus_send_string” which sends text to a terminal which it finds. If the window is opened via “terminus_open” with a tag, one could also send the text to the tagged terminal.

check https://github.com/randy3k/Terminus/blob/master/README.md#terminus-api

4 Likes

#150

Maybe running terminus_open and passing the build script via cmd argument was even more suitable.

@ranky3k: Really amazing high quality plugin. Great job.

0 Likes

#151

Hey there, thanks so much for the plugin!!! One small thing, when I use tmux I cannot get the colors to show. Any idea how I can enable this? Thanks again!!!
v/r

0 Likes

#152

try the following settings

"256color": true,
"unix_term": "xterm-256color"
1 Like

#153

Hey thanks, I had found the configuration and set them. Looks great! Thanks so much for this again!!

0 Likes

#154

Has anyone reported missing text on the command line? Terminus has stopped showing the text I’m typing on the command line at weird random times, and sometimes the entire line is gone. I can provide screenshots if needed. I’m running build 3175 of Sublime and I made sure to get the latest plugin updates. The OS is Debian 7.11.

0 Likes

#155

It sounds like a bug.

0 Likes

#156

It could be our ancient version of Debian as well =/

0 Likes

#157

Is there a way I can use fallback font for terminus ? I am using Powerline for ZSH . I am also n avid user of Operator Mono font. Currently I have to use a Powerline font , but I was wondering if I could fallback to the Powerline font , as well as use Operator mono, much like what I can use with Hyper or Iterm.

0 Likes

#158

You could use the setting view_settings to modify any view specific settings.

0 Likes

#159

I would like to use the following settings but it gives me an error as follows

What I want to do is to use the Operator Mono font, but fall back to "
Source code Pro for Powerline" for glyphs and what not.

Please note that these are the same settings that I use in my Hyper settings. I just copied them as is. I am aware that these might not work, but I just wanted to give them a try since I was not sure what the correct values were. I hope you will understand.

Thanks

0 Likes

#160

Sublime supports a different font for every open file or view, but it doesn’t support a fallback font in the manner that you’re describing here. So it’s possible for you to use a different font in the terminal than in files you’re editing, but you can’t blend them like that.

0 Likes

#161

It looks like you are trying to use single quoted strings in a JSON file which is a no go. JSON uses double quoted strings, so you need to do something like "\"Operator Mono\"" etc.

0 Likes

#162

Amazing! you saved my life! Thank you so much! :heart_eyes:

0 Likes

#163

You could use the Nerd Fonts patcher to add Powerline glyphs to your Operator Mono font.

0 Likes

#164

I am sorry , but I am unable to get it right .
Here is what I have

"font_face": "\"Operator Mono\","\"Source Code Pro for Powerline\"",
but this does not work for me .
Can you please confirm ?

Thanks

0 Likes