Sublime Text 3 - split windows at launch - sublimetext3

Running Windows and Sublime Text (3.1.1 Build 3176) for the last few days, every time I launch the editor it starts with one window split into two panes. This happens whether I
launch from a command prompt with 'subl';
launch form the window menu; or
select a file from the file manager and edit it
It never remembers that I have set it back to a single pane with Alt-Shift 1. I cannot find a setting to change this behaviour.
Help pls

Related

Separate Build for every file/tab in Sublime Text

When you run Build System is Sublime by default it creates a bottom pop-up that is bound to that sublime window. When you change to other tabs bottom pop-up will still stay for the Build that you have started.
I would like to have separate Build/Build pop-up for every tab that is opened in that window. For example; there are two tabs open, file01 and file02. I run Build System for file01 and while its running I switch to other tab, file02, and there is no Build pop-up. I can edit file02 and also run build on it separately while build on file01(tab one) is running. Also starting and stopping Builds for for different files will not affect Builds for other files/tabs. Essentially every tab in a window would have separate Build System and Build pop-up.
The short answer to your question is, there is no out of the box way to do this; by design build systems are executed in the context of a window and not a file tab within a window.
The longer form answer is that builds are executed by an instance of a WindowCommand, which is a command that is specific to a window. That command can do anything that it likes in order to drive the build.
By default, the command used is named exec, and its implementation can be found by using the command palette by using View Package File and looking at Default/exec.py.
The implementation that ships with Sublime follows the rule that there is one build per window, and so when you trigger a build if one is already running, it is cancelled in favor of the new one.
To do what you want, you would need an implementation of what that command does that instead tracks the build per tab instead of per window. Such a command would need to cover all of the edge cases inherent in this as well, such as the commands that navigate through errors not working if there is more than one build result, or what happens if you close a file while a build is running, etc.

Why I can't open the cmd window on my Win10?

When I press Windows+R and input cmd to open the command line, the cmd window doesn't appear, only the cmd icon appears on the taskbar.
How can I fix it?
Once you have opened it, you might type ALT+SPACE. This shortcut opens the menu for minimising and maximising but also for moving a window. It is possible that your command window is somewhere present on another second screen (which is not there anymore, but Windows seems not to realise that), so using that shortcut you can move your window till you see it again.

Sublime Text 3: how do you configure the display and/or sorting of the Window menu?

If you open a couple folders in Sublime Text 3, you'll see entries for each folder added to the Window menu. It appears that the default format of each entry on the menu is:
(active-filename) - (foldername)
The list on the Window menu is sorted alphabetically starting with (active-filename). Whenever you select a file to work on, the (active-filename) part of the entry changes, and the list reorders itself. If you have a dozen Windows open, the position of a given window in the list will change all the time as you work with files. This makes it hard to find a window when repeatedly switching between Windows.
Is there a way to configure Sublime Text 3 to display only the folder name in the list on the Windows menu? Alternatively, is there a way to configure it to sort on folder name and not on the ever-changing "active" filename?
Unfortunately there open issues around this but no attention form the SublimeText Team yet
https://forum.sublimetext.com/t/alphabetize-window-menu-by-folder-not-file-name/13017/4
https://github.com/SublimeTextIssues/Core/issues/1972
https://github.com/SublimeTextIssues/Core/issues/1445
https://github.com/SublimeTextIssues/Core/issues/1179

Linux terminal SCREEN command

I want to open a new terminal to execute a script file again. I need to open a new terminal and execute one more script.
I give a try with SCREEN command but it does work for only the first terminal.
You shouldn't open a new screen inside a screen. If you need another terminal inside the screen press "CTRL+a" and then "c".
This should open a new terminal. You can swap between terminals by "CTRL+a" followed by "a".
If you open more than two terminals inside the screen you can open an overview with "CTRL+a and then SHIFT+2"
If your done detatch the screen by pressing "CTRL+a then d". Reopen a screen with "screen -x (+ screen-id if you have multiple screens detatched)"

Sublime Text 3: Is it possible to have project specific session without remembering last session?

I'm trying to have separated session instances of Sublime Text 3 for different projects, but currently I have following behavior:
Run subl --project A.sublime-project
Close Sublime Text 3 via x button
Run subl --project B.sublime-project
It opens project A and then project B.
But I want only B project and it's session to open. I have to manually close A
I tried to change following settings:
"hot_exit": false,
"remember_open_files": false,
But then Sublime Text 3 always starts new session (forgets opened windows).
Is it possible to open my project from command line so, it does not open last session but opens only project session (and it's windows)?
For example in Eclipse I could do eclipse -data someDir1 close eclipse and then eclipse -data someDir2 and it opens only someDir2 associated session and does not care about someDir1

Resources