wrong bookmark positions being saved after line deletion/insertion

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

wrong bookmark positions being saved after line deletion/insertion

Post by itsmyname »

After the deletion/insertion points the bookmarks are shifted.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: wrong bookmark positions being saved after line deletion/insertion

Post by main Alexey »

bookmarks are auto-shifted when deleting/adding lines above the marks. it is by design. it is feature.
how do other good editors do this?
itsmyname
Posts: 11
Joined: 15.09.2023 13:34

Re: wrong bookmark positions being saved after line deletion/insertion

Post by itsmyname »

are shifted/aren't shifted: the bookmark defined at line 70 will not "move" to the 68 when the lines 51 and 52 are deleted. It remains at line 70 pointing to a wrong line.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: wrong bookmark positions being saved after line deletion/insertion

Post by main Alexey »

how do you 'delete lines'? command 'delete line(s)' [Ctrl+Y] ? deleting of selected block? plugin? other way?

i use command 'delete lines' and bookmark is shifted up.
itsmyname
Posts: 11
Joined: 15.09.2023 13:34

Re: wrong bookmark positions being saved after line deletion/insertion

Post by itsmyname »

Ctrl+Y (deletion) or Enter (insertion), Ctrl+S, Alt+F4, relaunch ...
(There are plugins loaded.)
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: wrong bookmark positions being saved after line deletion/insertion

Post by main Alexey »

1. do you reproduce this on _clean_ Cud?
2. if yes: can you run the Kazaam app (or similar) to make screen recording of what you do?
itsmyname
Posts: 11
Joined: 15.09.2023 13:34

Re: wrong bookmark positions being saved after line deletion/insertion

Post by itsmyname »

It can be reproduced with clean CudaText. Right after the line insertion/deletion the bookmarks are in the right position, but after Ctrl+S and Alt+F4 and relaunching CudaText the bookmarks are in the wrong (previous) position.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: wrong bookmark positions being saved after line deletion/insertion

Post by main Alexey »

i cannot reproduce it. so I ask you to give 'steps' how to reproduce this.
e.g. my steps:

- run clean app
- open file with 10 lines
- place bookmarks on lines 6, 8
- close file
- restart Cud, reopen file
-> 2 bookmarks are OK for me (still on lines 6, 8)
itsmyname
Posts: 11
Joined: 15.09.2023 13:34

Re: wrong bookmark positions being saved after line deletion/insertion

Post by itsmyname »

I don't open/close the document. I use session.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: wrong bookmark positions being saved after line deletion/insertion

Post by main Alexey »

and what are your 'steps'?
Post Reply