It works very good now. thx for fix.Can call Lines.saveLineStates. Fixd
SynWrite (Syn2)
Moderators: Hacker, petermad, Stefan2, white
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
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
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
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.
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.
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
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)
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)
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
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
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.
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
Maybe better:i suggest- Replace all/ next with "Prompt on replace" off- as before. With "Prompt" on - they give new window "Replace this?"
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
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
That's it. I changed option to "entire scope" and found the term.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?
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.