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.
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?
I think advanced users that are interested in hist.txt and syn.src are able to find this folder.
But of course you can left "browse readme folder" as additional link in main menu / help.
- 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.
@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