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 »

Can call Lines.saveLineStates. Fixd
It works very good now. thx for fix.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

some suggestions:

1. Add "Markers" (CTRL+Home / Crl+End) to "main menu / bookmarks". Markers are a handy addition to bookmark function

2. Add "Align Tokens" to "main menu / edit".

3. Change behaviour of "Replace next":
Currently by replacing a string, cursor jumps to next match and replaces string immediately without reviewing. Dialog is closed.
In other editors (Notepad++, ultraedit, ms word,..) it works this way: enter string and press replace. then cursor jumps to next match and marks it. dialog stays open. Now press replace again. Marked match is replaced and next match is marked.
If you press "Find next" instead of "Replace next", then cursor skips current marked match and jumps to next match
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

1,2 Added.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

I delay this "Replace next" feature(not simple). but you're right. beta upd.
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *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. Strange. Close the search dialog, click into view pane to set the cursor somewhere, press F3: this time Syn2 finds the search term - the same one that it didn't find previously.
Would it be possible to make Syn2 find the search term also in the first case, when the cursor hasn't been set into the file yet? Thanks.
Versions: Syn2 beta 650, WinXP SP3 English, read-only on by default.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Can any confirm?
(maybe cursor is set at the end offile?)
yeskky
Member
Member
Posts: 177
Joined: 2007-03-01, 05:32 UTC
Location: Jiang Su,China

Post by *yeskky »

Confirmed with beta650.
#222405 Single user licence
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Can not confirm.
Syn remembers cursor position for last files. Maybe cursor is at the end of file. Also could it be that "from cursor" is set for "origin" in search dialog? Then syn can not find your search term. Are any other special options set in search dialog?

Have you tried to test with a clean configuration? I have deleted synstate.ini and syn.ini to test with default settings. (Make a backup of syn.ini before deleting it)
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

atorg.net.ru/temp/beta -project028
i want to do the same, not the Word behaviour. More useful, can act with "Prompt on replace" and without it.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Ok. this is good. What do you thinks about:

In search dialog 2 buttons remains: "replace next" and "replace all".
"replace all" works as before.
"replace next" opens new dialog:

Replace this occurrence?
Yes / Skip / Cancel
Last edited by Matthias030 on 2010-09-26, 18:47 UTC, edited 1 time in total.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

i suggest- Replace all/ next with "Prompt on replace" off- as before. With "Prompt" on - they give new window "Replace this?"
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

i suggest- Replace all/ next with "Prompt on replace" off- as before. With "Prompt" on - they give new window "Replace this?"
Maybe better:
Replace all/ next with "Prompt on replace" off- as before.
Replace next with "Prompt" on - give new window "Replace this?"

Replace all - always without prompt and new window "replace this". Not needed here
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Replace all - always without prompt
I use it in Delphi(select All, and press yes/no on msg)
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Also possible:

No checkbox "prompt on replace"
3 buttons: "Replace", "Replace next", "Replace all"

"Replace" - opens new dialog
"Replace next" / "Replace all" - as before
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

Matthias030 wrote:Could it be that "from cursor" is set for "origin" in search dialog? Then syn can not find your search term. Are any other special options set in search dialog?
That's it. I changed option to "entire scope" and found the term.
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.
Post Reply