User forums > Help

Bookmarks being removed when using AStyle

<< < (2/2)

OnlineCop:
I'm going with tiwag's argument:

I would find it far better to have 20 bookmarks that have to be manually moved when the code is modified either through AStyle or external programs, than to have all 20 completely disappear.

If my code is several hundred lines long (which is completely conceivable: the few exceptions would ever be "Hello World"-length programs), the bookmarks are "in the general area of" the different places they were set originally.  Sure, they'd move around a lot when changing styles.

For a "best of both worlds", why not allow the user to decide:

When the page is refreshed (through AStyle or otherwise):
( )Remove bookmarks
(x)Leave bookmarks in original position
( )Use 3rd-party plugin to try to keep bookmarks in generally the same place

Just an idea...

MortenMacFly:
I take your votes, but I promise:
If we implement that we will get a lot people that will complain "Hey I've lost my bookmarks - they are shifted somehow.". If you can live with that - go on! ;-)
All I want to say is that both "solutions" are *not* an expected behaviour.
With regards, Morten.

Ceniza:
There's a good workaround for it modifying the iterator to take care of bookmarks... but I'll need to find the functions to get and set bookmarks first.

I'll give it a try :)

Ceniza:
OK, it seems I finally got it. It required a hacky check but it seems to be working pretty nice by now.

Why do I think the next request will be doing the same thing for breakpoints? :P

Let me know how it goes in the next release.

MortenMacFly:

--- Quote from: Ceniza on November 19, 2006, 03:25:53 am ---OK, it seems I finally got it. It required a hacky check but it seems to be working pretty nice by now.

--- End quote ---
Cooooool! 8) (Compiling now...)

Navigation

[0] Message Index

[*] Previous page

Go to full version