Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

MiniDoc

<< < (2/14) > >>

MortenMacFly:
Really nice one. In fact I started the same some time back but never finished it. GREAT! That was a feature I missed hardly from notepad++. This should be merged with svn in the future... Do you have plans to do so? What is missing/what feedback do you need?

MortenMacFly:
...I've "ported" this to wx30 and wx30 64 bit on Windows.. If you transfer the sources to contrib plugins in the SVN tree I can merge them...

oBFusCATed:
Morten you can always fork his repo and then make pull request. :)

danselmi:

--- Quote from: MortenMacFly on August 08, 2014, 05:25:21 am ---Really nice one. In fact I started the same some time back but never finished it. GREAT! That was a feature I missed hardly from notepad++. This should be merged with svn in the future... Do you have plans to do so? What is missing/what feedback do you need?

--- End quote ---
Feedback I need/wish:

* is it stable? (I am not sure about that, possibly it makes infinite loops. But I can not reproduce it.)
* Should the MiniDoc sync to the main Doc so it automatically scrolls so that the grey rectangle is visible?
* On a click in the minidoc it makes the clicked line the first line in the main doc. Should it be become the line in the center?
* When to set the focus to the MiniDoc, to be able to scroll in the MiniDoc (without changing position of the main Doc). Right click?
* What should be configured? (Any volunteers?)
* The constants for the Indicators (highlight occurences and incremental search) in MiniStyledTextCtrl::MiniStyledTextCtrl() are bad to maintain.
 (copy from Occurences highlighter and incremental search plugins). By the way is there a need for a central instance where a plugin can register for an Indicator?
* Given by the decision to use a cbStyledTextCtrl to show the miniature, it is not possible to disply long documents without a scrollbar. Bad?
If we have some feedback about stability we can integrate it into the repo.

regards danselmi

MortenMacFly:

--- Quote from: danselmi on August 08, 2014, 11:16:17 am ---
* is it stable? (I am not sure about that, possibly it makes infinite loops. But I can not reproduce it.)
--- End quote ---
Well I am using it from no on - so far no problem on Windows. I'll tell if I see something different.


--- Quote from: danselmi on August 08, 2014, 11:16:17 am ---
* Should the MiniDoc sync to the main Doc so it automatically scrolls so that the grey rectangle is visible?
--- End quote ---
I didn't miss this feature so far but if you say so - it might be nice. However, This sounds to me likt it should be an option.


--- Quote from: danselmi on August 08, 2014, 11:16:17 am ---
* On a click in the minidoc it makes the clicked line the first line in the main doc. Should it be become the line in the center?
--- End quote ---
Again: I am happy with as it is so I don't see an urgent need for this, but if - an option. :-)


--- Quote from: danselmi on August 08, 2014, 11:16:17 am ---
* When to set the focus to the MiniDoc, to be able to scroll in the MiniDoc (without changing position of the main Doc). Right click?
--- End quote ---
Right clieck sounds obvious. Alternatively with mouse wheel if MiniDoc is under the mouse cursor (similar like we do it with editor tabs).


--- Quote from: danselmi on August 08, 2014, 11:16:17 am ---
* What should be configured? (Any volunteers?)
--- End quote ---
* Size of the font in the minidoc
* any specific behaviour option
* Colours (I think you are already using colormanager, right?)

I can try if you like, but currently my time is really limited due to work an family (we have moved...). However, please move it to SVN before. I don't really want to use an external GIT and we keep the history in SVN. We have enough unsynchronised bits and pieces all around different GIT places already and I am afraid having so many forks will lead to trouble sooner or later. We could NOT add it to the full build system (workspace, automake...) for now and do it if its ready, if you like or use a branch (which would be a little overdone for an independent plugin though...).


--- Quote from: danselmi on August 08, 2014, 11:16:17 am ---
* The constants for the Indicators (highlight occurences and incremental search) in MiniStyledTextCtrl::MiniStyledTextCtrl() are bad to maintain.
 (copy from Occurences highlighter and incremental search plugins). By the way is there a need for a central instance where a plugin can register for an Indicator?
--- End quote ---
I've seen this, its not nice. You proposal would be a solution but required implementation and rewrite of the other plugins as well.


--- Quote from: danselmi on August 08, 2014, 11:16:17 am ---
* Given by the decision to use a cbStyledTextCtrl to show the miniature, it is not possible to disply long documents without a scrollbar. Bad?
--- End quote ---
I don't think so. If the font size is an option you can minimize it. But at some point for VERY long documents it does not make sense to minimise it even further. So an option to select the minimal font size and therefore zoom level is good, but no more. (These are my feelings.)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version