Global bookmarks in source code editor?

Global bookmarks in source code editor?

Is that possible? I'm using Delphi XE. If not is XE, is it available in later Delphi versions? If not, is there some IDE add-on that makes this possible?

I apply good OOP practices, so my code is broken up into many classes and units. It is super frustrating that I can't bookmark locations in various files and jump between them. Lazarus IDE and EditPad Pro (text editor) allows this, and it is very useful.

Comments

  1. Global bookmarks, as in you press Ctrl+1 and it takes you to another source file? No, that's not in Delphi.

    Parnassus Bookmarks is a free bookmark addon I make, and it lists all bookmarks in all files, so you can go to another file by clicking the bookmark in the list. It does not have global bookmarks because, to me, a limit of ten numerical shortcuts across an entire project isn't enough. parnassus.co - Bookmarks - Delphi Plugin - Parnassus OÜ

    ReplyDelete
  2. David Millington: Yes, bookmarks jumping between open files in the IDE editors. eg: Bookmarks 1 & 2 might be in one unit, Bookmark 3 might be in another unit.

    Does your Bookmarks add-on allow overriding the standard Ctrl+Shift+ and Ctrl+ shortcuts of the IDE? Or is the only way to use your bookmarks add-on via Ctrl+B and the mouse?

    I prefer not to use the mouse to navigate source code. Editors cycling through all bookmarks is also not ideal. Cycling bookmarks and the mouse are just way to slow. Either way, I'll give it a try though - so thanks for mentioning it.

    As for your comment about 10 not being enough. I found I never go over about 5-7 bookmarsk for whatever task I'm working on. Five bookmarks being the most common for me.

    ps: I like the sound of your "caret marker" idea. Delphi's code navigation (Ctrl+LClick) and Alt+ is rather flaky too. Often taking my forward or back to the wrong location.

    ReplyDelete
  3. ModelMaker Code Explorer has a History feature. Perhaps that may satisfy your needs.

    ReplyDelete
  4. Graeme Geldenhuys I've had a couple of requests for it, but it's quite a significant change and having both models work at once / toggleable by a preference is overcomplicated.

    You can use Ctrl+Shift+n and Ctrl+n, yes - all the same shortcuts work, I just happen to think that Ctrl+B is a neater one to set a shortcut. You don't need to remember which number is free. You can also cycle through all shortcuts in a unit, and of course view all bookmarks in all open files, just without a keyboard shortcut there.

    ReplyDelete
  5. David Millington: On other benefit from the Ctrl+B for toggling bookmarks instead of using Ctrl+ is that it plays much nicer with the Programmer Dvorak keyboard layout, where the numbers are actually in the shift state, and the symbols are a single key press. As a long standing Dvorak user (in many custom layout), that would actually be a welcome feature. I'll definitely be giving that add-on a try today.

    ReplyDelete
  6. If I remember correctly CNPack does this.

    ReplyDelete
  7. David Millington : I finally took the time to try out your Bookmarks add-on. In the end it did not suit my needs, so I uninstalled it (yes, Delphi was closed at the time). Then every time I launch Delphi XE3 it complains that it can't find the add-on DLL's of the Bookmarks add-on. Why should it, I uninstalled it. I then searched the registry and there were tons of entries still around of Parnusses OU. Your installer really doesn't do a good job cleaning up after itself. I had to manually delete all those tray registry entries and eventually my Delphi XE3 started up again without any errors. Just thought I would let you know. ps: I used the latest Bookmarks (downloaded 2 days ago).

    ReplyDelete

Post a Comment