I recently moved to a new hardware and had to port all my settings from my old macbook to the new one.
On sublime text 3 I had two lines of tabs on my old laptop and only one line in the new one.
Top tabs level was with the directories that I have opened (like different projects have their own tabs), while the second line of tabs had each file I had opened from this directory (very useful). On the old macbook the top line with tabs appears when I open a second directory (so two tabs for 2 projects). On the new one just a new window is open for each directory I open.
New Install
Old Install
Currently all folders I open are opened in their own window.
I tried the solution that many people provided on the internet and added a custom setting for the "open_files_in_new_window" to false, but this does not work.
Both macbooks are running Sublime Text 3.1.1, Build 3176
Does anyone have an idea how to have the top level tabs back.
It is not SublimeText3 option but MacOSX option.
System Preferences -> Dock -> Prefer tabs when opening documents: Always
Related
I have multiple files open in different tabs in sublime text 3. Is there a way to switch to a tab by the name of the file that's open in it? If there's a different text editor that supports this, it'll be equally helpful. Thank you!
If you open the Goto Anything popup menu by hitting CtrlP, the currently opened files will be listed at the top.
You can also select file tabs at different positions in the tab bar by using Alt#, where # is the file's position - Alt1 for the first file on the left, Alt2 for the second from left, and so on. You can use CtrlPgUp/CtrlPgDn to navigate through the tabs in order, and CtrlTab/CtrlShiftTab to navigate through the stack of recently focused tabs.
All of these options are available under the Goto → Switch File menu. Some of the keyboard shortcuts may be different on macOS.
CudaText editor (free) has the command "Find tab by title" in the plugin CudaExt. Command shows menu with the filter field. To install the plugin: "Plugins / Addon manager / Install".
Can you group opened files in the left "OPEN FILES" panel in folders somehow? Or like tree layout like windows explorer.
You can add folders to the side bar, which you can expand and collapse like Windows Explorer, but there is currently no way to group open files other than to have them in separate windows. However, they are working on functionality in Sublime Text 4 that could enable you to have multiple projects or groups open in one window. ST4 is still very much in alpha status and is not stable enough for everyday use.
Very strange issue here, it's not causing problems but is aesthetically annoying. I had the kindle plugged into my windows machine as to edit the kindle's files. One of the kindle file names is now listed after the name of the python program I'm working on in sublime text. To paint a picture, above the menu drop downs in sublime text, there is the path to the document (IE python program) I'm working on, followed by the random file from the kindle.
The kindle file is no longer on my computer and never had anything to do with sublime text. I've tried restarting the computer and reinstalling sublime text, neither worked. Any ideas what might be going on??? Thanks!
The sublime text window caption shows you the name of the currently open file, followed by the name of the current project in parentheses (if you have a project open at all), followed by the name of the program.
Based on the screenshot in your image:
You currently have the file softmax.py open and it is stored in a folder on your desktop named machine learning\python programs\test\newyorktest\
The name of the Sublime project file is Casting the Circle_A Woman's Book of Ritual_B009FKTQD8_sample.sdr.sublime-project (the caption doesn't show the sublime-project part because that's redundant).
I would imagine that when you set up the project you accidentally chose that name as the name of the project file.
In order to fix your problem, select Project > Save Project As... from the menu and enter a different name for it. The location that you save the file in doesn't matter (it can be inside the folder of your project or in some other location), all that is important is that it has the extension .sublime-project.
Once you pick the new name, Sublime will immediately swap to using the new project file instead of the old one, which will keep your current set of open files, etc, and the caption will change.
You can then seek out and delete the other project file if you want.
Whether I'm in a Single or 2 Column mode, I am only able to have 2-3 open files (tabs) per window.
When I hit what appears to be a limit, attempts to open a file (by clicking in Sidebar View) will replace an already open file.
Is there a setting I can change or have I hit a working-as-designed limitation?
Environment:
Sublime Text 3 Stable Build 3103
OS X (El Capitan) 10.11.4
BTW: If I use File Open it does not appear to have the same problem as I can open may files that way.
When you open a file from the sidebar with a single click, its tab will only remain open, if you edit or save the file. If you want the tab to stay open, double-click on a file in the sidebar.
You can override this default behaviour in your settings:
{
"preview_on_click": false
}
Is there any way to get Sublime to open all files of a certain extension in the same window? For example, when using a 2x2 grid, I'd like to keep all SCSS files in the upper left, all HAML in upper right, JS lower left and search in lower right. I'd like to use the search function, and have files go to the other three tabs instead of the search window each time.
I've tried the 'open in relevant window' plugin and it doesn't appear to make any difference.
When opening lots of files it gets very tedious opening them and having to manually move them to a window that wasn't active when opening.
Edit: I'm working on a Mac, so I'd need something that works there, or preferably cross platform.
Edit: Op is working on a Mac, I'll leave this in case any windows users are interested in this solution.
---
Perhaps an extra shell extension would help.
If you're familiar with the Registry, you can create a new key that opens all selected files in a new window. Simply create a modified version of what Sublime Text already has.
The existing key for Sublime Text exists here:
HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command
With the default value of (depending on version):
C:\Program Files\Sublime Text 3\sublime_text.exe "%1"
You could create a new key like so:
HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text (new window)\command
Then add the -n arguement to the default value:
C:\Program Files\Sublime Text 3\sublime_text.exe -n "%1"
This will create a new window every time you use the shell extension to open files and will keep multiple files organized in the same window.
To take this a step further, if you have any programming experience you could create your own shell extension which takes a list of files and groups them for you, which then in turn can create the new windows programmatically.