Sublime Forum

Sublime 2 Wishlist

#1

I know Sublime 2 is in Alpha still, and there are probably things that youā€™re already planning on doing, so a lot of this will be a bit redundantā€¦ Or perhaps I just missed something all together. The editor already knocks my socks off, but I would like to make a complete list of things I feel would ā€œcompleteā€ the editor. So I apologize in advance if some of these things are ā€œduh!ā€.

  1. Shortcuts (key bindings): Getting some of the shortcuts in-line with some of the other applications like XCode or TextMate. Typically applications on the Mac tend to use the same shortcuts for the same things. Just like Linux buffs we love to use the keyboard too. For example Command-L is a shortcut in both Xcode and Textmate that brings up a small dialog to go to a specific line/character number (most useful, line number). I know that you could probably customize your key-bindings, but the default ā€œout of the boxā€ should be what Mac users are already familiar with. Another example is for column select the Mac uses Option not Control (the difference is Textmate was the only app that allowed you to type over, but in Xcode you could copy). By doing this you minimize the learning curve for newcomers and they can jump right in and start using the editor.

  2. Conveniences: Many things are tucked away in the menu bar. It would be nice if in the bottom bar there were certain menu items that were available, like language select, tab size, symbols, and snippets (TextMate just replicated the bundle menu. Would be better to show the snippets of the currently selected/scoped language). Ruler size would be a good one as well (love that feature!). So would line endings CRLF, CR, LF.

  3. A ā€œbundle editorā€. Language editing in TextMate was a pain. I would prefer just to edit the XML directly if I had to do it by hand. But the key is the ability to add/remove things in the bundle, similar to how TextMate does it, but less annoying. Would also be cool if each ā€œpackageā€ was actually in a package like a .App or tmbundle.

  4. Iā€™m not sure if I see a way to customize color scheme, but this is something TextMate never had: Define default colors in bundle. The trouble with TextMate is it had ā€œcommonā€ colored names that each bundle would use like functions or comments. When you set that color it would be used on every bundle. Thatā€™s ā€œfineā€ but then you had unique elements like Markup which was html specific. If you were making a custom bundle and you wanted your own custom name colored you had to add it globally in Preferences. Itā€™s not portable at all. It would be nice if you could specify in the language file which names are to be colored, and what their default color is. When you customize the color scheme it would show those elements depending on the selected language. Each change you make could be ā€œglobalā€ or ā€œlanguage specificā€ (or just turned off so the bundleā€™s default colors are used). When you specify default colors in the bundle it would probably be a hexcode, but when you customize ā€œglobalā€ or ā€œlanguage specificā€ colors it would be similar to TextMateā€™s ā€œFontā€™s & Colorsā€, just not part of preferences (because it can be language specific).

  5. For those of us migrating from TextMate, a wizard to import TextMate bundles (in full or in part).

  6. Preferences that can be visually editable (not just in a text file), and a way to reload those preferences without having to close/open the editor. I know that there could potentially be a ton of settings and it wouldnā€™t make sense to make an interface for all of them, but something like Firefoxā€™s about:config would be awesome.

  7. I love split pane view because you can edit two files side by sideā€¦ But what about editing the same file, as in looking at two different parts of the same file? (Similar to Terminal in Snow Leopard or Coda - they do it the same way - an icon at the top of the scroll bar) This isnā€™t a ā€œdie forā€ feature, but it would be awesome to have. At the very least an easier way to toggle split view without having to go to View -> Layout would be cool. Perhaps a discreet icon somewhere that opens up a visual menu demonstrating each view would be helpful (icons that show each view rather than words).

  8. I like the side bar. I like the fact that files youā€™re working on show up at the top. I also like the fact that you can add any folder, even if itā€™s already there as a sub folder of another folder. This allows you to work on two key areas without having to hunt for the files.

Here are some things, based on my experience so far:

  • There seem to be two parts of the side bar: ā€œActive Filesā€ (tabs open) and ā€œFoldersā€ (which is pretty much your project). I feel that having ā€œactive filesā€ in the side bar is a bit redundantā€¦ Whatā€™s the point if you can see the tabs? I know that when you have many tabs they get smaller and become impossible to read, but I really like what FireFox does: A menu on the right of each tab bar that shows each tab. I think a lot of editors do this as well. You also donā€™t need to show every single tab and squish them to death. At some point (where the names are still readable) the tabs should start to ā€œfall offā€. When they do you could have arrows to ā€œslideā€ them over, or view them all through the menu. What it comes down to is I donā€™t think ā€œactive filesā€ should be part of the side bar, at least not mixed in with the project files. If people prefer them to be on the side verses tabs it should be a separate scrollable side bar that stacks on top of the project side bar.

  • With having the ā€œprojectā€ part being ā€œthe side barā€ I will refer to the 2008 missing drawer for TextMate: github.com/jezdez/textmate-missingdrawer. It isnā€™t ā€œperfectā€ and a bit buggy, but it shows ā€œthe lookā€. Basically itā€™s looks a lot like XCodeā€™s side bar, but has literal folders and ā€œgroupsā€ (yellow folders). Basically what Iā€™m going for is adding multiple literal folders in the project (TextMate can only have one main one, even with the plugin) and having ā€œGroupsā€ which are virtual folders. You could drag an actual folder/sub-folder/file(s) into the Group and it would copy their references into the group. So essentially groupā€™s are essentially a ā€œvirtual work spaceā€ (files arenā€™t actually open). When you press the delete key on a referenced file it would simply delete the reference. On the actual file it would ask you if you wanted to delete the file. On a top-level folder it would ask you if you wanted to delete it or just the reference. On a group it would ask if you wanted to delete the reference. Right clicking would give you the options. From the actual/referenced file/folder you could rename the file by pressing enter or choosing it from a right click menu. Each file would have that file typeā€™s icon. Other items in the right click menu would be ā€œReveal ā€œfilenameā€ in Finderā€ and for folders ā€œOpen ā€œfolderā€ in Finderā€.

  • With the above mentioned project side bar the ability to drag/move file, delete, rename, copy, duplicate, etcā€¦

  1. Would be cool if the ā€œSelect Moreā€ (Command-D) option would only select words within the scope of a function or class (sometimes you may want to do the whole file, or just within the a for loop, or function, or class).

  2. Do any of these exist? ā€œDocumentation for wordā€ (takes you to php.net), ā€œDocumentation for function (tooltip)ā€ (shows you function arguments), ā€œCompletions for wordā€¦ā€ (tab through function arguments like a snippet).

  3. ā€œSpaces to Tabsā€ ā€œTabs to Spacesā€ and shortcuts (Command-L, Command-Shift-L) for converting case similar to TextMate. More shortcuts for things like Marks.

  4. Block folding through tmlanguage (I know this one was mentioned)

  5. Click to add/remove bookmarks.

These are pretty much all the things I can think of right now as far as the application itself. My biggest concern is just keeping this editor going and keeping the developers motivated. I love TextMate and Allan did a great job, but it really hasnā€™t been updated since Tiger (and Leopard and Snow Leopard has come out, with Lion on the horizon). I spent about $60 on his editor years ago, and I would have gladly spent another $60, or more, for TM2 (which after 4-5 years, to this day, never came out). Iā€™m not sure how you guys are planning on doing your licensing, but I just want to let you know Iā€™ll gladly pay an upgrade fee for Sublime 3 if/when it comes out. Hell, Iā€™d be even interested in paying a subscription $5 per month to cover the cost of future versions. TextMate was my swiss army knife of development and it was very important to me. Up until now nothing has come close. Sublime has filled that void and I want to do everything I can to support it. The editor is the most important part of what I do, and Coda and Espresso just never matched up to the power of TextMate. I feel that not only does Sublime 2 match TextMateā€™s power, but it surpasses it. And that is really exciting/encouraging to see.

0 Likes

#2

Iā€™ve posted #8 here: sublimetext.userecho.com/feedback/22740-search/ (I simplified the description. I hope Iā€™m not too confusing)

(Was going to edit my post, but I got a memory exhaustion error when trying to edit)

0 Likes

#3

+1 for 5)
:smile:

0 Likes

#4

These are all really good suggestions. A bundle import (5) would have been lovely and saved me a bunch of ā€œinternet researchā€ when I first installed Sublime.

Visual preferences would be nice as well (6). Personally I canā€™t quite figure out why there are both global and user preferences, when 90%(?, yes I made that up) of the time you want to use user preferences so upgrades donā€™t overwrite them, and the workflow for adjusting a setting is

  1. look in the global preferences for the setting
  2. copy the setting you want to change
  3. open the user settings
  4. paste the setting
  5. adjust the setting to your preference
  6. save the user settings.
    I havenā€™t noticed needing to restart in most cases, but if thatā€™s true add a step 7. Itā€™s very clunky, even if the concept of text settings in a text editor is kind of neat and appealing. Thereā€™s no real point in even having the global settings accessible to the user through a menu, other than not wanting to duplicate the same code in the user settings. I might be wrong in my assumptions though.
0 Likes

#5

+1 for #8, though I would offer some modifications.

Rather than have a separate pane for files that are currently open, as seems to be the norm for many text editors, how about something a little different and much more useful. Simply place the little x for the close icon next to the name of the open file in the ā€œFoldersā€ section.

It would be even better if the Files view could be done away with altogether, simply showing files in folders unrelated to the current project under lists for their containing folders. Thus, a right-click option could be added to easily add those new folders to the project. Furthermore, unsaved files could go under an ā€œunsavedā€ category, to alert the user to files which have yet to be saved to the disk.

0 Likes

#6

Number #7 is already there: File -> Clone File.

0 Likes

#7

This is a great list, number 8 and 12 really have my vote. I just got a mac and am very disappointed with textmate, but Sublime is really good and with these features will be perfect!

0 Likes

#8

As a convert to the Mac in the last 12 months I still find that Iā€™m missing Textpad - less, much less now that Iā€™ve found Sublime Text 2 though! Having settled in and customized a few things I have a couple of suggestions that would make my like easier. The first is the use of the left pane - Iā€™m often working on projects that seem to involve having a couple of dozen files open at a time and at that point it becomes frustrating looking for files in the folders section. The second is the fact that snippets are hidden away. Textpad and Komodo edit solves both of these problems by having tabbed panes that can be used to hold lists - files, folders, snippets, projects etc etc. The Komodo way of doing this seems the best and there is some spare margin space in the display of files and folders which would let this be achieved without increasing the need for screen real estate. In any case, a single key show/hide panel would fixe this it it was a problem. Thanks to everyone for make Sublime TExt 2 well ā€˜sublimeā€™!

0 Likes