Sublime Forum

Better way to edit Settings

#1

I think one of the tougher concepts for new adopters of Sublime is the handling of the settings. I get the way that they work but itā€™s definitely awkward for newbies. Something I thought of that would probably be simple to do is to change the manner in which you present the editing of the files. People really shouldnā€™t be editing the ā€œDefaultā€ setting files and itā€™s not that obvious. I think if you changed the manner in which they opened to always show both the Default and the User files in a 2 column view it would make more sense. If possible, Iā€™d even set the Default file to read only. This way they could refer to the Default file and edit the User file at the same time.

1 Like

#2

Even better, IMO, would be to pre-populate the user file with the contents of the default file. Thatā€™s usually how I begin ā€“ I copy and paste everything, then edit individual items and remove the ones I donā€™t need to change.

0 Likes

#3

+1

Every time I try and pitch someone on sublime, one thing they get hung up on is editing settings. Itā€™s so unnecessarily complicated.

You should have a gui settings editor. It should list all the settings at their default values (file and global settings) and it should let them edit them. Some settings you know all the valid values for so you should have checkboxes/dropdowns for that. Use the existing UI paradigms to your advantage :smile:

The editor should take care of saving the settings in the correct place. Early on, users donā€™t care about the difference between file and global settings. They donā€™t care about they difference between syntax specific settings and package settings and what not. They donā€™t care to remember to put that trailing comma on the 3rd line of the json file that they forgot. Power users can always edit the files directly, but there should be a dead simple gui for people that are just getting started.

Iā€™ll even code it for you if you let me :smile:

0 Likes

#4

Iā€™m actually in favor of the json settings files. I think itā€™s great that Jon can roll out new features and throw in settings quickly without taking the time to plan out and build the interface. If there were a dynamic interface that could just be a key/value editor for the json file that might be better as long as there were a way to look at the default settings that you can work with and override.

0 Likes

#5

I agree the way settings are handled is very techy and old school. It makes perfect sense for us programmer types, but the vast majority of users Iā€™m sure get confused how this is all handled. Some sort of GUI that handles it would be ideal (regardless of how itā€™s handled on the backend - end users donā€™t generally care about that sort of thing).

Further, it would be lovely if we could edit color schemes using a simple GUI as well. Every editor Iā€™ve used until Sublime has a way to accomplish this.

Crimson Editor has View -> Set Colors, which lets you change the interface and syntax highlighting colors.

ā€˜eā€™ Text editor had a way to do this too (no longer have it installed so canā€™t verify where)

phpDesigner has Tools -> Preferences -> Syntax Highlighter. You choose the syntax highlighter you wanā€™t to customize and then pick your colors.

I like the power that is available in Sublime for further customizations (alpha channel control, cascading hierarchy, etc.) if you want, but for basic color selections an interface would be useful.

0 Likes

#6

I totally agree here. I hope that there soon will be a GUI like most other programs have.

0 Likes

#7

Isnā€™t the whole philosophy of ST2 based on the keyboard paradigm? Other than the tabs and Find/Replace there is very little GUI at all. I doubt there ever will be. (But I donā€™t know anything really)

0 Likes

#8

I very much agree :wink:. People are always initially impressed with ST, but then want to make more and more changes (to imitate their previous editor/IDE) :cry:. There are many plugins available, but I am in favour of leaving the default installation pretty much ā€œas isā€, especially in terms of the UI. Andy.

0 Likes

#9

Iā€™d recommend hiding the global preferences under a sub menu and list the user preferences (only) at the top level. Currently it is overwhelming having so many preferences and it isnā€™t clear which you should change. It would be better to have:

Sublime Preferences

User - Global Settings
User - File Settings
User - Key Bindings

Default Settings -> (these on a sub menu)
Default - Global Settings
Default - File Settings
Default - Key Bindings

0 Likes

#10

When I first checked out sublime text 2 awhile ago, and saw the settings file, I uninstalled itā€¦ I was more of a noob and would rather have a UI with checkboxes and dropdowns than the settings file. Iā€™m blown away that one guy is behind sublimetext, but I think a UI for the settings would go a LONG way for people new to sublimetext. Kind of like e-text editor.

0 Likes

#11

Because of the way sublime text 2 works, there is no reason a third-party application canā€™t be written to edit the settings and key bindings. Just like there are third-party mod managers for games (Elder Scrolls games, Diablo games, etc), it should be possible to create a settings editor application that just reads all of the appropriate .sublime-* files, compiles all the possible commands, and then provides a GUI for associating different keystrokes with different commands. Switching between global, syntax specific, etc modes should be no more complicated than selecting the appropriate tab.

0 Likes

#12

I love that the settings are in a text file - it is so much easier and faster to find and edit settings.

Given that, I can see how sometimes a GUI can also be helpful for non programmers. AutoHotkey is a great tool that could quickly create a GUI that could read and change the values in a text JSON type file. But it will take a programmer to create the GUI - and the programmer probably prefers the text file so he/she will have little desire to create it, haha. Just learn how to edit the text file. :ugeek:
AutoHotkey SmartGUI Creator / AutoHotkey GUI API

0 Likes

#13

I also love json file for settings. Its simple, fast and efficient. Maybe people who find difficult to edit a json file should not use sublime text at all ?

I think the only thing that could confuse some people new to sublime text is to use ā€œSettings - Userā€ instead of ā€œSettings - Defaultā€ for the customization.

0 Likes

#14

If you are on ST3: github.com/sublimator/EditPreferences

0 Likes