Sublime Forum

My feedback after usage

#1

I recently started using Sublime, and I think itā€™s a great editor.

Here are some issues that I think should be addressed, mostly user interface issues:

  1. The scrollbars are very difficult to see, they are dark gray on dark gray background. I donā€™t have perfect vision and itā€™s very difficult to quickly see where to click on the scrollbar because I have to focus on it to see the differences in the shades of dark grays. Make the moveable bar more lighter gray please.

  2. Canā€™t find any way to associate certain filetypes to a certain syntax. I have to go to View->Syntax and select the correct syntax every time I open files of certain type that isnā€™t associated to the right syntax by default.

  3. I have used Notepad++ and I just LOVE how powerful the editor is with regards of encoding. You can quickly see in what encoding the open file is by selecing Encoding from the menu, e.g. ā€œANSI, UTF8ā€, and you can quickly convert an open file into another encoding format, e.g. from ANSI to UTF8 or UTF8 to ANSI and it converts characters.
    Thereā€™s a capability to save a doc with a certain encoding in Sublime, but thereā€™s no way to see what the current encoding is!

  4. Zoom level on the preview scrollbar.

  5. Very difficult to see if a open doc has been modified and not saved. The ā€œxā€ changes to a filled ā€œoā€ if itā€™s been modified, but this is very difficult to spot. The font in the tab should change, like from being normal to being bold, and once you save it should go back to normal weight.

Thanks.

0 Likes

#2

[quote=ā€œArniā€]
5. Very difficult to see if a open doc has been modified and not saved. The ā€œxā€ changes to a filled ā€œoā€ if itā€™s been modified, but this is very difficult to spot. The font in the tab should change, like from being normal to being bold, and once you save it should go back to normal weight.[/quote]

There are plenty of theme available, try them and maybe youā€™ll find one that is better suited for you.

The first item in this menu (Open all withā€¦) associate the selected syntax with the current file extension.

[quote=ā€œArniā€]3. I have used Notepad++ and I just LOVE how powerful the editor is with regards of encoding. You can quickly see in what encoding the open file is by selecing Encoding from the menu, e.g. ā€œANSI, UTF8ā€, and you can quickly convert an open file into another encoding format, e.g. from ANSI to UTF8 or UTF8 to ANSI and it converts characters.
Thereā€™s a capability to save a doc with a certain encoding in Sublime, but thereā€™s no way to see what the current encoding is![/quote]

Reopen with Encoding and Save with Encoding could be used to convert encoding.
I agree that encoding (and line ending) must be displayed in the status bar, I already asked for it long time ago.
Meanwhile you can write a small plugin to display it in the status bar:
Use ST2 menu to create a new plugin and replace the content with:

[code]import sublime_plugin

def DisplayEncoding(view, encoding=""):
view.set_status(ā€˜encodingā€™, ā€œ%sā€ % ((encoding if encoding else view.encoding()),))

class DisplayEncodingListener(sublime_plugin.EventListener):
def on_load(self, view):
DisplayEncoding(view)

def on_post_save(self, view):
    DisplayEncoding(view)[/code]

Save it to your user folder.

0 Likes

#3

Would it be possible to extend your plugin a bit, bizoo?

E.g.: Instead of displaying the current encoding on the left side of the status bar text, could it be placed on the right side, where the tab size and the current associated extension are? Donā€™t know if itā€™s possible at allā€¦ but atm it ā€œinterferesā€ a bit with the status line of the vintage plugin (mh, not interfering, itā€™s more like ā€œdistractingā€).

It would be great, when it could display the current line ending as well (Windows / Unix).

Regards,
Highend

0 Likes

#4

Thanks

Iā€™ve fixed the file extension assocation.

Regarding the scrollbar, I use the Dawn theme, Iā€™ve tried others, but the contrast on the scrollbar doesnā€™t change, always the same.

0 Likes

#5

It is what I want too but I pretty sure itā€™s not possible yet with the available API.
The stacked text on the left of the status bar is really difficult to read :cry:

[quote=ā€œhighendā€]
It would be great, when it could display the current line ending as well (Windows / Unix).[/quote]

Itā€™s easy to add:

def DisplayEncoding(view, encoding=""): view.set_status('encoding', "%s:%s" % ((encoding if encoding else view.encoding()), view.line_endings()))
but I suggest you look at this plugin:
https://github.com/SublimeText/LineEndings

0 Likes

#6

Ty, bizoo :smile:

0 Likes

#7

[quote=ā€œArniā€]1. The scrollbars are very difficult to see, they are dark gray on dark gray background. I donā€™t have perfect vision and itā€™s very difficult to quickly see where to click on the scrollbar because I have to focus on it to see the differences in the shades of dark grays. Make the moveable bar more lighter gray please.

  1. Zoom level on the preview scrollbar.

  2. Very difficult to see if a open doc has been modified and not saved. The ā€œxā€ changes to a filled ā€œoā€ if itā€™s been modified, but this is very difficult to spot. The font in the tab should change, like from being normal to being bold, and once you save it should go back to normal weight.
    [/quote]

For (5), if you use a theme like Soda or Phoenix and set the following in your user prefs:

"highlight_modified_tabs": true,

The dot will be coloured as well which makes modified tabs much more obvious.

Regarding scrollbars, you can easily modify the theme yourself to get better visibility if you need it. Open the sublime-theme file for your theme and search for ā€œscrollā€; it looks like this in Soda:

    // Standard vertical scroll bar
    {
        "class": "scroll_bar_control",
        "layer0.texture": "Theme - Soda/Soda Dark/standard-scrollbar-vertical.png",
        "layer0.opacity": 1.0,
        "layer0.inner_margin": [2, 6],
        "blur": false
    },

You can play with the other options and can edit the scrollbar png files to increase the contrast, change colour etc.

Re. (4), I presume you refer to the minimap. Configurable zoom level would be nice, but Iā€™ve never felt the need for it to be any different since the point is to get a birds eye of a large part of your file, so you can see the ā€œpatternsā€, rather than actually have it readable. You might want to post a suggestion on sublimetext.userecho.com/ and search for ā€œminimapā€ while youā€™re there since there are some other good minimap requests too.

I agree that Sublimeā€™s status bar should definitely have more API hooks for devs including some position and layout flexibility. Thereā€™s a lot of real-estate doing nothing there right now. It could show eg. line endings and encoding, clickable for easy changing; a clock would be nice (I miss that from the Brief days); option to show CWD and full file path, and some of these things clickable to copy to the clipboard or paste straight into the doc. Just some thoughts :smile:

S

0 Likes