I've installed itg.flat for sublime via the package manager. I'm wanting to make a few edits to theme but I can't find where package manager has installed the theme files. I'm using ST3 on OS X Mavericks
I've had a look around the net but haven't found anything relating specifically to what I'm after so a SO thread is a last resort.
Sublime Text 3 packages installed via Package Control are by default stored as .sublime-package zip files in your Packages directory, whose location depends on your operating system:
Linux: ~/.config/sublime-text-3/Packages
OS X: ~/Library/Application Support/Sublime Text 3/Packages
Windows Regular Install: C:\Users\YourUserName\AppData\Roaming\Sublime Text 3\Packages
Windows Portable Install: InstallationFolder\Sublime Text 3\Data\Packages
The easiest way to edit them is to install PackageResourceViewer from Package Control. Once installed, open the Command Palette with ⌘ShiftP (OS X) or CtrlShiftP (Windows/Linux) and type in prv to access the PackageResourceViewer options.
Select Extract Package, then scroll down to Theme - itg.flat and hit Enter. This will extract the package into your Packages folder, which can be easily accessed via your operating system's file manager (Finder, Windows Explorer, Nautilus, etc.) by selecting Sublime Text → Preferences → Browse Packages… (this is for OS X, Windows and Linux have a separate Preferences menu). Any edits to the files in this directory will override the files contained in the Installed Packages/Theme - itg.flat.sublime-package file.
If you only wish to edit a single file, after typing prv into the Command Palette, chose PackageResourceViewer: Open Resource instead. You can then navigate through your packages and choose the file(s) you wish to edit - Theme - itg.flat/itg.flat.dark.sublime-theme, for example. Once you edit the file(s) you have chosen, they will be saved in the Packages directory,
However, please keep in mind that if the package is updated in the future, the changes will not apply because you've overridden them by extracting the files into Packages. This is not quite the case if you choose Open Resource - only the files you chose to edit and save will be stored in Packages, and they will override the identically-named file in the .sublime-package archive. If the package is updated in the future, the file(s) containing your edits will still override the same file(s) in the archive, but the rest of the files will be updated. For example, if you edit itg.flat.dark.sublime-theme via Open Resource, when the entire Theme - itg.flat is updated, your customized file will override the file of the same name in the package archive, but all other files will have the changes from the update applied.
In st3 you can override packages by creating a same-name folder under ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
For example, if you want to override the default theme:
Open contents of Sublime Text.app (right clic > show package content), locate Contents/MacOS/Packages/Theme - Default.sublime-package
.sublime-package files are zip, so copy the file somewhere outside, unzip it, locate the Default.sublime-theme file. It's json.
Do your edits to the file
Navigate to ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/, create a 'Theme - Default' folder
Copy your Default.sublime-theme into the folder you just created
Done. Any edits you'll do to Default.sublime-theme will be auto-loaded in your current theme, no need to restart ST.
For reference:
https://www.sublimetext.com/docs/3/packages.html
Additional notes and what I've found:
Thank you all for the notes. What my portable install looks like (in location):
C:\Users\xxxxxx\Downloads\Sublime Text Build 3065 x64\Packages\Color
Scheme - Default.sublime-package
What you're looking for:
It's the Color Scheme - Default.sublime-package 👈 this contains all
of the themes.
What to do next:
Rename .sublime-package to .zip
i.e. Color Scheme - Default.sublime-package to Color Scheme -
Default.zip
Unzip that zip file.
In the folder you should see:
content of the Color Scheme - Default folder of Sublime Text 3 Build
3126 themes windows 10
Related
I'm a Vim beginner and I would like to change the color theme to a more appropriate one for C programming (I'm using Windows 7, Vim 8.2). After looking for a while, I found the Dracula theme https://draculatheme.com/vim/ but I'm having some trouble installing it.
First of all, I could not locate the .vim folder as the instruction says. I have C:\Program Files (x86)\Vim with a _vimrc file, vimfile and vim82 folder. I tried anyway to create the themes and start folder in the pack folder located in \vim82, but when I try to git clone it, I get this message: "fatal: could not create work tree dir 'dracula': Permission denied".
Any help?
EDIT: after running the cmd.exe as administrator, I was able to clone the repository. It doesn't work though. I also tried :echo $HOME, it indicates a vimfile folder in C:\Users\XXXX. I tried the same here but with no results.
In windows, vimfiles folder can be located in $HOME\vimfiles or in $VIM\vimfiles.
* More information: :h vimfiles
To install a colorscheme manually (without using a plugin manager), you need to download all its files https://github.com/dracula/vim, then copy all files in these directories (after, autoload, colors, and doc) to directories of same names inside vimfiles folders.
To use the colorscheme, place this in your _vimrc:
:colorscheme dracula
I am trying to edit my config file, which I am told is located at $EXIST_HOME/conf.xml. However, when I type $EXIST_HOME into my terminal nothing happens, and I have no idea where to look for the file in my file system. I am using OSX, and installed eXist using the standalone GUI, and was not asked where to install files at setup.
How can I get to the config file?
$EXIST_HOME is just used to represent wherever you installed eXist to. On many Linux/Unix based systems (including Mac OS X) it is recommended to set this environment variable in your profile to the location where you installed eXist. If you do not, when you try to start eXist it will try and self-determine this from the location of its binaries.
If you installed eXist from the .dmg file which is provided for Mac OS X users, then you can drag and drop eXist to wherever you wish, however typically this would be /Applications/eXist-db.
If you installed eXist from the .jar installer by running java -jar eXist-db-setup-2.2.jar or double-clicking the Jar file (if your computer is configured to execute Jar files), then the second screen of the installer prompts you for the location to install eXist to. The default location set for Mac OS X is /Applications/eXist-db.
So if you didn't change the defaults, your $EXIST_HOME would be /Applications/eXist-db.
On OS X, as adamretter correctly states, the default installation directory when using the Exist-DB installation disk image (.dmg) is /Applications/eXist-db. However, when you navigate to the /Applications/eXist-db folder and click on the exist-db icon, as if to open the directory for further browsing, all that happens is that the Exist-DB server starts. Less experienced Mac users might not realise that you have to right-click with the mouse on the Exist-DB icon in the Applications folder and choose 'Show Package Contents' from the menu in order to view the directories that sit beneath it.
The config.xml file can be found at:
/Applications/eXist-db.app/Contents/Resources/etc/config.xml
P.S. Don't forget to make a backup copy before you start editing :)
Where are system packages located in ST3? I'm well aware of these two:
~/Library/Application Support/Sublime Text 3/Packages
~/Library/Application Support/Sublime Text 3/Installed Packages
But I can't find where packages such as HTML or PHP are located. These are system packages that I want to edit. I've seen a number of articles suggesting that I copy the default package, let's say the HTML package for example, to my 'Packages' directory and edit it how I like. I just can't find the package to copy...
I'm running OSX 10.8.5 (Mountain Lion), ST3 Build 3047.
Thanks!
Pristine packages in OS X are located in /Applications/Sublime Text.app/Contents/MacOS/Packages. If you're going to be fooling around with the contents of them, I very strongly recommend using the PackageResourceViewer plugin. It does all the moving, unzipping, and renaming behind the scenes, and if you set the "single_command": false option you'll get all the options you need in the Command Palette. I can't recommend it enough, it's made my life so much easier!
(No, I didn't write it...)
One more bit of advice - don't change any of the pristine packages. Other stuff depends on them, and weird things can break in unexpected ways if you outright delete any of them. Instead, use PRV, and/or create identically-named folders in your ~/Library/Application Support/Sublime Text 3/Packages folder, and override individual files by placing modified versions there instead.
Good luck!
I'm trying to change my python version to be /usr/bin/python3 which I would make the change, according to default settings:
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
I simply cannot find the Packages/Python/ or Python.sublime-settings directory or file.
Trouble setting Python version in Sublime Text2
I verified a fresh download also lacks this folder structure. Where is the directory and/or file(s) for user defined settings for the Ubuntu 64 bit package?
Packages/Python/ directory should be located in
~/.config/sublime-text-2/Packages/Python
A tip to find where Packages directory is located: open the Default Settings, from menu Preferences/Settings-Default and look at the full path of the file:
I'm not seeing this question anywhere so I can only assume I'm doing something really stupid but...
What is the full path to the "Packages" folder for Sublime Text 2. I'm looking to install a new theme.
When I go to
/Applications/Sublime Text 2.app/
There is a "Contents" Folder only
Inside that is:
Frameworks Info.plist MacOS Resources SharedSupport
/Users/{user}/Library/Application Support/Sublime Text 2/Packages
Get to it quickly from within Sublime via the menu at Sublime Text 2... Preferences... Browse Packages
A useful shortcut from inside Sublime Text:
cmd-shift-P --> Browse Packages
Now open user folder.
Sublime 2
According to the documentation, in Sublime 2, the package directory is located under the data directory. That directory should be on these locations:
Windows: %APPDATA%\Sublime Text 2
OS X: ~/Library/Application Support/Sublime Text 2
Linux: ~/.config/sublime-text-2
This information is available here (archive link).
Sublime 3
For Sublime 3, the locations are the following:
Windows: %APPDATA%\Sublime Text 3
OS X: ~/Library/Application Support/Sublime Text 3
Linux: ~/.config/sublime-text-3
This information is available here (archive link).
For the portable version the documentation above states: "If you’re using the portable version (Windows only), look for Application/Data. Here, Application refers to the directory to which you’ve extracted the compressed portable files and where the executable resides.
Note that the Data directory only exists with that name in the portable version. In full installations, it is one of the locations indicated above."
Sublime 4
For Sublime 4, when cleanly installed, the locations are the following:
Windows: %APPDATA%\Sublime Text
OS X: ~/Library/Application Support/Sublime Text
Linux: ~/.config/sublime-text
According to this, if Sublime 4 is installed on top of Sublime 3, it uses the ST3 directory. (archive link)
More documentation about Sublime packages here (archive link).
1. Solution
Open Sublime Text console → paste in opened field:
sublime.packages_path()
→ Enter. You get result in console output.
2. Relevance
This answer is relevant for April 2018. In the future, the data of this answer may be obsolete.
3. Not recommended
I'm not recommended #osiris answer. Arguments:
In new versions of Sublime Text and/or operating systems (e.g. Sublime Text 4, macOS 14) paths may be changed.
It doesn't take portable Sublime Text on Windows. In portable Sublime Text on Windows another path of Packages folder.
It less simple.
4. Additional link
How to get current … in Sublime Text
You can browse package folder below method.
Use Sublime Text 2 menu : Preferences\Browse Packages
In Windows 7 : C:\Users\%username%\AppData\Roaming\Sublime Text 2\Packages (equals %appdata%\Sublime Text 2\Packages)