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

+11

PHP inside a Javascript string Highlighting bug

Mauno Lempiäinen il y a 13 ans mis à jour par James Homer il y a 13 ans 1

Sublime doesn't recognize php tags inside a javascript string:


$addDialog = $('<div><?php echo $this->Form->input('parent_id', array('type' => 'hidden', 'div' => false));?></div>');

It highlights the above php code as string and 'cuts' highlighting the JS string when ever there is a ' chracter in php code.
+11

Recursive code folding

Norris Wyvern il y a 13 ans mis à jour par Peter Epp il y a 12 ans 3
Currently CMD+K1 Folds all 1st level code. I'd very much like to see a code fold that does recursive fold. Meaning, that after I fold, I have to unfold one by one to get where I want to.
I mean: CMD+k1 would produce CMD + k9, CMD + k8, ....CMD + k2, CMD + k1.
+11

Bundle a separate application for previewing files as HTML

Axel Rauschmayer il y a 12 ans mis à jour par Krzysztof Kotlarski il y a 12 ans 3

There seems to be an aversion to putting too much functionality into Sublime. Then how about a separate application? It would show a single browser window and watch a directory. You would be able to configure what files are watched and how they are converted to HTML. It should be possible to optionally make that conversion without creating files, by writing to stdout.
Example configurations:

  • HTML: Watch all .html and .css files. If one of them changes, reload the browser window.
  • AsciiDoc: Watch all .asc files. If one of them changes, convert it to an HTML file and reload the browser window.
  • Markdown: Watch all .md, .mdown and .markdown files. If one of them changes, translate it to HTML and pipe the result to the browser window.
+11

Missing build for Linux - armhf

Juhapekka Piiroinen il y a 11 ans 0

Could you provide an armhf build for Linux, as I would like to run this on my chromebook which runs ubuntu.

+11
Écarté

tab resizing like chrome

Rohan Dhaimade il y a 14 ans mis à jour par Jon Skinner il y a 12 ans 3
If at all possible to copy the tab behaviour of chrome (in the terms of sizing and closing). It's preetty well documented and it would be nice cause then we can quickly close tabs with your mouse.
Solution
Jon Skinner il y a 14 ans
Chrome style delayed-tab-resizing-on-close only makes sense if all the tabs are the same width, as they are in Chrome.

Sublime Text 2 uses different width tabs, to better make use of the available space. This is done because file names in text editors are much more important that titles on web pages.

If resizing were delayed, then it would in general be no help, as the close button of the next tab would not come to be under the mouse cursor.
+11

Find in Files: save and reopen Find Results

Thomas Jachmann il y a 12 ans 0

When using Find in Files, I often have to deal with large result sets (I'm working on a large project) and I really love using a buffer for going through the results and narrowing down my result set by removing the results that don't have to be handled.


It'd be cool when I'd be able to save and reopen that file with all the search functionality restored. Currently, I have to search for some dummy stuff, open the result file and copy/paste it into the Find Results buffer. Maybe opening the file and setting it's syntax to "Find Results" to get the proper formatting and the ability to click on the results and jump to the corresponding files.

+11

XPath generation from cursor position in XML

Me Whatever il y a 13 ans mis à jour par Ross Hadden il y a 11 ans 1
It would be extremely useful if sublime text 2 could generate xpaths from the user`s current cursor location in the xml and copy them to the clipboard.
+11

Remember the last cusor positions in the previously opened files

phalkunz il y a 13 ans mis à jour par Eugene Burmako il y a 13 ans 1
The last cursor positions of the previously opened files should be remembered when reopened, in an app session. It's really useful when you're working on different files. You can close some of them to unclutter the workspace, reopen them again when needed and you can pick up where you left off easily. 
+11

Trying to open an already-opened project opens a new empty window

lanzz il y a 12 ans mis à jour par Tim Holt il y a 12 ans 1

When I have a project already open, and try to open the same project again (via "Project > Open Project..."), instead of opening a new window for the same project (which would be the ideal case, as it would allow two windows with tabs for different files open in each) or focusing the existing window for the project (which is what happens if I choose the same project from the "Recent Projects" menu), ST2 for some unexplicable reason decides to open a new, empty window instead.


ST2 v2.0.1 build 2217.

+11

Sidebar can't cope with large projects

nickl il y a 13 ans mis à jour par Max Strebel il y a 13 ans 1

For large projects the sidebar folder scan seems to leave the folder/file tree incomplete. Often, folders at a certain depth remain empty, even though on disk they contain files and subfolders.


At first I thought this was because the scan had not finished, but days later this is still the case.


Other issues relating to folder scanning are
- no indicator to show when a scan is in progress or when a branch is incomplete
- no option to refresh a folder after contents were changed outside of the editor
- switching projects seems to trigger a fresh scan, which is not practical for large projects


'large', in this case is 150,000 files across 25,000 folders. Maybe sublime is not designed for projects of that size? Eclipse manages it, although the scan is pretty slow.