NO

Author Topic: Named Bookmarks  (Read 1393 times)

Offline John Z

  • Member
  • *
  • Posts: 509
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 the new version.  Please read the Readme_ver2.txt for details

SHA256: E28B6D86235AEB2C32A5892026836A4E9B653777E4AA454011229A74893444BA

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

Hope this is useful !

John Z

Updated 7/14/2022 with version 2
SHA256: AC700C4C99DA69D8043E7E66F3C94A2E8E603E51D3DD5E495041E53F21578E39
 
removed attachments of old versions to free upload space
« Last Edit: August 17, 2022, 04:21:39 pm by John Z »

Grincheux

  • Guest
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.


Grincheux

  • Guest
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.

Offline John Z

  • Member
  • *
  • Posts: 509
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.

removed attachment to free upload space.
« Last Edit: August 17, 2022, 04:20:36 pm by John Z »

Offline John Z

  • Member
  • *
  • Posts: 509
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: 509
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

Removed old version attachments to free upload space.
« Last Edit: August 17, 2022, 04:23:08 pm by John Z »

Grincheux

  • Guest
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

Offline John Z

  • Member
  • *
  • Posts: 509
Re: Named Bookmarks
« Reply #7 on: July 14, 2022, 01:49:14 pm »
An update to the Named Bookmark Add-in

Here is version 2 which:
 adds an ability to Remove the Named BookMarks individually or all at once.
 adds the ability to easily insert a Named BookMark without using snippets.

 Decided to update as I use it quite often.  The biggest benefit is if you use many bookmarks in a
source file.  With this you can go to the desired bookmark immediately.  If you only have a few then the
Pelles C IDE BookMark is most useful.

John Z