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
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

If found words are marked (Find&Mark) and file is changed in background, then after reloading the search marks are shifted to other positions.

Same problem if you change encoding and select "reopen file in new encoding". If there are any changes or new spaces in front of search marks, then these marks changes position.

It can be manually fixed by selecting "clear search marks" and then "Find all". Before you have to assign a shortcut key to "Find all". I use CTRL+Shift+M for "Find all" and CTRL+Shift+C" for "Clear search marks". So I can enable/disable search marks quickly.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

I just notice that you fixed missing tree caption in wlx mode. thx :D
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

here is another issue with search marks:
find and mark a word. important: search word must only exist 1 time in document! the one hit should be marked now. now clear search marks. after that use "find all" to mark the word again. the mark is not visible now. open syn configuration dialog and search mark apears in background.

If hits for search words are greater than 1 then "clear search mark" and "find all" are working well.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

then after reloading the search marks are shifted to other positions.
what do you thunk: if I clear marks on reloading, will it be right? Or i need to find all/mark again?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

after that use "find all" to mark the word again. the mark is not visible now.
cannot reproduce, pls mail me UV Film. (in a short txt file)
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

send you mail
if I clear marks on reloading, will it be right? Or i need to find all/mark again?
You can decide yourself. Better is to find/mark again. But if it is too complicated it is better to simply clear marks on reloading. I think working with search marks is rarely used. So everyone can mark search words again for himself.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Fixed: search mark(if 1) not redrawn.
(On reloading: they reset)
DCTY
New Member
New Member
Posts: 1
Joined: 2010-08-13, 15:07 UTC

can the syn2 auto check the character set of files

Post by *DCTY »

first of all,I'm sorry to make you look at below content,I'm weak in English

hmm,I'm a new user for tc,only one week,but I love it.

when I choose the character set as default,but my source file gibberish.

after open the file I can choose the utf-8 then it works well,but every time I open the new file I must do it again.

BTW:can I choose the character set utf-8 as default? where and which?

附上中文吧,说不定翻译过来后,你们能看得更明白,我的英文有三级了.

我的java源文件都是utf-8字符集的,在tc下我用F3查看是会出现乱码,但是打开后,在底部的字符集可以选择uft-8,这样以后文件显示就正常了,但是我再打开其他的java源文件又得重复这样做.但是我找不到哪里能设置默认字符集为utf-8的.
嗯,我装了syn2插件

懂中文的帮我翻一下哈.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Syn2 do an auto check to find out which encoding is used in file. For me UTF-8 encoded files are opened automatically in Utf-8.
There is no option to set UTF-8 as default. Maybe there is a problem with your utf-8 files? Can you provide a sample file?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

The Utf-8 can be set as default in future. Later.

//
Pls dont write in CHS at ghisler.ch
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Thread can the syn2 auto check the character set of files merged.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Clas Hortien
Senior Member
Senior Member
Posts: 200
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

Hi,

I have two questions:

How can I enable a lexer to react on the filename instead of the file extension ?

How can i choose a different lexer for the current file e.g. show it as a SQL File instead showing it as a textfile. In former releases I could change the used lexer by choosing a menu entry.

Many thanks

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

Post by *Alextp »

1. You cannot(reaction is on extension as set in "Config Lexer library" command)

2. see menu for status line items. Item "Lexer" shows it
User avatar
Clas Hortien
Senior Member
Senior Member
Posts: 200
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

Many thanks.

1) Can I request this to be build in ? It would be very helpful, as I get many textfiles daily, all named differently (based on the application), but with the same endings (txt,log).

2) Super, I didn't see this. But why is the list not the same as the one in the lexer library configuration ? I have disabled many of the lexer (mostly programming languages), as I do not need them and it would be great if the list in the status line would be the same.

Best regards

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

Post by *Alextp »

1. No: I checked EC code, it's based on extension (not possible to change)..

2. ok. Good wish- I'll try it
Post Reply