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
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Matthias030 wrote:You can press Ctrl+Mouseclick on URL to open it in default browser.
Ha, I didn't know that and it didn't cross my mind to try that. Thanks :)! It even works with e-mail addresses. An context menu option would be nice, though, most notably for the mouse users ;).

MfG Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
schittli
Member
Member
Posts: 101
Joined: 2004-01-06, 16:13 UTC
Location: Switzerland, Biel Bienne

Post by *schittli »

Hi Matthias030

Thanks a lot for your fast answer!, I opened the Viewer, selected Help - and got Total Commander's help. Therefore I thought that there is no help for this viewer.

But now, I tried to uncheck this Option:
uncheck Options-Interface-"Allow Lister to call custom search dialog"
unfortunately, this option is disabled in the option in the dialog. I rebooted the computer, started Syn.exe without a running Total Commander instance - it's always disabled an can not unchecked.

Does someone knows this problem?

Thanks a lot in advance, kind regards,
Thomas
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

I opened the Viewer, selected Help - and got Total Commander's help. Therefore I thought that there is no help for this viewer.
Oh, i think you have disabled the main menu in tc lister mode. You can enable it. Please press F3 in Total commander on any text file. Then press F9 to open configuration window. In Tab "Interface" you can enable "show upper menu"
unfortunately, this option is disabled in the option in the dialog.
It's only available in tc lister mode. In TC viewer window press F9 and this option should be selectable. If SynWrite runs as standalone application then this option is disabled.
schittli
Member
Member
Posts: 101
Joined: 2004-01-06, 16:13 UTC
Location: Switzerland, Biel Bienne

Post by *schittli »

Hi Matthias030

Thanks a lot for your fast answer! - again...
Matthias030 wrote:
I opened the Viewer, selected Help - and got Total Commander's help. Therefore I thought that there is no help for this viewer.
Oh, i think you have disabled the main menu in tc lister mode. You can enable it. Please press F3 in Total commander on any text file. Then press F9 to open configuration window. In Tab "Interface" you can enable "show upper menu"
That's it - great!
unfortunately, this option is disabled in the option in the dialog.
It's only available in tc lister mode. In TC viewer window press F9 and this option should be selectable. If SynWrite runs as standalone application then this option is disabled.
OK...., but enabling this flag in the SynWrite standalone Application mode wouldn't break anything.


I'm very sorry, but now I have the next problem:
a. call search not using Ctrl-F/F3 but using Lister's menu
or
b. in Options-Keys assign Ctrl-F/F3 to commands "Lister find"/"Lister find next"
I prefer option b, but tested option a: so I restarted TC, searched for a text, clicked to a found file with the right mouse button and selected "View (Lister)". (Because in TC I can not find any Lister's menu) Unfortunately, SynWrite still had its own search string.

Then I tested option b, but in TC there is no "Lister find" or "Lister find next" command, therefore I selected "cm_List", which doesn't work.

Should I add those commands directly in wincmd.ini?

Thanks a lot, kind regards,
Thomas
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Option a) try to use F7 in tc lister window. then own tc search dialog is used and not search dialog of synwrite
Option b) you have to define these keys in synwrite configuration and not in tc or wincmd.ini. in tc lister window press F9. then go into tab "keys" and set F3 to "lister find"
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

..and dont forget to disable "Allow Lister...." opt first.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Matthias
Do u see way to make procedure/function block (Pascal) collapsable?

Code: Select all

procedure A(params...);
var
 ....
 ...
const
 ...
 ...
type
 ...
begin
....
...(body)
end;
now only begin-end is collapsable.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

I'll see. Lexer "Pascal (2)" does it right. Lexer "Pascal" not. Maybe I can transmit settings from "Pascal (2)" to "Pascal".
Why not using Lexer "Pascal (2)"? I can't see any benefits of Lexer "Pascal". Is there something better what i don't know?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Why not using Lexer "Pascal (2)"?
i think EC author chose it as default. I didn't compare
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Ok. I try to fix it, but it's not easy.
schittli
Member
Member
Posts: 101
Joined: 2004-01-06, 16:13 UTC
Location: Switzerland, Biel Bienne

Post by *schittli »

Matthias030 wrote:Option a) try to use F7 in tc lister window. then own tc search dialog is used and not search dialog of synwrite
Option b) you have to define these keys in synwrite configuration and not in tc or wincmd.ini. in tc lister window press F9. then go into tab "keys" and set F3 to "lister find"
Hi Matthias030,

perfect!, it works perfect now. Thank you very much for your support!

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

Post by *Alextp »

2Matthias030
diff betw. Pascal/Pascal(2) is tree.
1: shows Interface/implementation, doesn't show Func list. 2: shows func list, very good. Tree of (2) better.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

If I look into older versions, eg. 2.4.760, Pascal (2) was always default lexer for pascal. There were 2 lexers in lexlib, both were named "Pascal". Then while rearranging lexlib.lxl some time ago, second "Pascal" lexer was renamed to "Pascal (2)". This was the default lexer. Now the other pascal lexer is loaded by default.

I'm not sure what lexer is better to be used as default. I don't use pascal files.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

I revert back to (2). (this was mistake)
User avatar
Clas Hortien
Senior Member
Senior Member
Posts: 200
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

The smart highlightning works very well. Many thanks for that. But it only works when you double click on a word, but can we get it, when you mark some string (at the mouse button up event). I sometimes need to highlight only parts of a longer string/word. That would be great.

Many thanks

Clas
Post Reply