Re: Minimap test request

Peter Cheung <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <SG2PR01MB0348144BF6AFB456BB2ED4ABB5470@SG2PR01MB0348.apcprd01.prod.exchangelabs.com>
Hi

   Forgive my bad english, i read out the char color info block by block, not by every single char. Let me figure out the highlight occurrence, thanks
from Peter

Not sure why you are taking the color char by char I believe the API
provides bigger tokens which you could merge internally into a (color)
matrix. You might slow things down by going 1 char at a time.

Bookmarks shouldn't be hard, we have an API for that.

Highlight occurrence might be a bit more tricky. I can't remember if
we have a separate layer there.

Anyhow, very nice feature!

Also try to detect if we are under a "dark" theme. A lot of people are
using the Darcula LnF and you want your code map to fit in nicely.

--emi


On Wed, Feb 1, 2017 at 9:32 PM, Peter Cheung <[email protected]> wrote:
> https://youtu.be/-hnKQXVAA2w
YouTube<https://youtu.be/-hnKQXVAA2w>
youtu.be
and share it all with friends, family, and the world on YouTube.



>
>
>
> ________________________________
> From: Peter Cheung <[email protected]>
> Sent: Wednesday, February 1, 2017 9:52 PM
> To: [email protected]
> Subject: [platform-dev] Minimap test request
>
>
> Hi All
>
>    Can you test this for me
> http://plugins.netbeans.org/plugin/71031/?show=true ? The technique i use to
Minimap - NetBeans Plugin detail<http://plugins.netbeans.org/plugin/71031/?show=true>
plugins.netbeans.org
NetBeans Plugins



> generate a code map is : loop through the Elements in HighlightContainer,
> get the color of each character then generate a map. It is better than take
> a screen shoot of the code and minimize it to be the code map. Because each
> character is represented by a small box of color in the map, not just
> zooming the character and put it on the map. This make the code look more
> sharp and clear. Personally i think atom editor's has the best minimap and i
> will add these feature to beat them:
>
>
> 1) allow ignore all white space or tab in the beginning of line. Some people
> think this make the map sharper. I believe normal people overlook the map by
> seeing the tail of each line, so if i put white-box in the beginning of
> lines, just lesser sharp of the map.
>
> 2) allow people to ignore the white space or tab in the middle of line
>
> 3) change the scaling, longer line become longer, shorter line become
> shorter
>
> 4) build in several color theme (including gray theme), the color in atom
> editor minimap is same as the text on the editor, not good enough
>
> 5) Atom's minimap is scrollable, which mean you cannot overlook the whole
> code by look at the minimap. We are in retina display age, i think this
> should be cancel. So i just display the whole code minimap without scroll
>
> 6) highlight word occurrence, very useful i think. Instead of highligh those
> words in minimap, may be make it blink is better.
>
> 7) highlight the bookmark line, atom has it, but i would like to support it
> too.
>
>
> thanks
>
> from Peter
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.