Recent

Author Topic: CudaText Editor (written in Lazarus)  (Read 23535 times)

Alextp

  • Hero Member
  • *****
  • Posts: 901
    • UVviewsoft
CudaText Editor (written in Lazarus)
« on: August 11, 2015, 09:37:58 pm »

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: CudaText Editor (written in Lazarus)
« Reply #1 on: August 11, 2015, 11:01:06 pm »
Its clean and fast,I like it.
Congratulate Alex.

sin_dragan

  • Full Member
  • ***
  • Posts: 127
Re: CudaText Editor (written in Lazarus)
« Reply #2 on: August 12, 2015, 07:45:58 am »
Nice, I tried it, looks good. You shoud put language highlight - lexer to a main menu.
Windows 7 64 bit
Lazarus 1.4.1 (w/fixes) FPC 2.6.4 win32

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: CudaText Editor (written in Lazarus)
« Reply #3 on: August 12, 2015, 10:08:43 am »
Is it just a rebranded SynEdit component? What features does it bring to the table. What would make me decide to use it instead of say EditPad Pro [http://www.editpadpro.com/]? eg: Is the syntax highlighting configurable. Can I easily define new syntax highlighters. Does it do file navigation. Can I create my own file navigation schemes for new file formats. How good is its regex? Does it support external tools, code templates? Does it come with its own help file? etc etc.

Not to be funny, but the wiki doesn't give much information. It mentions a Sublime Text 3 like config, but to be honest, how often to people using text editors fiddle with configs. It is the features that make me more productive that I'm interested in.

I have probably seen 20+ SynEdit based text editors. None of them offer anything extra, other that looking slightly different (user interface wise) between each other. In that case I could just as well use Lazarus IDE to edit text files.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Alextp

  • Hero Member
  • *****
  • Posts: 901
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #4 on: August 12, 2015, 12:03:04 pm »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: CudaText Editor (written in Lazarus)
« Reply #5 on: August 12, 2015, 01:14:14 pm »
Nice, feels like SciTE + Sublime Text hybrid. Certainly incomplete, I don't expect great editor could be made in short time. A lot of things such as plugin and scripting are still missing, but the base is working great, with native UI (nicer than ST).

kazalex

  • New Member
  • *
  • Posts: 29
Re: CudaText Editor (written in Lazarus)
« Reply #6 on: August 12, 2015, 02:17:44 pm »
Unusable for large files (tested on pascal source file ~14000 lines) - very slow.

Alextp

  • Hero Member
  • *****
  • Posts: 901
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #7 on: August 12, 2015, 02:46:37 pm »
 
Quote
Unusable for large files (tested on pascal source
 
Wrap words is not fast. Turn off: see it's faster. (maybe later i make better)

kazalex

  • New Member
  • *
  • Posts: 29
Re: CudaText Editor (written in Lazarus)
« Reply #8 on: August 12, 2015, 03:02:41 pm »
Wrap words is not fast. Turn off: see it's faster. (maybe later i make better)
More likely minimap.

Alextp

  • Hero Member
  • *****
  • Posts: 901
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #9 on: August 12, 2015, 03:24:38 pm »
Minimap with synt-hilite is slow.I confirm. will see..

Blaazen

  • Hero Member
  • *****
  • Posts: 2782
  • POKE 54296,15
    • Eye-Candy Controls
Re: CudaText Editor (written in Lazarus)
« Reply #10 on: August 12, 2015, 06:32:19 pm »
IMO syntax highlight is not slow.

I tried pascal file ~3000 lines. CudaText was in fullscreen. Scrolling with or without syntax hightlight is slow (i.e. not very smooth;  Lazarus Source Editor is much smoother/faster as well as built-in editor of Double Commander).

Minimap is slowing it even more. What do you use in behind? It is known that Canvas.Pixels[x, y] is very slow.

Also order of main menu item is unusual. I would do File-Edit-Search-Selection-View-Settings-Help which is more standart.

But great job! CudaText has really many features.

P.S.: Minimap is feature I would like to see in Lazarus.
Lazarus 2.1.0 r61214:62238 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Alextp

  • Hero Member
  • *****
  • Posts: 901
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #11 on: August 12, 2015, 07:23:27 pm »
Blaazen
maybe you can try to optimize? paint is CanvasTextOut (unit with name *Canvas*).
You can install atSynedit, and open app/demo_editor. (It has no syntax hilite)

Alextp

  • Hero Member
  • *****
  • Posts: 901
    • UVviewsoft

Blaazen

  • Hero Member
  • *****
  • Posts: 2782
  • POKE 54296,15
    • Eye-Candy Controls
Re: CudaText Editor (written in Lazarus)
« Reply #13 on: August 13, 2015, 05:43:05 pm »
Quote
maybe you can try to optimize? paint is CanvasTextOut (unit with name *Canvas*).
I don't think that it's the problem. After all, this method is used also in Lazarus Source Editor which is pretty fast. This method calls some widgetset-specific methods (Lazarus doesn't render text itself).

How it is done inside CudaText? When I scroll one line down, is everything rewritten? Would it be possible to copy rectangle of rendered text (previous state) and paste it one line up, and only the new bottom line would be rendered?

Also, CudaText has some unpleasant inertia. When I hold key_down or key_up and scroll the text, the scrolling persists a while after releasing the key.
Lazarus 2.1.0 r61214:62238 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Alextp

  • Hero Member
  • *****
  • Posts: 901
    • UVviewsoft
Re: CudaText Editor (written in Lazarus)
« Reply #14 on: August 13, 2015, 05:56:04 pm »
Blaazen
Not sure inertia exists: I open dbgrids.pas (4500lines) and seems no, or maybe yes for key_down only