Home Download Buy Blog Forum Support

Sublime Text X 20101230

Sublime Text X 20101230

Postby jps on Thu Dec 30, 2010 9:12 am

Sublime Text X 20101230 is out now. There are several polish related features, but the headlining feature is the new project support.

Projects in Sublime Text X work differently to those in 1.x: In 1.x, projects are a set of directories, while in X, they're a mini-session, containing a set of directories, open buffers, changes to those buffers, and other transient settings. Switching between projects is instantaneous: any unsaved changes to files will be recorded in the project, and then the new project is switched in. This makes switching between tasks quite efficient.

It's also possible to work with ad-hoc projects (i.e., with no .sublime-project file) by simply dragging folders onto the side bar.

There are still several more things to implement for proper project support, the most significant of which is excluding unwanted files from projects.

Being able to switch between sessions was a frequently requested feature for Sublime Text 1.x, and I'm keen to hear how everyone finds this implementation.

Also, I'm aware there are many people who would like to try out Sublime Text X, but aren't able to because they haven't yet purchased a license for Sublime Text. I'm hoping it won't be too long until there's a public alpha available.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Sublime Text X 20101230

Postby guillermooo on Thu Dec 30, 2010 10:19 am

Awesome, Jon!

I noticed in order to create a project you just Add Folder To Project... and then Save Project As...? So no New Project item?

With key bindings working as expected, I can think of starting to migrate to Sublime X.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: Sublime Text X 20101230

Postby knitatoms on Thu Dec 30, 2010 10:37 am

Thanks Jon - X is looking fantastic. The new project functionality works fine for me (Win 7 64bit).

I use Sublime for writing prose as well as code - looks like the only thing missing for me to migrate now is spell-check with F6. Hopefully on your to do list ;-)
knitatoms
 
Posts: 22
Joined: Sat Feb 06, 2010 9:01 am

Re: Sublime Text X 20101230

Postby jps on Thu Dec 30, 2010 10:46 am

guillermooo wrote:I noticed in order to create a project you just Add Folder To Project... and then Save Project As...? So no New Project item?


Yeah... in a sense, you're always working in a project, either the anonymous one that's saved into the session, or one that's saved to its own file. It helps to think of projects as just being workspaces or sessions that you can switch between. For example, you can happily have projects without any folders mounted in them, just with different sets of open files.

To put it another way, projects and folders in the side bar (which are accessible via ctrl+p) are more or less independent concepts, and you can happily have one without the other.

During development, projects were initially called workspaces, which perhaps better describes how they work, but I think that calling them projects is more appropriate, as that's where they're supposed to fit in in the workflow.

knitatoms wrote:I use Sublime for writing prose as well as code - looks like the only thing missing for me to migrate now is spell-check with F6. Hopefully on your to do list ;-)


Yep, for sure!
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Sublime Text X 20101230

Postby skaet on Thu Dec 30, 2010 11:42 am

Good to see several releases over this holiday period. Your dedication is admirable!

I was just writing this in the previous thread so I might as well put it here.

If you're still using Sublime Text over Sublime Text X, I'd be happy if you could let me know what is holding you back from moving.


Let me preface this by saying I have not purchased yet. I came to Sublime just as X was announced. I decided to delay purchasing until I knew more about the upcoming version.

Part of my hesitation comes from the significant cost of a license (although the strong Aussie dollar atm is tempting). I also haven't seen any word if repurchase is necessary when migrating from ST 1.4 to STX. Do you feel that STX will see an official "final" release in 2011?

I'm hoping it won't be too long until there's a public alpha available.

What is the current development state of STX? So this is pre-alpha but how far along is it? There's no clear indication of just how stable it is. Since it's in active development, how much is subject to change and what bugs still exist that are potentially show-stopping? Which features are you planning to develop that aren't available or ready to be showcased?

It's these concerns I have about even making a purchase at this point.

Without having experienced it yet, the new project management sounds very encouraging as I find the current project pane very limiting. Is there anything else you can add that will make a decision easier and more informed?
skaet
 
Posts: 93
Joined: Thu Sep 16, 2010 3:37 pm

Re: Sublime Text X 20101230

Postby jps on Thu Dec 30, 2010 12:32 pm

skaet wrote:Is there anything else you can add that will make a decision easier and more informed?


Until this month, Sublime Text X was not usable as a day to day text editor, as too much functionality were missing. It was available as a pre-alpha preview to existing customers so that they could see what was happening. It was not available for evaluation, because it just wasn't in a state where it could be reasonably evaluated. This is still true now, although the editor is much further along.

In short, no, I don't think it makes any sense to purchase a license to Sublime Text if your interest is only for Sublime Text X. Wait until there's a public version available and give that a spin first.

I'll write a blog post about roadmaps etc when the public alpha is released. It shouldn't be too long away.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Sublime Text X 20101230

Postby jps on Thu Dec 30, 2010 12:36 pm

sublimator wrote:
# JSON configuration files (*.sublime-keymap, *.sublime-menu, *.sublime-theme) may be defined in multiple separate files, and will be concatenated together


Can you elaborate on this ?


In short, keymaps work like they do in Sublime Text 1.x, where you can specify bindings across several different files, as long as they have the same base name.

There are two things I'm planning to add to this:
* Package level priority. Packages may optionally have a priority number associated with them, and they will be sorted by this before being sorted by name.
* Specific overrides. This is a bit more vague that the above, but I'd like to put more intelligence in the merge process, so it's possible to have one file remove or modify entries in another, rather than only appending new entries.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Sublime Text X 20101230

Postby luislavena on Thu Dec 30, 2010 1:34 pm

What about command line interface?

Asking this because I spend a lot of my time working with the command line, for executing commands related to the source I'm editing or committing the changes to the repository

For example, I've created a simple batch file to make current SublimeText launch the current directory as a project:
Code: Select all
@ECHO OFF
SETLOCAL
SET STARTER=START ""
SET SUBLIME="%ProgramFiles%\Sublime Text\sublimetext.exe"
IF NOT EXIST %SUBLIME% (
  SET SUBLIME="%ProgramFiles(x86)%\Sublime Text\sublimetext.exe"
)

IF "x%1x" == "xx" GOTO :NOFILE
SET CMD="%1"

REM Determine if supplied is a file or a folder
IF EXIST %CMD%\*.* (
  SET CMD="%~f1"
)
GOTO :RUN

:NOFILE
SET CMD=

:RUN
%STARTER% %SUBLIME% %CMD%


This works with current Sublime, but not X. The drawback of current sublime is that is single windowed. Only one project can be opened. (Second window from File menu doesn't count, as is kept in the session every time I left it open)

Any idea about adding command-line support?

Thank you.
luislavena
 
Posts: 25
Joined: Fri Jun 04, 2010 7:15 pm

Re: Sublime Text X 20101230

Postby guillermooo on Thu Dec 30, 2010 2:17 pm

sublimator wrote:I did a help(sublime) and it seems like there's most of the API there :)


Also, __doc__ on API funcs now returns useful info. That's pretty handy!
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: Sublime Text X 20101230

Postby willi297 on Thu Dec 30, 2010 6:27 pm

Yeah @subliminator, I use the ProjectMRU plugin extensively for non-X Sublime. Seems to make sense to fold something of that sort into the core, especially with the enhanced project/workspace stuff.

Although, I don't really like the idea that a project file saves context as well. I would REALLY prefer for the state to be saved in a separate file, since sharing project files doesn't seem to make sense anymore. Could this be broken up or at least have a switch to disable this Jon?

Personally, I really don't give a shit about open buffers when switching between projects. I rarely edit the same file in my projects, because they are usually pretty large. Just using the QuickPanel is all I need. Although, I can understand that this may be useful in smaller projects.

BTW, has build support been added? I see there is plenty of build files for the different languages, but looks like they've been just carried over from Sublime 1.x without mods. i am guessing the Output Pane needs to be added for builds to be useful?

Thanks for adding project support though Jon!
Greg Williams
Atomic Embedded, USA
http://atomicembedded.com
willi297
 
Posts: 121
Joined: Wed Nov 18, 2009 8:29 pm
Location: Grand Rapids, MI, USA

Next

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 19 guests