Home Download Buy Blog Forum Support

Thoughts on ST2... Some ideas, some questions...

Thoughts on ST2... Some ideas, some questions...

Postby kennonb on Thu Dec 15, 2011 6:27 pm

Ok, so I've been using Sublime Text 2 for about 2 months now as my main editor. Took me a while to get things transitioned over, but I think I'm in a good place now. Only a few niggling issues that I haven't found answers for, and maybe that's because there aren't answers for them. :) But I figured some of you all may be able to point me in the right direction.

So my issues so far:

1. Sidebar

    * Is there anyway to make it not show file contents on selection (when navigating with the keyboard)? Or a way to exclude filetypes from the "peek" view?
    * Are there any hooks into file managing when navigating with the keyboard? For instance, I'm arrowing through a folder structure and see that I want to rename a file. I have to leave the keyboard and right click to rename. I think TextMate 2 does this well: Enter to rename. CMD+Down Arrow to open. CMD+Delete to move to the trash.

2. Code Folding

    * I find the code folding "ok". It works well enough that I can get by, but ideally I think this is another feature TextMate has nailed.
    * I wish there was one toggle key for open/close when you're even near a toggle point.
    * I'd like the folded block to shrink all the way upon itself. Right now it leaves the closing tag on it's own line, but it'd be great if it compressed it all to one line.

Example from TextMate:
Image

3. Indention

    * Overall this is perfect, but I'd love to be able to control how much indention there is on a hanging line, and also make sure that tags are automatically wrapped (if they'd be split in between opening/closing). This is something I think Coda does perfectly.

Example from Coda:
Image

---

So, basically, nothing major... just some niggles here and there. Overall, I love Sublime Text 2. I think you, jps, have done a fantastic job on this editor. It has everything I could need with, sometimes, too much extensibility. Hah! :shock:

And, if these are things that are widely known... I apologize. I tried searching, but just didn't come up with much.

Thanks for any/all help, & thoughts!
kennonb
 
Posts: 9
Joined: Sun Sep 18, 2011 10:48 pm

Re: Thoughts on ST2... Some ideas, some questions...

Postby sublimated on Sun Dec 18, 2011 5:48 pm

re #1: look at binary_file_patterns in global settings

I too think the code folding implementation rather odd. I don't like it that the code folds into a single char that you can delete like any regular char. 95% of the time I do not want to just delete a block of code like that. It also looks too much like an = sign. I would prefer some kind of wider graphic or a block of multiple characters, like [..]. It should be selectable in some way and you need to select it before being able to delete it. Also, there should be some indication on the gutter.
sublimated
 
Posts: 13
Joined: Sun Dec 18, 2011 3:58 pm

Re: Thoughts on ST2... Some ideas, some questions...

Postby C0D312 on Sun Dec 18, 2011 6:59 pm

* Is there anyway to make it not show file contents on selection (when navigating with the keyboard)? Or a way to exclude filetypes from the "peek" view?


That's not possible, however, with the new hexidecimal encoding, this shouldn't be a big problem because even large png files open quickly, so no harm done.

* Are there any hooks into file managing when navigating with the keyboard? For instance, I'm arrowing through a folder structure and see that I want to rename a file. I have to leave the keyboard and right click to rename. I think TextMate 2 does this well: Enter to rename. CMD+Down Arrow to open. CMD+Delete to move to the trash.


I really like that idea. I rarely use the keyboard navigation for the sidebar; I just don't see a need since I have the GoTo anything. I use Tito's sidebar enhancements to add some functionality to the sidebar, but that still involves mouse navigation, so I usually just keep the sidebar hidden.

I wish there was one toggle key for open/close when you're even near a toggle point.


This is possible if you use Selection > Expand to Scope. Just expand the selection until you have what you want to fold then press "Fold." Alternatively, you can Select by tag, indentation, or brackets.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Thoughts on ST2... Some ideas, some questions...

Postby kennonb on Mon Dec 19, 2011 1:59 pm

Thanks for the helpful replies! :)
kennonb
 
Posts: 9
Joined: Sun Sep 18, 2011 10:48 pm


Return to General Discussion

Who is online

Users browsing this forum: Saadq and 27 guests