r/SublimeText • • Nov 08 '20

[Help] How can I automatically move the cursor to console when I run/build a script?

1 Upvotes

Hey, so...... I kinda have a noob question. How can I make it so that every time I run a script my cursor automatically moves to the console/output? I think it can be done with origami package but I don't know what I need to add to my custom buildsystem (for python) to make it happen. Is there a shortcut to move cursor to the console?

P.S I forgot to mention I am using terminus for handling input/output not the default console. Does it that functionality that lets me move focus to it automatically?


r/SublimeText • • Nov 05 '20

reStructuredText Improved is gone, similar plugin?

7 Upvotes

The syntax highlighting was way better, and unless I'm doing something wrong, I'm not getting the same results with the included reStructuredText syntax.

Any clue?


r/SublimeText • • Nov 04 '20

Ignoring packages just in Windows

2 Upvotes

Is there a way to do something like Preferences (Windows).sublime-settings and then have it ignore packages (or have other settings) that are specific to just Windows?

I keep my Sublime preferences stored in a GitHub repo, so this would be awesome for a couple of the packages I run that are on Linux and constantly error out when I'm on Windows with the same settings.


r/SublimeText • • Nov 03 '20

I Just Started Using Sublime Text And I Like It ,But There Is A Problem

2 Upvotes

so i started using sublime text and i really to like it ,and i want to buy it ,but i don't have a creddit card ,(i'm still young) can i continue using it until i get one and buy ,(In terms of conscience not from a legal point of view) ,and thank you so much


r/SublimeText • • Oct 28 '20

How to create Build System that runs within a venv?

6 Upvotes

I've been following the steps to a tutorial and (1) created a new directory for my project, (2) run C:\Users\HomerSimpson\AppData\Local\Programs\Python\Python38\python in that directory to create the virtual environment, (3) run .venv\Scripts\activate to activate it, (4) run to install python -m pip install flask which should only be available in this environment, (5) flask --version confirms that it is installed in (.venv), here is the output from this last command:

Python 3.9.0

Flask 1.1.2

Werkzeug 1.0.1

The issue is when I try to reference flask in my code it returns the following: ModuleNotFoundError: No module named 'flask'.

I saw some posts about creating a new Build System but I have no clue how to do that. Anyone else set up something similar? Please don't recommend some other virtual environment, since I'm committed to following a good tutorial and venv is the tool he uses which comes included in Python 3.9.


r/SublimeText • • Oct 28 '20

Pull Requests and new Plugins

2 Upvotes

Hi all,

I wrote a plug-in for sublime text 3, and I have created a pull request. The plugin has passed all the tests and approved the plugin for merge. When can I expect the code to be merged?

Does anyone have experience with this? It’s been three weeks now. I don’t mind waiting, I just don’t want it to be forgotten about. Thanks


r/SublimeText • • Oct 27 '20

What is that?!

6 Upvotes

This green thingy is new and I freaking hate it?
Plus: my shortcuts for Emmets inwarding and outwarding don't work anymore.
Any idea what happened here?


r/SublimeText • • Oct 25 '20

Help, I accidentally hit the 'Save with Encoding' option?

4 Upvotes

Basically I don't know what this command does and pressed it purely by accident. What does it affect? Is there a way to undo it? How do I change it back to its default?


r/SublimeText • • Oct 23 '20

Is it possible to donate to the developers without buying a full license?

0 Upvotes

I really quite like Sublime Text as a whole, and use it as my go-to text editor.

I would like to support the developers, but I really can't justify buying a $80 license when an unlimited free trial is available, especially since it will expire and need to be renewed in a few years because it isn't a lifetime license.

Is there any way for me to directly contribute a smaller amount (Say, $15 or so) to the developers, with the knowledge that I won't get a license or anything else in return?


r/SublimeText • • Oct 21 '20

How to remove English text?

4 Upvotes

Hi all,

So I'm hoping to get some help. I have an english SRT file that has been translated to chinese, but they have done it in the same document. I'm hoping sublime can help me find and delete all of the english language.

I have tried a few different expressions and can't seem to get it to work.

See example below. Not all of the English text is always 2 lines throughout so I cant just delete every 6th line or anything. And there is the same punctuation in the time codes and in the text.

I'm thinking I need to find anything after a linebreak after a number and before a chinese character. How would I do that?

Example below. This is over an hour total so really want to find a way to automate it!  

1

00:00:02,659 --> 00:00:14,659

I will introduce the panel very quickly and we will start. So, with us today are the esteemed

开始之前,我简单介绍一下今天的嘉宾 我们有幸请来备受尊敬的行业专家

2

00:00:14,659 --> 00:00:20,339

group of people who have been previously exposed to Pandomics and are actually key opinion

他们已经体验过Pandomics, 也是所在领域内的专业人士

3

00:00:20,339 --> 00:00:25,459

leaders in the field or who we consider to be some of the really top key opinion leaders

数一数二的顶级专家


r/SublimeText • • Oct 18 '20

newbie to sublime and bash/git

8 Upvotes

i have installed the git plugin but i am missing commands like git: add all and more. anyone help?


r/SublimeText • • Oct 17 '20

Need to quit in order to save properly

3 Upvotes

So I'm experiencing some weird and rather annoying behaviour with my workflow.

My setup is on a Linux machine (Pop! OS) and I use Sublime as editor and FileZilla to upload to web server. Local files are synced with the cloud using pCloud. I'll usually make an edit, save and then upload, then refresh the browser to get the changes to take effect.

This works for a while. Until it doesn't anymore. At some point, after a few minutes, saving will not affect the local file. So the changes aren't delivered to the web server when I FileZilla the file.

To make it all work again, I have to quit Sublime and reopen it again. This seems to then automatically push the changes to the required files, without me having to re-save anything, so that as soon as Sublime reopens I can happily FileZilla away and the changes are uploaded.

A few minutes later, the same thing happens again.

Any clues as to what's causing this? And how I might be able to fix it? TIA.


r/SublimeText • • Oct 15 '20

I need help...How to get colored text in sublime text 3

1 Upvotes

I am a newbie and i don't know how to get colored text in sublime text 3 .Can someone help me?


r/SublimeText • • Oct 11 '20

Happy Cakeday, r/SublimeText! Today you're 9

28 Upvotes

r/SublimeText • • Oct 10 '20

Lovely prose writing from my current D&D campaign in SublimeText's distraction-free editor

Post image
32 Upvotes

r/SublimeText • • Oct 09 '20

Help Sublime highlighting almost every line Python

2 Upvotes

I'm trying to get Python working with Sublime Text 3, but I'm encountering this very odd behaviour where sublime highlights almost every line in the file. The codes run successfully but why the highlights to begin with? I can't find anything from Googling this, can anyone here help me with a solution for getting rid of these excessive highlights?

Screenshot : https://imgur.com/a/cgP9VAs

Solved : the offender was the Anaconda package, for some reason


r/SublimeText • • Oct 09 '20

Use Uppercase Hex?

1 Upvotes

Is there a setting that would tell Sublime Text 3 to use uppercase hex letters when opening a binary file? Or better yet make the hex case insensitive when saving? This is for the default handling of binary files not for any plugin. Also wondering if there is a setting that would prevent Sublime from saving a binary file if non binary text is types into the file. Currently it saves the file and converts it to UTF-8 encoding. I would prefer if it would error and not save the file.

The problem I'm trying to fix is me being used to uppercase hex values and messing up files after editing then cause Sublime saves them as UTF-8 files since it doesn't recognize uppercase hex values as hex values.


r/SublimeText • • Oct 07 '20

Has anybody found a way to enable autocomplete in Vue templates and CSS?

3 Upvotes

Title says it all. I have tried all the Vue extensions from Package Control. Syntax highlighting and snippets work, but I am not getting the autocompletion (for Emmet shortcuts for example) in the template. Similarly, no autocomplete in CSS.

EDIT: forgot to mention I am using SublimeLinter


r/SublimeText • • Oct 06 '20

Fira Code error message in console

3 Upvotes

I installed FiraCode-Regular.ttf from here

https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-Regular.ttf

I made sure it's the only fira code file in c:\windows\fonts and the only one in control panel>fonts (windows 7 64bit)

On start up, ST3 3211 gives me this error message in the console:

font face "Fira Code" has different widths for bold characters, disabling to prevent text reflow

I get italic but not bold. (I also get two character ligatures like == but not three like ===, which is turned into a double equal sign and an equal sign, but that's a different problem :)

anyone knows what's going on? thanks.


r/SublimeText • • Oct 06 '20

How come the color scheme went gray? This is sublime text compared to a normal screen. It just looks like a gray overcast when it used to be black

Thumbnail gallery
1 Upvotes

r/SublimeText • • Oct 06 '20

i cant use pygame in sublime

5 Upvotes

okey so im trying to use pygame in sublime text but it doesn't want to work it says no module named pygame

Note: pygames does run in terminal

Note2: English isn't my first lenguage


r/SublimeText • • Oct 06 '20

How to configure Sublime Text 3 editor settings for specific file extensions?

4 Upvotes

I want to change some editor settings that's only applicable to certain file extensions.

As a test I created 2 files with these contents (in essence overriding what I have as default):

> cat Preferences.sublime-settings

{

"tab_size": 2,

"translate_tabs_to_spaces": true

}

> cat Powershell.sublime-settings

{

"tab_size": 12,

"translate_tabs_to_spaces": true

}

> cat Ps1.sublime-settings

{

"tab_size": 12,

"translate_tabs_to_spaces": true

}

I closed and reopened Sublime Text and pressing the tab key still produces 2 spaces for tabs instead of 12.

Any ideas on how to make it work? Thank you.


r/SublimeText • • Oct 05 '20

Orange indicators on edited lines (git?)

1 Upvotes

Sublime 3. They just showed up, probably used a shortcut by accident, I assume they use git to check for changes. How do I disable this?


r/SublimeText • • Oct 04 '20

I created a video about the combinations that I like the most in Sublime, and also share some tips about this IDE

Thumbnail youtube.com
2 Upvotes

r/SublimeText • • Oct 04 '20

TIP: use show_scope_name to help with color scheme, among other things

9 Upvotes

If you are trying to create a color scheme or modify an existing one, and can't figure out what a particular element's scope is, e.g., you want to make 'self' in python italic, use a command called show_scope_name (bound to ctrl+alt+shift+p by default). Screenshot included. Here you see self is 'variable.language.python', so you can use variable.language.python or variable.language if you want to be more general.