* * *

Author Topic: ATSynEdit: cooking feature  (Read 893 times)

Alextp

  • Sr. Member
  • ****
  • Posts: 405
    • UVViewSoft
ATSynEdit: cooking feature
« on: December 22, 2016, 06:56:50 pm »
The Brackets app has such feature, inline editors -
https://www.andrewmunsell.com/wp-content/uploads/2015/06/04.png

Cannot do it now, but made step to it. this is feature in ATSynEdit, gaps.
Picture in attach.
The doc about gaps is here, describes some details about it -
http://wiki.freepascal.org/ATSynEdit#Gaps_object

The code in trunk has it (at GH)
I want to use it, to preview pictures in my app, as small reduced pic.

Alextp

  • Sr. Member
  • ****
  • Posts: 405
    • UVViewSoft
Re: ATSynEdit: cooking feature
« Reply #1 on: January 31, 2017, 07:28:46 pm »
Update.

Finder class (for ATSynEdit) now extended -

- supports option InSelection (do the find/replace only in selection)
- and now this InSelection opt extended. It now supports several selections - for carets,
which have selections. This supported for Count-all, Mark-all, Replace-all.

- for Find its not  needed to support InSelection, coz FindNext does selection of found text;
so smaller selection made, so InSelection cannot work
« Last Edit: January 31, 2017, 07:30:20 pm by Alextp »

Alextp

  • Sr. Member
  • ****
  • Posts: 405
    • UVViewSoft
Re: ATSynEdit: cooking feature
« Reply #2 on: February 16, 2017, 04:40:04 pm »
Update

now mouse clicks are configurable via array of actions.
Click, Shift-click, Ctrl-click, Ctrl+Shift-click, middle click, right click.

In code config filled in InitMouseActions() like this--

Code: Pascal  [Select]
  1.   Add(cMouseActionClickSimple, [ssLeft]);
  2.   Add(cMouseActionClickSimple, [ssLeft, ssAlt]);
  3.   Add(cMouseActionClickSimple, [ssLeft, ssAltGr]);
  4.   Add(cMouseActionClickRight, [ssRight]);
  5.   Add(cMouseActionClickAndSelBlock, [ssLeft, ssShift]);
  6.   Add(cMouseActionMakeCaret, [ssLeft, ssXControl]);
  7.   Add(cMouseActionMakeCaretsColumn, [ssLeft, ssXControl, ssShift]);
  8.   Add(cMouseActionNiceScrolling, [ssMiddle]);
  9. end;
  10.  


Alextp

  • Sr. Member
  • ****
  • Posts: 405
    • UVViewSoft
Re: ATSynEdit: cooking feature
« Reply #3 on: March 16, 2017, 09:41:25 pm »
Update

2 new properties added
- OptMouseDragDropCopying - allow to copy with dragdrop with Ctrl key
- OptMouseDragDropCopyingWithState - key which does copy, e.g. ssCtrl/ssAlt

Alextp

  • Sr. Member
  • ****
  • Posts: 405
    • UVViewSoft
Re: ATSynEdit: cooking feature
« Reply #4 on: May 25, 2017, 11:40:28 am »
Update.

Finder class very much optimized. Now mass-find and mass-replace do 2 stages:

1) DoCollect methods collect all matches to list. they can also show replace-confirm for mass-replace.
2) Operation takes resulting list. Mass-replace reads list from end to begin and does mass-replace in one go. w/o updating buffers.

So mass-replace works 3 seconds instead of 70 seconds before (on big test file).
« Last Edit: May 25, 2017, 11:42:50 am by Alextp »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus