Home Download Buy Blog Forum Support

Dev Build 2170

Re: Dev Build 2170

Postby facelessuser on Fri Jan 27, 2012 5:08 pm

match_selection is currently controlled by your caret color. Whatever color your caret is, that is the color of your match_selection and find results. Would be nice if it had its own setting.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: Dev Build 2170

Postby fred on Fri Jan 27, 2012 5:20 pm

simple chinese display on gentoo linux lastest upgrade work fine.

But I also can't use chinese input method by "ctrl+space" keymap. my chinese input method soft is "fcitx"
Box: Gentoo Linux
Sublime Version: Version 2 Linux 64 bit
Language: zh_CN.utf8

My Blog: http://fred.oracle1.com
My Website: http://www.sixdating.com
fred
 
Posts: 30
Joined: Fri Mar 18, 2011 8:22 am

Re: Dev Build 2170

Postby nick. on Fri Jan 27, 2012 5:35 pm

facelessuser wrote:match_selection is currently controlled by your caret color. Whatever color your caret is, that is the color of your match_selection and find results. Would be nice if it had its own setting.


Can I ask how you went about discovering this? Is it just in the .tmTheme file?
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Dev Build 2170

Postby facelessuser on Fri Jan 27, 2012 5:55 pm

nick. wrote:
facelessuser wrote:match_selection is currently controlled by your caret color. Whatever color your caret is, that is the color of your match_selection and find results. Would be nice if it had its own setting.


Can I ask how you went about discovering this? Is it just in the .tmTheme file?


Elementary Watson; I used the power of deduction. :)

I simply opened a couple of theme files and looked for when the match_selection region changed. In the Amy.tmTheme file I noticed the color to be a purplish color that did not match the default text, so I assumed it had to be theme controlled. I used simple reason and ruled out any code defined scopes and realized it had to be one of the basic them settings in the beginning and noticed the caret was also purple. After changing the caret color in my default theme file, I noticed that the match_selection/find results changed as well. By reason and deduction, I have determined the caret to be the controlling factor.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: Dev Build 2170

Postby nick. on Fri Jan 27, 2012 6:08 pm

Easier than I imagined! There was a post (or website) around that I read in regards to plugin development and it recommended browsing through the source code to see what commands are available. Since this was a new setting, I tried a search for 'MatchSelectionSetting' via Find in Files, with C:\ as the directory. I've tried similar searches in the past, and the results are only from the Find buffer itself (cached previous searches). Are such commands/settings normally public packages (ie, Python plugins) or are they part of sublime_text.exe?
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Dev Build 2170

Postby ChadW on Fri Jan 27, 2012 6:41 pm

Search box is fubared for me as well, WinXP64 on 64-bit standalone with vintage enabled.

It appears to be connected to Vintage mode, as the search window sill responds to Vintage bindings. Keys that should change to input mode (a, i) will sometimes go through into the box, but then it hops back into command mode.
ChadW
 
Posts: 21
Joined: Fri Sep 23, 2011 7:45 pm

Re: Dev Build 2170

Postby jburnett on Fri Jan 27, 2012 9:54 pm

It's awesome to see the match_selection feature get added! (I've found the WordHighlight package to be indespensible). Two requests fall out from this to make me move off WordHighlight though :)

-Don't require the selection to be non-empty (e.g. highlight "word-like" patterns that are under the point). Having to actually have a non-empty selection (that is on an exact word boundary no less) makes this a lot less "smooth/elegant" than WordHighlight.

-Allow the resulting highlights to be themed a bit. e.g. I have WordHighlight make the highlights have no outline, with a solid faint background. This makes the highlighting non-obtrusive for readability, but visible when you want to focus on them. The outlines make things look a bit more cluttered...

The combination of the above two features makes it so you just need to point at a variable and you see all the occurrences of it on screen right away, making manual search waaaaaaay less necessary, and skimming code a lot more fluid.

In any case - keep up the awesome work!
jburnett
 
Posts: 89
Joined: Wed Jul 27, 2011 9:23 pm

Re: Dev Build 2170

Postby facelessuser on Fri Jan 27, 2012 10:30 pm

jburnett wrote:-Don't require the selection to be non-empty (e.g. highlight "word-like" patterns that are under the point). Having to actually have a non-empty selection (that is on an exact word boundary no less) makes this a lot less "smooth/elegant" than WordHighlight.

-Allow the resulting highlights to be themed a bit. e.g. I have WordHighlight make the highlights have no outline, with a solid faint background. This makes the highlighting non-obtrusive for readability, but visible when you want to focus on them. The outlines make things look a bit more cluttered...


I agree with the 2nd point. The ability to better theme the selection would be nice.

I think the 1st point is good too as long as the option to disable/enable it is there as well; this way it could suite both camps. I kind of like the requirement of physically selecting the word because it only clutters my view when I ask it to, but I do understand the opposing view as well.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: Dev Build 2170

Postby willy1234x1 on Fri Jan 27, 2012 10:49 pm

With build 2170 I've noticed this white box on the line selection. How would I go about removing it?
Image
willy1234x1
 
Posts: 50
Joined: Thu Dec 22, 2011 7:55 am

Re: Dev Build 2170

Postby oriceon on Sun Jan 29, 2012 7:34 am

lineHighlight problem with 217x on Win 7 x64. Doesn`t highlight all line.

Image
oriceon
 
Posts: 56
Joined: Tue Jun 14, 2011 6:06 am

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 21 guests