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

+1

multiline quoted literals highlighting and autocomplete

U N. 13 років тому 0

Currently, quoted literals are treated somewhat incorrectly in regard to auto-completion. E.g. in php:

mysql_query('SELECT id FROM test WHERE id IN()');

Typing `'` within the `IN()` brackets behaves as expected. The literal string is also highlighted. However, if one has the exact same literal, spanning across several lines, things stop working:

        mysql_query('

            SELECT id
            FROM test
            WHERE id IN()
        ');

Highlighting no longer works. Typing `'` withing `IN()` brackets does not insert matching `'`. If one types in the second `'` manually, it is auto-completed this time around, resulting in `IN(' '')`.

Basically, this results in editing larger strings extremely inconvenient. The example query is short, but imagine it having 5 joins -- it would get extremely large, and editing it as a one-liner would be a pain.

Same goes for C multiline literals.


+1

Final character of document left hanging when folding whitespacey languages

johtso 13 років тому 0
+1

key conflict popup

Marius Giurgi 12 років тому 0

A better way to handle the key conflicts is to popup a list of all commands mapped to the same shortcut and let the user choose which command they want to execute (instead of ST executing one by default and ignoring the rest). Often times new packages introduce key conflicts and it's rather inconvenient for the user to have to re-map the conflicting shortkeys. It's likely that multiple operations sharing a shortkey are all useful thus necessary to be kept by resolving the key conflicts, which requires a careful remapping of these operations in order to avoid introducing further conflicts with yet other operations. IMO the key conflict resolution task should be handled by ST instead of being left up to the user.

+1

Filter out compiled output files, when source matches but not always (coffee, js)

Ilkka Tuohela 11 років тому 0

I would like to be able to define in settings when to filter out browser files which match a source / compiled file pattern: for example, I don't want to hide all .js files from my project, but if in same directory there is a foo.coffee file, I would like to hide foo.js because it can be expected to be compiled from the other file.


Of course I can define per project 'hide .js files in folder x', but it would be easier to be able to configure 'whenever I have .coffee hide matching .js'.


If I have date.js in a directory without matching 'js source' files in same directory, the date.js should be shown: this is why current file_exclude_patterns does not work in this case.


Example how this might be configured in user settings (globally, not per project):


compiled_file_extension_exclude_patters = {

'.js': [ '.coffee' ],

'css': [ '.less', '.coffee' ]

}


+1

CTRL+SHIFT+PAGE (UP|DOWN) for switching tabs order like in Google Chrome.

Mateusz Charytoniuk 12 років тому оновлено Nika Chxartishvili 9 років тому 2

This is very comfortable for ordering tabs.

+1
Not a bug

Compatible with Git for rebase -i

Matthew O'Riordan 13 років тому оновлено Jon Skinner 13 років тому 3
In my old text editors (vim and Textmate) I had the editor set in an environment variable on OS X to such as EDITOR=vim

When I run git rebase -i, it automatically uses the text editor, and now because I primarily use sublime it loads sublime.

However, unlike Textmate or vim, git rebase -i does not seem to know when Sublime has closed the file, so continues without waiting for Sublime to finish editing. 

You can easily test this by running 
EDITOR=vim git rebase -i HEAD~5
EDITOR=mate git rebase -i HEAD~5
EDITOR=subl git rebase -i HEAD~5

As you will see, with Sublime it does not work.

Matt
Відповідь
Jon Skinner 13 років тому
Use -w to wait till the file has been closed
+1

edit multiple files in one "pane"

Dev Doshi 11 років тому 0

Currently, each window can have multiple panes depending on your layout settings. However, when you work on e.g. a large client- and server-side javascript project, you can easily have many related files open in tabs in each pane that you need to switch between fairly often. Goto Anything is ok, but it's not as fast or as easy to work in as if some of the files were rendered into one composite file. I think this is because it is easier for me to remember which code point I need to find and use the Find feature than to remember which file it is in and use Goto Anything, unless I'm misunderstanding how to use Goto Anything. Sometimes it's even faster to just use the mouse to pick the right tab than to try with ctrl+tab (I would prefer tab-order to time-order or whatever the current ordering is) or type the file name in Goto Anything.


So, what I'd really want is something that takes a bunch of separate files and presents them as one file, with collapsible/reorderable boundaries between files. This happens to have a side effect of making it easy to have one file with multiple different syntax highlighting and other language-specific features. I imagine it could be implemented as something like a pre-processor where I specify a config file with all the different groupings (and maybe also stuff like strings to prepend and append to each file). Ideally I could also take the same config file and output the composited files to the file system like make or other build process tools.


Other than that, I love Sublime. Keep up the great work!

+1

Westhill Consulting Clinical Coding: What does Tribal do?

ainsleycarreon 11 років тому 0
Tribal is a global provider of software products and services to the international education, training and learning markets. Working as one, we focus on helping our customers to deliver excellence.


What we do:


§We are the number one provider of student management systems to Higher Education, Further Education and training providers in the UK, with a growing international presence.

  • We are the number one provider of college, school and Early Years inspections in the UK, on behalf of Ofsted.

  • Through i-graduate, we provide evidence-based information on education experience and outcomes across the Higher Education, Further Education and schools markets, working with over 1200 education institutions in 24 countries.

  • We are the number two provider of Children’s Management systems to Local Government in the UK.

  • We are implementing technology to support one of the world’s largest educational change programmes in New South Wales, Australia.

ADDITIONAL READINGS:
+1

ctrl+z feature for chosen lines, the rest of text is not to be affected

uriya avni 11 років тому 0

selecting text area and ctrl+z (or ctrl+y), but instead of doing "ctrl+z" until you get to the desired result (and might risk ruining lines from all other the text)  you get to change only the highlighted area.


+1

PC Speak: Abney and Associates News - Google's Project Tango whips up new mapping tech

kattmorgan139 11 років тому 0
News.Cnet.com
Take the latest in computer vision, power it with custom-built hardware and chipsets, and put Google behind the wheel. Welcome to Project Tango, an attempt to revolutionize mobile mapping.

When Google sold off Motorola Mobility, it kept the company's Advanced Technology and Projects (ATAP) group and moved it under the Android umbrella. Now we know at least part of the reason why: Project Tango.

Project Tango is an ambitious attempt by ATAP, a skunkworks division with Defense Advanced Research Projects Agency (DARPA) roots that's been peeled away from Motorola Mobility, to give smartphones the ability to do realistic 3D mapping and create virtual experiences as the phone's owner moves through the real world. Not surprisingly, there's more to it than that.

The key move to Tango is that it's a collaborative project that pulls together the expertise of more than a few companies working on cutting-edge technology. This includes a low-powered, vision-processing chip called the Myriad 1 with custom-designed architecture by Movidius, reports TechCrunch. The Myriad 1 can power the complex algorithms needed for computer vision without draining the smartphone's battery, something that current smartphone chips can't do.

Tango exists as a 5-inch Android phone prototype, running customized hardware and software which can track the "full 3D motion of the device, while simultaneously creating a map of the environment," says Google. Suggested applications range from the mundane, such as capturing the dimensions of your home before furniture shopping simply by waving the phone around a room, to the helpful, such as aiding the visually impaired inside unfamiliar buildings, to the frivolous, such as turning a hallway into a virtual-reality game space.

The company is putting Tango in the hands of developers in the coming months, starting with 200 devices distributed by the middle of March. Developers can submit their proposals to the ATAP group at the Project Tango Web site.

The phone's sensors make more than 250 million 3D measurements every second and use that data to build a 3D model of the phone's surroundings. It includes custom APIs that give developers access to the phone's position, orientation, and depth. Android applications can be written in Java, C++, and in the Unity Game Engine. Google cautions that as a prototype, Project Tango is not a "final shipping product."