Page 1 of 2

Bookmarks not saved

Posted: 15.09.2023 13:41
by itsmyname
Hello!
Bookmarks can be created and used (jump), but after exiting from the app they are not saved in the "history files.json" file and therefore not reloaded.

Re: Bookmarks not saved

Posted: 15.09.2023 16:02
by main Alexey
bookmarks must be saved to 'history file.json' to special key. e.g. this is marks for my user.json:

Code: Select all

  "bookmarks" : {
    "~|.config|cudatext|settings|user.json" : "2,1 3,1"
  }  
try with clean CudaText. open 1 file, make 1-3 bookmarks, and exit. what is your 'history files.json'?

then try again with working config.
find user.json options which break the work.

Re: Bookmarks not saved

Posted: 16.09.2023 11:37
by itsmyname
With clean CudaText: the "bookmarks" key is not created, only the filenames' keys.

Code: Select all

  "D:|Downloads|cudatext|settings|history session.json" : {
    "lexer" : "JSON",
    "enc" : "UTF-8",
    "tab_size" : 2,
    "tab_spaces" : true,
    "crt" : "0,0,-1,-1,"
  },
  "D:|Downloads|cudatext|settings|user.json" : {
    "lexer" : "JSON",
    "enc" : "UTF-8",
    "tab_size" : 2,
    "tab_spaces" : true,
    "crt" : "0,1,-1,-1,"
  }

Re: Bookmarks not saved

Posted: 16.09.2023 11:55
by main Alexey
how did you place bookmarks?
I do this: click the editor's gutter (vertical band on the left), line becomes greenish (default theme) .

Re: Bookmarks not saved

Posted: 16.09.2023 12:30
by main Alexey
another question: did you CLOSE the document before exiting Cud?
I see that if I don't close document, bookmarks are not saved. will see it.

Re: Bookmarks not saved

Posted: 16.09.2023 15:39
by itsmyname
I placed the bookmarks via menu and a defined key. I didn't close the document.

Re: Bookmarks not saved

Posted: 16.09.2023 15:50
by main Alexey
confirmed the bug. I fixed it now, seems. wait for update, or compile from source.

Re: Bookmarks not saved

Posted: 16.09.2023 18:35
by itsmyname
Thanks!

Re: Bookmarks not saved

Posted: 18.09.2023 07:02
by mix-7
In CudaText 1.198.2.0, linux-x86_64-gtk2, fpc 3.2.3, bookmarks are not deleted unless the tab is closed.
It's probably the same bug.

Re: Bookmarks not saved

Posted: 18.09.2023 07:32
by main Alexey
the same bug. so it was fixed too.
bug was: w/o closing tab, bookmarks state was not saved.