NO

Author Topic: Named Bookmarks  (Read 2354 times)

Offline John Z

  • Member
  • *
  • Posts: 790
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 11/01/2023 with version 2.1
SHA256: B4CC9D40CFFB4AE3757B32741633613268B9D1CE08C22B3B1AE8AE6854421275

removed attachments of old versions to free upload space
« Last Edit: November 01, 2023, 02:05:57 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: 790
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: 790
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: 790
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: 790
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

Removed prior version zip and txt (space savings)
« Last Edit: November 01, 2023, 02:07:40 PM by John Z »

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Named Bookmarks
« Reply #8 on: July 07, 2023, 03:39:03 AM »
Updated for Pelles C v 12.002.  No code changes so just posting the new DLL.

John Z

removed old attachment
« Last Edit: November 01, 2023, 02:06:43 PM by John Z »

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Named Bookmarks
« Reply #9 on: November 01, 2023, 02:04:32 PM »
Updated for missing last character in bookmark name list bug.

Project files included for building the dll, or just download the dll itself.

John Z

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: Named Bookmarks
« Reply #10 on: November 01, 2023, 02:28:42 PM »
 :)
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide