Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.

-1

sublime.status_message() should only be shown in the window were it got invoked in

Oktay Acikalin 14 ár síðan Uppfært 14 ár síðan 1
-1

Area position / Find files or in file (ctrl+F / ctrl+shift+F)

~~ 12 ár síðan 0

Ctrl+T or ctrl+P appears at the top, which is nice. For those two, you search something.

With Ctrl+F or ctrl+shift+F, you also search for something.

Problem : those two windows does not appears at the same position. Coming from textmate, just can't get used to it.

And it makes me think about e! or some eclipse flavors, which is a feeling I'm not looking for.

Is there a way to customize the Ctrl+F or ctrl+shift+F areas, and let them appear as the Ctrl+T or ctrl+P do ?

-1

Extend scope to included Files

sp0r 14 ár síðan 0
Like: function xxx() from file inc.php completes in file index.php because inc.php ist included via include or requiere in index.php
-1

Block comment in Ruby

Alex Luckjanov 12 ár síðan Uppfært 12 ár síðan 2

I select some lines and press ctrl+shift+/:

Image 178

It's incorrect. I expect to see this:

Image 179

-1

Remove unnecessary/unused File types

vilas kadam 12 ár síðan updated by Andreas Backx 12 ár síðan 1

I primarily use sublime for Web development, and the file types in use are HTML, CSS, JS, PHP.  I want to remove the unnecessary filetypes and syntax files that gets loaded like c++, erlang, java etc. Is there a way to configure this? 

-1

Open in browser of choice option for ST3

Daniel Pritchett 9 ár síðan 0

Whenever I run a command that opens the browser by default it opens in firefox. I primarily use chrome and even have that set to the default.

-1

JSP Autocomplete for self terminated tags fail if there is a ":" in the element

Ryan Park 11 ár síðan 0

When typing the code below, using syntax JSP, when you get to the closing div tag it will not auto complete the div but rather the <foo:bar .../> because it doesn't understand that it is self terminated. Only reproducible when a ":" is present (which are common in JSP for TagLibs).


<div>

<foo:bar attribute="hi" />

</div>

-1

same keybindings on all platforms

pixelpixi 11 ár síðan 0

I just started using sublime and I'm loving it! I work on both mac and linux, however, and I'm finding it super annoying that the default keybindings are so different between platforms. I know I can go through them all and remap them, but an easy way to do that by default would be awesome.

-1

view.show(sublime.Region(a, b)) scrolls to wrong region in view

Oktay Acikalin 14 ár síðan Uppfært 14 ár síðan 6
I've written center_view_on_line.py. Today I wanted to refactor it 'cause it behaved strangely in some cases. Now I'm trying to come up with an algorithm to center the visible region over the current line or selection. I've got the final row numbers and could translate them into a proper region. If I compare the visible region I get by scrolling there manually and the target region my script calculates they seem to be nearly identical. But the view scrolls somewhere else - often the cursor is at the top of the screen. When querying the visible region again the coords are totally off.

Some vars I work with:
visible_region = (366, 998) # manually centered view
selection = [26, 26] # cursor in line w/o selection
region = [26, 26] # in this case same as selection
visible_region = [16, 36] # first row, last row from above
size = 2099 # self.view.size()
region_size = 0 # diff between region end and begin
visible_size = 20 # diff between last and first row
begin = 16 # calculated first row
end = 36 # calculated last row
target_region = (366, 946) # calculated for self.view.show()
target_region = [16, 36] # translated into first, last row
visible_region = (603, 1351) # region I get after self.view.show()

Any idea?