Home Download Buy Blog Forum Support

Data\Packages\User is a cryptic nested dir structure

Data\Packages\User is a cryptic nested dir structure

Postby robertcollier4 on Tue Feb 26, 2013 12:07 am

The Data directory structure in Sublime Text is very cryptic and confusing. There are highly nested folders such as Data/Local and Data/Packages/User/Installed Packages which serve no purpose of them needing to be nested that way. (Everything could just be in Data since everything has an appropriate extension anyways).

Why can't the whole of "Data" just be the "User" folder as is standard for Portable Apps and get rid of all the nested folders? It is hard for plugins to know if they should look for files in Data\Packages or Data\Packages\User folder. There is no clear way of referencing Data\Packages\User via a variable and knowing if you should reference Data\Packages or Data\Packages\User.

The whole "User" folder is unnecessary since the "Data" folder implies that its a User folder anyways.

Packages should also be able to be loose or zipped in the same folder so that they can easily be worked with and zipped and unzipped during dev time.

A much simpler way would just store everything in Data\ and parse all files in all subdirectories of Data\. The default files would be at the following:

<executable_path>/Packages/ - stores zipped packages from vendor
<executable_path>/Data/ - can have zipped packages as .sublime-package files AND can also have loose packages as subdirectories
<executable_path>/Data/Preferences.sublime-settings - User specific settings
<executable_path>/Data/Default (Windows).sublime-keymap - User specific key mappings
<executable_path>/Data/Session.sublime_session - Stores the session

This would greatly simplify the current unnecessarily nested directory structure. If there is any rhyme or reason or necessity to the current directory structure having so many subfolders please enlighten me.
Posts: 150
Joined: Sun Feb 24, 2013 5:37 pm

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests