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

+1

Snippet for multiply scopes

baurzhan zhakashev 12 ár síðan updated by FichteFoll 12 ár síðan 1

<snippet>

    <content><![CDATA[

${1:var}['${2}']['${3}']

   ]]></content>

<!--      assert_equal(${1:expected}, ${0:actual}) -->

    <tabTrigger>var2</tabTrigger>

    <scope>source.php</scope>

    <scope>source.html</scope>

    <description>$var['']['']</description>

</snippet>


not working for scope.html

how to do it for several scopes

+1

File modified status (*) out of sync on title bar in Linux

T-R 14 ár síðan Uppfært 14 ár síðan 1
Very minor bug -  In Linux, when a file is modified or saved with ctrl+s, an asterisk is added to or removed from the tab, but not always in the title bar. The tab title always reflects the proper state, whereas after this happens the title bar shows the opposite state as the tab (i.e. ctrl+s adds an asterisk, modifying removes it), until they are resynchronized (either by producing the bug again, or switching tabs).

I have been able to reproduce this most consistently by deleting whitespace from an opened file that is unmodified since last saved. I have also produced this bug in other ways, but have been unable to do so consistently.

I am running the latest build (2051) on Ubuntu Desktop 64bit.
+1

Contextual history backtracking for only selected texts leaving history of other text intact

Clive Watts 12 ár síðan updated by Cameron Lakenen 11 ár síðan 1

Let say you have some text

-----------------------------------------------

1| psudo code {

2|  function of complexity 

3|   lots of code that i need to make lots of changes to 

4| }

5|

6| some other stuff that gets edited in between edits

7| of my psudo function

8|

9|


I want to be able to select my psudo code text block and (crtl/cmd)+z only its history leaving the state of my other code intact.


I understand it is a very complex problem to solve but It would be unbelievably useful and a great time saver. 



+1

Implement SlickEdit's "complete-more" command

codex 13 ár síðan updated by John Hurst 12 ár síðan 2
SlickEdit has a feature which allows one to "continue" auto-completing a matched iine.  For example:

foo->bar()->baz()
fo<tab>

This will complete "foo", but I can hit "complete more" to complete the entire line one word at a time: foo->bar()->baz().  SlickEdit will show me a preview of the matching line, and I can use other keys to cycle between all matching lines to pick the one I want.  A great alternative to cutting and pasting, and one that doesn’t require any navigation.
+1

Each "Open recent" should open the previous last opened

Bill Hunt 13 ár síðan updated by Jon Skinner 13 ár síðan 1
I just discovered ctrl-shift-t opens the last closed (awesome!). Pressing it again should open the second-to-last closed. A third should open third-to-last closed, etc. I.e. replicate the behavior in Chrome (ctrl-shift-t is the keystroke for this behavior in Chrome as well).
+1

Highlighting within brackets

Peter Leary 11 ár síðan updated by Arunprasad Rajkumar 11 ár síðan 1

Hi there, 

Currently in sublime you get a little marker to show the start and end of any bracket you are within.  () [] or {} 

Image 239


It's handy but when you are in a large file it can be a bit like Where's Wally trying to find the other one sometimes, so I thought it might be nice if you had the option to slightly highlight that section so it's really easy to see where you are. 


Image 240


Just thought this might be kinda cool. 

Thanks

Pete

+1

When "finding next", reset x-axis view to 0

Jason Myers 12 ár síðan 0

When performing a "find next" within a document, if you hit a result that is "offscreen" to the right, the x axis (scrollbar) moves right so you can see the result


Then, when you continue "finding next", the scroll bar remains shifted right to the value of the previous find (which IMO is usually undesirable, since seeing the 0'th column in code is most important to gain your bearing)


My suggestion is to reset the view x-axis to 0 after every "find next"

+1

Vintage mode: make yank work with multiple cursors

Michael hauser-r 11 ár síðan 0

When you have multiple cursors and copy then paste with sublime it pastes what each cursor copied. when you enter visual mode with multiple cursors, hit y and then hit p each cursor pastes what was copied from all the cursors one after the other.

+1

Cursor doesn't move when you shift+click to select backwards

Caleb Land 13 ár síðan updated by lanzz 13 ár síðan 1
If I have a document with no selection, and I hold Shift and click somewhere in the document /before/ the cursor, the cursor does not move to where I clicked, but remains at the end of the selection.

Selecting forward does move the cursor forward.
+1

Translate Sublime Text 2 to Spanish (Mexico)

Alfonso Commer 12 ár síðan 0

I volunteer to translate Sublime Text 2 to Spanish of Mexico. What do you think?