Bookmarks moved

Bookmarks moved

13
Basic UserBasic User
13

    May 25, 2007#1

    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

    344
    MasterMaster
    344

      May 25, 2007#2

      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
      Normally using all newest english version incl. each hotfix. Win 10 64 bit

      6,686585
      Grand MasterGrand Master
      6,686585

        May 25, 2007#3

        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.
        Best regards from an UC/UE/UES for Windows user from Austria

        262
        MasterMaster
        262

          May 25, 2007#4

          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.

          6,686585
          Grand MasterGrand Master
          6,686585

            May 25, 2007#5

            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.
            Best regards from an UC/UE/UES for Windows user from Austria