SynWrite (Syn2)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

2 bugs and 1 wish:

1. start syn in editor mode (RO off). Buttons for "Redo/Undo" and "Comment/Uncomment Line" are visible (active). Now go into any dialog window (print - page setup, options dialog, about dialog, lexer configuration,...). Close dialog window. Buttons for "Redo/Undo" and "Comment/Uncomment Line" are grey (inactive). I can't get them activated again.
If you have made changes before opening dialog window, then button "Undo" is active, but "Redo" cannot be activated anymore.
It is better this way: Redo/Undo not active at startup. Buttons only active after first changes are made.
Comment/Uncomment permanent active for these lexers where comment/uncomment is possible. Now buttons are active also for text documents. But without any function.

2. Open any document in syn. type something. press undo. press redo. now close syn. "Save changes to document.txt" appears twice.

Wish: Show "unsaved changes" status in Syn application title bar. In Notepad++ and Ultraedit there is a "*" shown behind filename, if any unsaved changes are made. It is the same as the filesave disc icon gets active/inactive. I find it very useful by working with Ultraedit before I changed to Syn. I would prever this in title bar:
(unsaved changes): Syn - c:\path\filename.txt*
(no unsaved changes): Syn - c:\path\filename.txt
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Close dialog window. Buttons for "Redo/Undo" and "Comment/Uncomment Line" are grey (inactive). I can't get them activated again.
i cant see it. They 're enabled here

Undo-redo- confirm.

3- I'll make it
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

1. fixed.
2. found bug in EC- fixed.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Here is a curious thing I found out by making a screenshot of my syn configuration by pressing ALT+PRINT.
In configurations dialog press ALT-Key. Now most of the text and options disappears. Same in page setup dialog.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

i know this issue- have code how to fix it.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

1. I have set F5 for reopen file. File with unsaved changes is closed without warning.
2. Print preview window - possible to close by ESC?
3. Print dialog CTRL+P: not possible in RO mode. ( I think it is same issue with my own defined shortcut key CTRL+SHIFT+P for print preview window. Also not possible in RO.)
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

1. fixed
2. Possible- added.
3. yes same issue.. (searched EC source for problem,not found)
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

yes same issue.. (searched EC source for problem,not found)
It would be great if you can find a solution. :)

I found another issue. Since b340 the editor window flashes at plugin startup. It seems that editor window is redrawn a second time. I have sent you a mail with more information.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

i can fix. Dont you mind if I flash editor on window resize? needed to redraw scrolls(in old beta scrolls not redrawn on resize)
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Yes at resize it flashes too. I didn't see flashing at resize, because I always work fullscreen. :) Probably reason for flashing issue at startup and at window resize is the same. But why flashing at startup is only visible for plugin and not for exe?

For me it is better without flashing. Redraw scrolls is fine too, but not with flashing.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Probably reason for flashing issue at startup and at window resize is the same
of course.
caused by code Scrollbars:= ssnone; Scrollbars:= ssBoth;
I can disable code, or can disable only for start
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

can disable only for start
That's the best solution. Flashing at resize is not a big issue. But flashing at startup is a bit annoying.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

in Delphi i see that after Ctrl-Up/dn scrolling cursor remains in screen. I try to do t'same..
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

In gnome theme icons for sort acsending/sort descending are swapped. It is my mistake. I haven't named icons correctly.
Post Reply