Code line red bookmark disappears after a replacement

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Code line red bookmark disappears after a replacement

Post by FrankC »

We can bookmark a code line by clicking just left of its gutter number. It then gets a red background. A very handy feature, if one is working on a page with a long code. And I'm now working on pages with *really* long codes. But after a Search & Replace action, the bookmark is gone. Also if it concerns a code part that is unrelated to the bookmarked code line, or if it just concerns a one-word replacement. Is that by design, and if so, may I suggest redesigning WB so that it stays?

I realize that then the bookmark may not be at the correct gutter number anymore, if the to-replace code is substantially shorter than the replacing code. But I would rather have to scroll a few lines to find the originally bookmarked code line than having no bookmark anymore at all.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Code line red bookmark disappears after a replacement

Post by Aivars »

I'm going to have to ask what's the reason for this, that is, I know the technical details of why the bookmarks are lost, but I don't know why it's been made this way. It might have something to do with either performance or regular expression replacement.
I agree that we should try to preserve the bookmarks as much as possible but I don't know when we could try fixing this, our todo is already pretty much full.
Blumentals Software Programmer
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Re: Code line red bookmark disappears after a replacement

Post by FrankC »

I'm quite happy with your reply, Aivars. I understand that you folks must be busy now, but as long you understand the mechanism behind it, I'm happy for the moment. Depending on whether your boss/colleagues would want the change the design as such, I can wait until the upcoming new version is updated at a later stage.
Post Reply