Home Download Buy Blog Forum Support

20091114 Beta

Re: 20091114 Beta

Postby ilya on Sat Nov 14, 2009 2:49 pm

jps wrote:I'm keen for feedback on the new find panel - its current behaviour isn't final.

New find panel is great! Image

Find panel can accept multi line inputs

How about multi line in replace panel? Image
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: 20091114 Beta

Postby vim on Sat Nov 14, 2009 4:02 pm

the find panel is really cool!

the multiple line options is also very blessed :)
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: 20091114 Beta

Postby ilya on Sat Nov 14, 2009 4:52 pm

Hm… Wrapping selection with tag+tab now not working (HTML).

For example, select some text, type tag and press tab, should have:
Code: Select all
<strong>Some text</strong>


But now have only this:
Code: Select all
<strong></strong>


:(
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: 20091114 Beta

Postby jps on Sun Nov 15, 2009 12:30 pm

sublimator wrote:Is it possible to use outlines with the View.addRegions et al API?


Almost, I'll expose it properly for the next beta
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20091114 Beta

Postby jps on Mon Nov 16, 2009 5:24 am

It's Alt+Enter now
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20091114 Beta

Postby ilya on Mon Nov 16, 2009 6:15 am

ilya wrote:Hm… Wrapping selection with tag+tab now not working (HTML).

I am the only one who have this problem? Image Image
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: 20091114 Beta

Postby vim on Mon Nov 16, 2009 6:54 am

ilya wrote:
ilya wrote:Hm… Wrapping selection with tag+tab now not working (HTML).

I am the only one who have this problem? Image Image

i can confirm that.
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: 20091114 Beta

Postby SteveCooperOrg on Mon Nov 16, 2009 10:32 am

Hi, Jon. I have a few points;

First, I like the new panel. It seems more coherent to collapse them into one. I only ever used incremental search anyway. I also like the visual style of the outlines; it's nice to see what's coming. Is it possible to change the colours here? They are a little hard to see with my colour scheme and I'd like to highlight them a little more. The tmTheme files support a customisable 'selection' property, like this

Code: Select all
      <dict>
         <key>settings</key>
         <dict>
            <key>selection</key>
            <string>#0000dddd</string>
         </dict>
      </dict>


Is there one for these 'pre-found' regions?

Second, I've got ctrl+i burned into my brain now, though, and it's the same mapping I use in Visual Studio, so I'm trying to re-establish the the old mappings. I'm almost there, but haven't found the perfect match yet. For those who want to copy, this seems to be working pretty well for me;

Code: Select all
  <binding key="ctrl+i" command="showPanel find"/>
  <binding key="ctrl+i" command="findUnder">
      <context name="isPanelVisible" value="true"/>
  </binding>


Only problem is the 'isPanelVisible' context seems a bit broad, and will work if you've got, say, the replace panel open. The context

Code: Select all
<context name="option" value="isFindWidget"/>


Doesn't work as I expected, because when you do the find, the focus moves into the main window and I think the isFindWidget option is set to false; this means that hitting ctrl+i over and over does this;

> find window/next match/find window/next match

rather than

> find window/next match/next match/next match

Third, I'm guessing the find/replace panel is going to be updated to be incremental too? The ability to see what's going to get found/replaced would be really nice.

Lastly, (I promise,) is the question of what appears in the panel when you open it. The current behaviour seems to be to fill it with the current selection. I don't know if it's always been like that, but thinking about it now I wonder if it might be nicer to leave it with whatever it had in there last time. It's worth noting that when I have a regex in the box (say, 'l...') and that happens to have selected the word 'like', when I re-open the panel it is now searching for the literal 'like' and not my original pattern 'l...'. This can destroy possibly hard-crafted patterns, so I'd prefer that panel to keep whatever content it had before.

That'll teach you to ask for feedback.
Maybe what you're looking for is at the http://www.sublimetextwiki.com
SteveCooperOrg
 
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am

Re: 20091114 Beta

Postby jps on Mon Nov 16, 2009 11:31 am

First up, the easy ones:

* Colours aren't configurable, but I'll change that for the next beta
* Plan is to give the replace panel a similar makeover, to preview the search results and allow multi-line inputs

re: what slurping up the selected text when opening the find panel, I think you're right, that's generally the wrong thing to do. I think having a separate key binding to copy the current selection into the find buffer would be better.

imo, there are a few situations where the find panel behaviour is debatable:
* What should happen when you press enter? Currently, it goes to the next match, where the incremental find panel closed the panel.
* What should happen when pressing ctrl+f (or whatever it's bound to) again when the find panel is already open and focussed? Currently it closes the find panel, where as with the incremental find panel it did a find next.
* What should happen when it's initially opened: start empty, start with the selected text, or start with the last text. Currently it uses the selected text; the incremental find panel always started empty.

Changing key bindings alone can't cover these options properly, so I'll likely make them explicitly configurable. What the defaults should be is still up in the air though.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20091114 Beta

Postby jps on Mon Nov 16, 2009 11:32 am

ilya wrote:Wrapping selection with tag+tab now not working


I suspect this will be the zen coding plugin, tag+tab will work out of the box with a clean packages directory.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

PreviousNext

Return to General Discussion

Who is online

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