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

-1

Detect more diff formats

Ash Moran 12 years ago 0

I like to use Sublime Text to highlight diffs. On some of my projects I use the Darcs VCS and not git. The diff package in Sublime contains a firstLineMatch regex option for "diff\ --git[ ]". Unfortunately, Darcs produces diff output that starts with "diff -rN -u", not "diff --git".


To fix this, I've hacked my part of the Diff package regex to read "diff[ ]" instead. However in general this would seem the better way to do it? I can't see a reason why files starting "diff" that weren't generated from git should go unhighlighted, unless there's something I'm missing.

-1

Customisable shortcuts for build tools

Rodney Amato 13 years ago 0
For PHP files I have at least 3 build tools configure :-

  • One for doing a lint style syntax check
  • One for running the code in the current file
  • One for running php code sniffer for validating the coding standards on the current file.
I'd like to be able to configure shortcut keys so that I can fire off any of these build tool without having to remember to switch between each build tool. For example if I was writing a script, I might want to do a syntax check of the script and then if that is ok run it afterwards (this could apply to php, perl, ruby, python etc.). Having to remember to switch build tools gets in the way of this kind of usage.

I can see this coming in handy for other things like being able to run unit tests or integrating with your workflow (rsyncing the current file to a test server for example) as well.

It might be worth setting a few defaults for common tasks if this goes in too for the most common of the tasks like syntax checks, executing the current file and running tests for the current project.

-1

Under Windows, when alt-tabbing during a drag and drop, the drag and drop is broken

Keith Buck 12 years ago 0

Scenario: you want to move a tab from one Sublime Text 2 window to the other, but to reach the other window you must alt-tab while dragging the tab.  Unfortunately, alt-tab breaks the drag and drop.


Most other tabbed applications (e.g. Firefox) work fine when alt-tabbing while dragging a tab.


This is also broken for win-tab.

-1

vintage mode: implement zt and zb

Michael Seiwald 13 years ago updated 13 years ago 0
-1

Goto Folder functionality

Atticus Finch 13 years ago 0
This is something I've yet to see in any editor. It would work the same as CMD+P for finding files, but instead it only looks for folders and the selected folder would then become activated/highlighted in the sidebar.

Example workflow/usage...

Goto Folder > 'classes/controllers'
CMD + N //do stuff
CMD + S to save the file in this folder

Goto Folder > 'classes/views'
CMD + N //do stuff
CMD + S

Goto Folder > 'templates'
CMD + N //do stuff
CMD + S

Edit: Perhaps add this functionality within the current Goto File search dialogue by searching for folders if we add a / to the end of the search criteria. Eg: 'controllers/' , 'views/' , 'templates/' would only bring up search results for folders.
-1

Snippet transformations don't work correctly

RoyalTS 13 years ago 0
According to http://blog.macromates.com/2005/the-power-of-snippets/, the following snippet should prepend a bullet point to every line in the current selection:
${TM_SELECTED_TEXT/^.+$/• $0/g}

However, this does not seem to work. Instead it only places a bullet in front of the first line and does not apply the regex replace multiple times.
-1

Welcome to the new Westhill and Elrick Community website.

ishavellemich 11 years ago 0

Welcome to the new Westhill and Elrick Community website.

This site has been established by Westhill & Elrick Community Council (W&ECC) to bring together and promote the diverse range of community groups active in the area. It is hoped that as the website progresses more and more local groups will join us to promote what they do in the local community and that this site will be a one-stop shop to find out what's going on in Westhill & Elrick.

W&ECC was formed in 2008 having formerly been the Westhill & District Residents Association.

Community Councils are statutory bodies whose main aims are to represent the views and take action to promote the interest of the community. Community Councils can carry out a variety of roles including campaigning on local issues, supporting and encouraging other community organisations, helping with environmental projects, commenting on local planning and other issues and conducting local surveys.

W&ECC meet every second Thursday of each month at 7pm usually in the Staff Room, Westhill Academy and all local residents are most welcome.




-1
Declined

Pressing escape when viewing a preview buffer should return user to previous buffer

ybakos 13 years ago updated by Jon Skinner 13 years ago 1
Man oh man do I love ST2.

I'd like to recommend a new feature. When I click on a file once in the sidebar, a "preview" buffer appears (a tab-less buffer). This is nice, but I'd like to be able to press ESC to return me to the previous tab/buffer I was viewing rather than having to click somewhere.

For example: double-click a file in the sidebar, notice that a tab has appeared containing that file's buffer. Now click once on another file in the sidebar, and notice that a tabless buffer appears. If I'm done viewing that file's contents, I need to click the first file's tab in order to make the tabless buffer appear.

Answer
Jon Skinner 13 years ago

Thanks for the request. There are already a couple of ways of doing this from the keyboard:


- ctrl+tab back to the previous file
- close the transient file, via ctrl+f4 or command+w
-1

"ignored_snippets": [ "function" ],

Mark Fink 12 years ago 0
Hi there,
I am new to Sublime Text 2 and I must say so far I like it. I have a question regarding snippets. I want to clean up my snippets but I do not want to delete them because I want an easy way to sync between multiple workenvironments. I also want to insulate against new versions. Therefore I was expecting to be able to do this in the user settings like the following (analog to ignored_packages, but I could not get it to work):

"ignored_snippets":
[
"function"
],
-1

Option to mirror switching tabs in different groups.

Amiel Martin 12 years ago updated 12 years ago 0
I'm having a hard time searching for other references to this because I don't know what to call it. So, apologies if it's already here or even already implemented and I can't find it...

Here's the idea/use case:

I like to split with two groups "Columns: 2", and put implementation files on the left and test files on the right. In order to see an implementation file and the corresponding test file at once I have to either click on them both or do some tricky key combos (switch tab with ctrl-tab or command-ctrl-arrow, then ctrl-2, and switch tab again). I'd like to be able to switch tabs and have both my corresponding implementation and test switch at the same time.

I'm not sure what the best way to implement this is. Any ideas?