Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.
No similar topics found.
add_regions() doesn't add regions. It replaces previous regions with the same name.
add_regions() with the same region name as a region already present in the view will replace the existing regions, instead of adding to them (as the name implies).
>>> v = sublime.windows().active_view()
>>> v.add_regions('a', [v.full_line(v.text_point(133,0))], 'string', 'circle', sublime.HIDDEN) # A circle is added, in line 133
>>> v.add_regions('a', [v.full_line(v.text_point(137,0))], 'string', 'circle', sublime.HIDDEN) # The first circle is deleted and a circle is added to line 137
I was expecting to have two circles, one in line 133, one in line 137.
Per Visual Studio, folders/files marked as "hidden" at the OS level should not show up in the side bar or find results.
In OS X at least, while dragging to make a selection, the cursor disappears. It makes making selections in Sublime feel a little off. Usually on OS X, the cursor isn't available at all while the selection is in place, but I understand that Sublime needs to show the cursor position while a selection is made.
I think Sublime should hide the cursor while dragging.
I am used to Slickedit's "next function/prev function" keyboard bindings. So far, the closest approximation ST2 is to use <Command-R><Up/Down> to show the function list, and then using the arrow keys to move to the next function. However, if I should simultaneously press Command, R, and an arrow key, and keep Command and R depressed while I select a function, the selection window will not automatically go away when I release the keys--it requires <Enter>. This makes quick selection difficult (the same problem also occurs with Command-P). There are some other problems with this method as well, such as:
- the next function is not visible in the function list, because the current function is always at the bottom
- the chosen function is not always in the same spot in the editor window (e.g. middle), and I can't easily find it because my eyes were focused on the function list as the editor window was scrolling around.
The new italic rendering of text does not work with the font I use, making the text unreadable.
Each italic character seems to take double the space, as you can see on the screenshot below:
The font is HobTiny, you can download it for free:
I think it only works on Windows.
Thanks for the amazing work
Every time I open a file from Finder (Mac, obviously) I have to choose ST2 manually. I'd like to just open any text-based file in ST2 automatically.
I tend to keep a lot of files open at once (often 10 or more), and this makes it difficult to read the filenames in the tabs.
It would be nice to be able to show the open files in the sidebar, or at least have some way of listing them vertically (as opposed to horizontally) so that the filenames don't have to be truncated.
If they are in the sidebar, there will have to be a way to separate them from the folder view, of course. Maybe the open file list could go above the folder view?
Customer support service by UserEcho