#30 Bookmarks should be persistent

closed-fixed
4
2008-08-22
2002-05-08
No

When the user sets bookmarks in a document and closes the document,
TXC should store the positions of the bookmarks.

TXC could
store the file-bookmark-mapping in the registry (local user) what
would make the bookmarks user specific or in a central (xml) file
somewhere on disk.

We will have to store the filename, the
modification time of the file, when the bookmarks where written and
the lines, where bookmarks where placed. When TXC opens the file
next time, it can take a look in its bookmark database, compare the
current modification time of the file with the one in the database
and if they match, restore the bookmarks.

XML-file could look
something like that:
(I will provide some MSXML-parser based C++
classes in the next time.)

<?xml ...>
<files>
<file>

<path>C:\somefile.tex</path>
<modtime>

<time>12:03:45</time>
<date>03-04-2002</date>
<modtime>

<bookmarks>
<line>15</line>
<line>113</line>
...

</bookmarks>
</file>
<file>
...
</file>

...
</files>

Discussion

  • Tino Weinkauf

    Tino Weinkauf - 2008-08-20
    • assigned_to: nobody --> sergiudotenco
     
  • Tino Weinkauf

    Tino Weinkauf - 2008-08-20

    Logged In: YES
    user_id=439379
    Originator: NO

    Bookmarks are persistent now. Sergiu implemented that.

    Sergiu, instead of saving the bookmarks in the tcp-file, I would rather go for writing them to the session file, i.e., the tps-file.

    In particular, TXC asks now whether changes to the project should be saved when closing TXC. So I thought "Uuups, did I change the project?" No, I didn't. I just changed some bookmarks. But that is part of the session and not part of the project itself. Or what do you think?

    It is a bit like *.vcproj files versus *.suo files (or *.user files).

     
  • Sergiu Dotenco

    Sergiu Dotenco - 2008-08-21
    • status: open --> open-fixed
     
  • Sergiu Dotenco

    Sergiu Dotenco - 2008-08-21

    Logged In: YES
    user_id=2166098
    Originator: NO

    I agree. Changes already committed.

     
  • Tino Weinkauf

    Tino Weinkauf - 2008-08-22
    • status: open-fixed --> closed-fixed
     
  • Tino Weinkauf

    Tino Weinkauf - 2008-08-22

    Logged In: YES
    user_id=439379
    Originator: NO

    Great!

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks