NO

Author Topic: Named Bookmarks  (Read 542 times)

Offline John Z

  • Member
  • *
  • Posts: 385
Named Bookmarks
« on: June 29, 2021, 01:07:00 pm »
Named Bookmarks Add-in is an adjunct to, not a replacement for, Pelles Bookmarks. It provides a method to set a bookmark location identified by a name, and the ability to return directly to that bookmark location regardless of where the current cursor is in the file.  Many times in development there may be many bookmarks in a source file.  In some cases F4 needs to be used many times to cycle to the desired location.  This is where a Named Bookmark can help.

Set a Named Bookmark at the location (with or without a standard bookmark) and returning to that location is simply a matter of selecting the location from the list, 2 clicks + 1 dblclick, or 4 clicks  :)

This is a Beta version.  Please read the Readme2.txt for details

SHA256: A0E7DC0DC9BD16416C201C22DBBD0BE13503902D03D5C4ED13FA65E60AD14B8F

Old request for this too:
https://forum.pellesc.de/index.php?topic=6640.0

Hope this is useful !

John Z

Updated 7/2/2021 with version 1
SHA256: AC700C4C99DA69D8043E7E66F3C94A2E8E603E51D3DD5E495041E53F21578E39
« Last Edit: July 02, 2021, 01:49:17 pm by John Z »

Offline Grincheux

  • Member
  • *
  • Posts: 351
  • Never be pleased, always improve
    • Arachne
Re: Named Bookmarks
« Reply #1 on: June 29, 2021, 02:58:29 pm »
For me its too long, not easy to use. Would need a window to click on. Like a palette window or a menu displayed with right click.
I have not understood the snippets.
Limitations to 10 is perfect, what useful is to have a lot of bookmarks?
Generally I have one bookmark into the datas and an other one in the code.

-------------------------
Kenavo / Bye

What disturbs me the most is not dying but not knowing what I will do after.

Offline Grincheux

  • Member
  • *
  • Posts: 351
  • Never be pleased, always improve
    • Arachne
Re: Named Bookmarks
« Reply #2 on: June 29, 2021, 03:02:43 pm »
An other idea:
Use Ctrl 0 to Ctrl 9 to go to a bookmark. Or Alt 0 to alt 9...
It's simple and fast.
-------------------------
Kenavo / Bye

What disturbs me the most is not dying but not knowing what I will do after.

Offline John Z

  • Member
  • *
  • Posts: 385
Re: Named Bookmarks
« Reply #3 on: June 29, 2021, 04:41:57 pm »
For me its too long, not easy to use. Would need a window to click on. Like a palette window or a menu displayed with right click.
That is exactly what it has "a window to click on"  See attachment
It uses right click in the source file too  See 2nd attachment

Generally I have one bookmark into the datas and an other one in the code.
Yes they can be anywhere in the source files.  If only two bookmarks in a source file there is no benefit to using a named bookmark, standard bookmark would be much more efficient.


I have not understood the snippets.
They are prewritten text that can be inserted into a source window.  BUT it is not required.  Snippets save typing alternatively //bookmark [{abc}] could be typed.

But I understand - the applied effort to use must be less than the any frustration trying to find a specific bookmark location with F4.

The Ctrl+ might be an idea but I'm not sure an ADD-IN can intercept keystrokes without being 'active'

Appreciate all the inputs and thoughts!

John Z

P.S. snippet file attached too.
« Last Edit: June 29, 2021, 04:56:50 pm by John Z »

Offline John Z

  • Member
  • *
  • Posts: 385
Re: Named Bookmarks
« Reply #4 on: June 30, 2021, 12:57:59 pm »
Well,  if I had found this by TimoVJL 
https://forum.pellesc.de/index.php?topic=6641.msg24974#msg24974

I would not have attempted to do yet another one . . . . . anyway good learning experience for me.

Great work Timo! (as usual  :) )

John Z


Offline John Z

  • Member
  • *
  • Posts: 385
Re: Named Bookmarks
« Reply #5 on: July 02, 2021, 01:46:57 pm »
Anyway, went ahead and finished it. Maybe someone will find it useful.
Version 1 attached.  No limitation to number of bookmarks, removed the "Update" now dynamically done.


John Z
 

BMbyName.dll
SHA256: AC700C4C99DA69D8043E7E66F3C94A2E8E603E51D3DD5E495041E53F21578E39

Offline Grincheux

  • Member
  • *
  • Posts: 351
  • Never be pleased, always improve
    • Arachne
Re: Named Bookmarks
« Reply #6 on: July 02, 2021, 04:17:01 pm »
I hace added to my addins, I will test and comment.
Thank You
-------------------------
Kenavo / Bye

What disturbs me the most is not dying but not knowing what I will do after.