Home Download Buy Blog Forum Support

Dev Build 2103

Re: Dev Build 2103

Postby sandover on Tue Aug 23, 2011 5:46 pm

While I do appreciate some of the design ideas behind ST2's approach to projects, I still believe that the project system is overall quite complex, and that the complexity isn't adding value. I'd like to offer a little constructive criticism.

The obvious comparison point is TextMate. And I know you've probably thought about this more deeply than I have, since I've only been a user, and you've actually had to do the implementation work. But look what the TextMate project system offers:

1. Instant "project-lite": just run 'mate .' in some directory and work with that directory's files in a new window. This is what people want at least 75% of the time. No project file at all. Note that it's easy to open as many of these windows as you want.

2. Next step: the ability to turn that view into a project file, by doing "save project as", under the File menu. This is where the power users get started. Once a project exists, it's easy to get back to, because "open" a folder, "open" a file, or "open" a project file in TextMate are all mapped to the same "open" in the file menu. Any number of projects can be open at a time. Simple.

3. Ability to set up a file & folder pattern for a project, to do filtering. Power users are now fairly happy.

With these 3 features, the system of setting up and accessing projects is simple, understandable, robust, and it pleases most folks. The "File" menu contains all the needed operations, by the way, which isn't many.

(Aside about searching: the 2 kinds of search scope in Textmate (search in file & search in project) are probably all that's really needed. I'm not sure that ST2's extra scopes ("search in open files" & "search in open folders") add value that outweighs the clutter of their presence.)

I would seriously consider adopting something much more like TextMate's project approach as a starting point, and then seeing if there are ways to improve it. (You may not find that it needs a lot of improvement, unless there is something truly new to offer, which I personally haven't seen yet.)

Having said all that: fantastic software so far and thanks for your efforts! This is turning into a great editor that could really have a huge user base.
sandover
 
Posts: 12
Joined: Tue Aug 23, 2011 5:17 pm

Re: Dev Build 2103

Postby wbond on Tue Aug 23, 2011 6:20 pm

sandover wrote:1. Instant "project-lite": just run 'mate .' in some directory and work with that directory's files in a new window. This is what people want at least 75% of the time. No project file at all. Note that it's easy to open as many of these windows as you want.

2. Next step: the ability to turn that view into a project file, by doing "save project as", under the File menu. This is where the power users get started. Once a project exists, it's easy to get back to, because "open" a folder, "open" a file, or "open" a project file in TextMate are all mapped to the same "open" in the file menu. Any number of projects can be open at a time. Simple.

3. Ability to set up a file & folder pattern for a project, to do filtering. Power users are now fairly happy.


For #1, please see http://www.sublimetext.com/docs/2/osx_command_line.html if you are on OS X. Linux users get this via the sublime_text command if their Sublime Text 2 folder is in their path.

For #2, see the Project menu and select "Save Project As…"

For #3, it sounds like this was just implemented in build 2103, however I have not actually used it.
wbond
 
Posts: 527
Joined: Mon Feb 28, 2011 5:33 am

Re: Dev Build 2103

Postby alanandersen1 on Tue Aug 23, 2011 6:20 pm

@sandover
Its not specifically stated in the forum patch notes (it does on the dev download page), but as of this release, you can open a folder on the command line now in a "project-lite" fashion.

*Passing folders on the command line will open them in a new window by default

Then you can save it as a project.
File and folder patterns can then be added to the .sublime-project file with file_exclude_patterns and folder_exclude_patterns.

Guess I don't see which of those features is missing.

Edit: wbond beat me to it :<

Edit 2: btw I'm using windows 7 64 bit and the command line opening works for me
alanandersen1
 
Posts: 10
Joined: Mon Jul 25, 2011 4:45 pm

Re: Dev Build 2103

Postby MrMartineau on Tue Aug 23, 2011 6:26 pm

I think there is a memory leak with this version. I have only a few small html files open... here's a screengrab of Activity Monitor (the CPU in this grab is really low but it had been consistently at around 100%): http://cl.ly/9XfK

Let me know if you need more info
@MrMartineau || Setup Sublime Text quickly: Find out all you need at https://github.com/mrmartineau/SublimeTextSetup
MrMartineau
 
Posts: 78
Joined: Thu Jul 28, 2011 8:35 am

Re: Dev Build 2103

Postby jps on Tue Aug 23, 2011 10:46 pm

MrMartineau wrote:I think there is a memory leak with this version.

What plugins do you have installed? I'm not seeing any memory/CPU usage like that myself, btw.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2103

Postby MrMartineau on Wed Aug 24, 2011 2:46 pm

I think I figured out the problem, I checked the console & it said jshint was not loading or something. I found it within the SublimeLint package, then removed the package & it seems to be fine now.

The other major packages I am using are: Package Control, SublimeCodeIntel & ZenCoding.

I'll update this if the problem occurs again
@MrMartineau || Setup Sublime Text quickly: Find out all you need at https://github.com/mrmartineau/SublimeTextSetup
MrMartineau
 
Posts: 78
Joined: Thu Jul 28, 2011 8:35 am

Re: Dev Build 2103

Postby sandover on Wed Aug 24, 2011 5:20 pm

wbond wrote:
sandover wrote:1. Instant "project-lite": just run 'mate .' in some directory and work with that directory's files in a new window. This is what people want at least 75% of the time. No project file at all. Note that it's easy to open as many of these windows as you want.

2. Next step: the ability to turn that view into a project file, by doing "save project as", under the File menu. This is where the power users get started. Once a project exists, it's easy to get back to, because "open" a folder, "open" a file, or "open" a project file in TextMate are all mapped to the same "open" in the file menu. Any number of projects can be open at a time. Simple.

3. Ability to set up a file & folder pattern for a project, to do filtering. Power users are now fairly happy.


For #1, please see http://www.sublimetext.com/docs/2/osx_command_line.html if you are on OS X. Linux users get this via the sublime_text command if their Sublime Text 2 folder is in their path.


Using the current (or recent) builds, here's something to try:

1. Close ST2 -- with project X open
2. cd into folder A and do "sublime_text ."
3. Result: ST2 opens project X, including any files that were open, and adds folder A into it under the "folders" area. Was that expected/intended?

Now something else to try:

1. Close the project, make it go away, so there are no files of folders in the sidebar. (Pop quiz: how? There's no "close project" command)
2. Close this "clean" edition of ST2
3. cd into folder A and do "sublime_text ."
4. Result: the straightforward and expected behavior. BUT...
5. Now close ST2.
6. cd into folder B and do "sublime_text ."
7. Result: both folder and A and folder B are in the sidebar! Why??

In order to predict what ST2 is going to do at any point here requires quite some real thinking. If you have spent any time with Textmate, you know that the mental model around projects and folders is much more straightforward. I'm claiming that that is incredibly valuable -- and has the advantage of probably being much easier to implement than ST2's project feature with its many menu commands (with commands like "close project" still MIA).
sandover
 
Posts: 12
Joined: Tue Aug 23, 2011 5:17 pm

Re: Dev Build 2103

Postby Anomareh on Wed Aug 24, 2011 7:18 pm

Running into an oddity with the naming of the sublime-workspace file. My project file is named .sublime-project and it's naming the workspace file .sublime-project.sublime-workspace. Is this intended? If it is would it be possible to have it named .sublime-workspace instead?
Anomareh
 
Posts: 222
Joined: Thu Oct 01, 2009 7:32 pm

Previous

Return to General Discussion

Who is online

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