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 »

I think it could be improved: when option equals "from cursor" but cursor position isn't set, Syn2 should search from beginning of file then set cursor at first match.
Problem is: Cursor position is always set to any position. But in read-only mode cursor is not shown. Possible is to make syn to set cursor position to file begin (pos 1:1) while starting in read-only mode. But this is not wanted, because syn should remembers history (save caret position / save encoding)

What you can do is to disable "save caret position" in configuration / history. Then caret position is always at pos 1.1 at startup.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

"Save caret pos" opt. not enabled currently. will be.
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

Matthias030 wrote:Problem is: Cursor position is always set to any position. But in read-only mode cursor is not shown. Possible is to make syn to set cursor position to file begin (pos 1:1) while starting in read-only mode. But this is not wanted, because syn should remembers history (save caret position / save encoding)
How about this logic then: If RO is on upon starting AND the caret position from history is undefined then set caret position to 1:1, else set caret position to the saved position.
Then use this position for the search dialog.

And couldn't this same logic be applied even when RO mode is disabled?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

- the caret position from history is undefined then set caret position to 1:1
It is already like this. If history is unset, position is 1:1, in RO/non-RO.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

suggest: run syn.chm and lexer.chm directly from main menu / help.
remove link "browse readme folder".
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

But folder -also Hist.txt, and Src.rar
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

I think advanced users that are interested in hist.txt and syn.src are able to find this folder. 8)
But of course you can left "browse readme folder" as additional link in main menu / help.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

ok\
Next i want to add is tabs. (Add tab, Close tab)
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Next i want to add is tabs. (Add tab, Close tab)
Good choice. I'm happy to hear that :D
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

Alextp wrote:
- the caret position from history is undefined then set caret position to 1:1
It is already like this. If history is unset, position is 1:1, in RO/non-RO.
OK, then there should be another cause of the issue that I reported and yeskky confirmed:
sgp
Press F3 to view a file and immediately press CTRL+F to enter a search term - one that you know is found within the file. Press ENTER: Syn2 does NOT find the existing term. Syn2 beta 650, WinXP SP3 English, read-only on by default, search from cursor ticked.
yeskky
Confirmed with beta650.
sil
New Member
New Member
Posts: 1
Joined: 2010-10-05, 08:58 UTC

Post by *sil »

First off - Great plugin; really like this

Is this an Econtrol issue:

Using 2.2.660 with the following C code:-

Code: Select all

#ifdef SOME_DEFN

#endif // end section unrecognised comment

void main (void)
{
    ;
}
Neither the comment on the #endif line or the #endif itself is recognised so that main() function is not displayed in Syntax Tree or Code Folding

Typing a new line after this point results in another #endif being inserted
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

It s EC issue, issue of lexer. Lexer can be fixed.
User avatar
Lesmo16
Senior Member
Senior Member
Posts: 380
Joined: 2005-02-07, 07:18 UTC
Location: Germany

*.BAK files

Post by *Lesmo16 »

@Alextp:
Syn2.1 is getting better and better - thanks so much!

What I really miss is a simple file backup function.
Alex, please consider about optional *.BAK file writing.
The original file extension should be kept.
info.txt --> info.txt.bak

Thanks in advance. :)


@Matthias030:
Danke für die deutsche Übersetzung!
Everyone believing in telekinesis, raise my hand!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2.3. New features


Lesmo
I consider it. Tks for note )
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

bak supp.- Done.
Post Reply