Bookmarks not saved

Solved bugs are moved into this topic...
itsmyname
Posts: 11
Joined: 15.09.2023 13:34

Bookmarks not saved

Post 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.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Bookmarks not saved

Post 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.
itsmyname
Posts: 11
Joined: 15.09.2023 13:34

Re: Bookmarks not saved

Post 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,"
  }
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Bookmarks not saved

Post 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) .
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Bookmarks not saved

Post 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.
itsmyname
Posts: 11
Joined: 15.09.2023 13:34

Re: Bookmarks not saved

Post by itsmyname »

I placed the bookmarks via menu and a defined key. I didn't close the document.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Bookmarks not saved

Post by main Alexey »

confirmed the bug. I fixed it now, seems. wait for update, or compile from source.
itsmyname
Posts: 11
Joined: 15.09.2023 13:34

Re: Bookmarks not saved

Post by itsmyname »

Thanks!
mix-7
Posts: 741
Joined: 11.05.2018 11:02

Re: Bookmarks not saved

Post 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.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: Bookmarks not saved

Post by main Alexey »

the same bug. so it was fixed too.
bug was: w/o closing tab, bookmarks state was not saved.
Post Reply