Cudatext: Poor result using multiple bookmarks

Created on 23 Oct 2020  路  7Comments  路  Source: Alexey-T/CudaText

Hi @Alexey-T,

  1. Start with the next lines:
    Snipaste_2020-10-22_16-09-41

  2. Put many bookmarks using the core functionality: bookmarks: put bookmarks on carets, selecting many carets previously.
    Snipaste_2020-10-22_17-01-12

  3. Make a selection that includes at least two bookmarks and delete it:
    Snipaste_2020-10-22_17-02-16

  4. Cud crash with the remained bookmarks:
    Snipaste_2020-10-22_17-04-18

enhancement can be closed

All 7 comments

I don't see a CRASH here. do you mean app crash? or 'incorrect bookmark postion after'? bookmark pos are correct. you deleted block from line 7, so bookmarks from lines 9/14 are moved to line 7. Two marks -> one mark.

I think will be better delete bookmarks from lines 9/14 when user delete this lines

Yeah exactly I prefer to delete all lines with all content all bookmarks.

I was validating the usage in Intellij-Idea and yes basically when you delete the lines the associated bookmarks also are deleted.

better delete bookmarks from lines 9/14 when user delete this lines

It was like this before (long ago). it was changed to like it's now. Found!
https://github.com/Alexey-T/CudaText/issues/1241
@kvichans asked to make it like this. Rus text in there.

It's handy. I want to keep bookmarks for big block, even if I delete part of text

Hi @Alexey-T

Is possible to give to the user the option of delete all bookmarks or maintain one as now? 馃樃

will be in next update,

1.117.1 (2020/10)

  • add: option "auto_delete_bookmarks"
  • fix: on deleting block with n bookmarks, bookmarks shifted upper too much
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alexey-T picture Alexey-T  路  5Comments

Alexey-T picture Alexey-T  路  7Comments

Alexey-T picture Alexey-T  路  5Comments

charliewales picture charliewales  路  4Comments

Alexey-T picture Alexey-T  路  5Comments