Bookmarks moved

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Bookmarks moved

Postby ThWiedmann » Fri May 25, 2007 4:09 am

Hello,

when I open a text file with UltraEdit (version 11.10+1), which contains bookmarks, previously set by UltraEdit, sometimes I find those bookmarks moved to another line. I didn't open the text file with another editor intermediately.

1. What may be the reason for it, i. e. on which conditions a bookmark may be moved to another line?

2. How can it be avoided, that a bookmark is moved when opening the text file a further time with UltraEdit?

3. By the way: How/where such an UltraEdit bookmark is saved in (or for) a text file?

Thanks for good hints.

Thomas Wiedmann
User avatar
ThWiedmann
Basic User
Basic User
 
Posts: 17
Joined: Sun Jul 31, 2005 11:00 pm

Re: Bookmarks moved

Postby Bego » Fri May 25, 2007 5:24 am

Hallo Thomas,

You can watch here where bookmarks are stored (it was a simple search in the forum): Where are the bookmarks stored?

Are you sure the files are not modified meanwhile by other applications / processes ?
Do you use multiple INI files? This would explain many things.

rds Bego
User avatar
Bego
Master
Master
 
Posts: 357
Joined: Wed Nov 24, 2004 12:00 am
Location: Germany

Re: Bookmarks moved

Postby Mofi » Fri May 25, 2007 7:05 am

UltraEdit stores for every bookmark the decimal byte offset in the INI file for the file which looks like:

[Bookmarks]
F:\Temp\History.txt=178,234,1284,-1,

-1 marks end of list. So if you modify the content of the file with a different editor, the bookmarks will be on a different line when bytes are inserted or deleted before the saved bookmark byte offset.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Bookmarks moved

Postby jorrasdk » Fri May 25, 2007 7:47 am

The format
[Bookmarks]
F:\Temp\History.txt=178,234,1284,-1,

seems to be for earlier versions, like 11.10+1 used by ThWiedMann - right ? or maybe an alternate format to this:

I have some files with saved bookmarks, so I checked the INI and for UE13.00a+2 the present format seems to be:

[Bookmark Names]
C:\temp\temp13.txt=jr1,
[Bookmark Cols]
C:\temp\temp13.txt=0,-1,
[Bookmark Lines]
C:\temp\temp13.txt=2057,7,-1,


2057 is the total number of chars in the file. And from there on it is line numbers starting from 0, with -1 ending the list.

If you only add or delete contents on existing lines with other programs, the "line bookmark" will be preserved in place. Adding or removing lines will cause the bookmark to be displaced.

Of course if you also use "bookmark cols" these will be displaced when deleting/inserting in front of the bookmark in other programs.

So as Bego and Mofi hints, never change files with saved bookmarks with other programs and be sure always using the desired INI.
User avatar
jorrasdk
Master
Master
 
Posts: 275
Joined: Mon Mar 19, 2007 11:00 pm
Location: Denmark

Re: Bookmarks moved

Postby Mofi » Fri May 25, 2007 8:55 am

jorrasdk wrote:The format
[Bookmarks]
F:\Temp\History.txt=178,234,1284,-1,

seems to be for earlier versions, like 11.10+1 used by ThWiedMann - right ?

Right!

Optional saving the column number with the bookmark was introduced with UE v12.20.

Named bookmarks are possible since UE v12.10.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to UltraEdit General Discussion