Recent

Author Topic: Feature(s) request/suggestion  (Read 1303 times)

440bx

  • Hero Member
  • *****
  • Posts: 5820
Feature(s) request/suggestion
« on: August 31, 2025, 11:42:51 am »
Hello,

Currently bookmarks work across files.  That is, if there are 30 files being edited and bookmark 0 is set somewhere in File20 then restoring bookmark 0 will go to File20 at the location where the bookmark was set.

This is nice but, it would also be nice to have the bookmarks be _local_ to files.  IOW, each file would have a set of bookmarks 0..9.

Ideally, there would be two sets of bookmarks, file local bookmarks (a new feature) and global bookmarks (current feature) 

It would also be extremely nice to have a "view bookmarks" window, where the file local bookmarks would be listed in addition to the global bookmarks, this window would provide a convenient way of navigating using bookmarks.

Thank you for reading.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

DomingoGP

  • Full Member
  • ***
  • Posts: 106
Re: Feature(s) request/suggestion
« Reply #1 on: August 31, 2025, 12:56:07 pm »
I know it's not exactly what you're asking for, but my add-on for the IDE offers some additional options for managing bookmarks. Perhaps some of them will be useful to you, although their use is somewhat different from traditional bookmarks.
It provides a view bookmarks and local file navigation but only for the stack bookmarks, not for the ide bookmarks.

https://github.com/DomingoGP/lazIdeStackBookmarks

Regards,
Domingo.

440bx

  • Hero Member
  • *****
  • Posts: 5820
Re: Feature(s) request/suggestion
« Reply #2 on: August 31, 2025, 02:33:18 pm »
DomingoGP,

This will be quite useful... thank you!.

The part I really like is the bookmarks window.  That makes the bookmark's target visible which can be very handy when using a lot of bookmarks (which I do.)

Thanks again!. :)


ETA:

It would be great if, once the bookmarks window is made active, using the up and down arrows would automatically recover the selected bookmark location.  That would give a very quick way of reviewing all the locations that have been bookmarked.

if you decided to implement the above then, it would be very convenient to automatically create a bookmark to mark the current location in the editor.  That would allow going back to the current location after reviewing all the bookmarks.  IOW, when switching from editor to bookmarks window, create a bookmark to mark the location in the editor before the bookmarks window was activated.

While I'm wishing for features, it would also be great to have a way to sort the bookmarks by file and line number within the file.

That would cover everything I want in a bookmark facility. :)


« Last Edit: August 31, 2025, 02:55:17 pm by 440bx »
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

dbannon

  • Hero Member
  • *****
  • Posts: 3568
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Feature(s) request/suggestion
« Reply #3 on: August 31, 2025, 02:52:30 pm »
I really like the idea of a "view bookmarks" popup of some sort. Something that mentions the name of the method that the bookmark is located in (iff it is so located).  Don't think I'd use more bookmarks under the existing model, by time I get to #9 I have forgotten what #0 was for.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

DomingoGP

  • Full Member
  • ***
  • Posts: 106
Re: Feature(s) request/suggestion
« Reply #4 on: August 31, 2025, 07:15:38 pm »
It would be great if, once the bookmarks window is made active, using the up and down arrows would automatically recover the selected bookmark location.  That would give a very quick way of reviewing all the locations that have been bookmarked.

I implemented this with one change, you must keep the shift key pressed when navigate the bookmarks with up and down arrows to not loose focus and view the bookmark in the lazarus editor.
Also you can navigate the bookmarks with up and down and press enter to go to the bookmark, if the shift key is pressed then the bookmarks list keeps the focus.

if you decided to implement the above then, it would be very convenient to automatically create a bookmark to mark the current location in the editor.  That would allow going back to the current location after reviewing all the bookmarks.  IOW, when switching from editor to bookmarks window, create a bookmark to mark the location in the editor before the bookmarks window was activated.

I'm not sure to implement this by default. It is so easy to press the Push button before start navigation and press the Pop button at the end of navigation.

The sort option is in my todo list now.

Domingo.

DomingoGP

  • Full Member
  • ***
  • Posts: 106
Re: Feature(s) request/suggestion
« Reply #5 on: August 31, 2025, 08:17:52 pm »
Sort option already done.  :D

440bx

  • Hero Member
  • *****
  • Posts: 5820
Re: Feature(s) request/suggestion
« Reply #6 on: August 31, 2025, 09:10:49 pm »
Thank you Domingo...  that is great...  being able to order bookmarks has long been in my wish list.

I'm in the middle of some stuff but.. I will be giving it a workout very soon... :)  In the meantime I'm using the first version you mentioned.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

DomingoGP

  • Full Member
  • ***
  • Posts: 106
Re: Feature(s) request/suggestion
« Reply #7 on: September 02, 2025, 02:29:40 pm »
if you decided to implement the above then, it would be very convenient to automatically create a bookmark to mark the current location in the editor.  That would allow going back to the current location after reviewing all the bookmarks.  IOW, when switching from editor to bookmarks window, create a bookmark to mark the location in the editor before the bookmarks window was activated.

Finally I implemented something like that. If you have the Shift Key pressed when activate the bookmarks window a bookmark is created (pushed). Also pressing backspace in the bookmarks list pop the bookmark and goes back to the editor.

440bx

  • Hero Member
  • *****
  • Posts: 5820
Re: Feature(s) request/suggestion
« Reply #8 on: September 02, 2025, 04:20:09 pm »
Finally I implemented something like that. If you have the Shift Key pressed when activate the bookmarks window a bookmark is created (pushed). Also pressing backspace in the bookmarks list pop the bookmark and goes back to the editor.
Just tried it and... this is great stuff... extremely convenient when dealing with a large number of files and consequently a large number of bookmarks.

Thank you Domingo! :)
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

DomingoGP

  • Full Member
  • ***
  • Posts: 106
Re: Feature(s) request/suggestion
« Reply #9 on: September 02, 2025, 09:38:00 pm »
You're welcome!   :)
I'm glad you liked it. Thank you for your feedback and kind words about the plugin.

440bx

  • Hero Member
  • *****
  • Posts: 5820
Re: Feature(s) request/suggestion
« Reply #10 on: September 02, 2025, 09:44:25 pm »
You're welcome!   :)
I'm glad you liked it. Thank you for your feedback and kind words about the plugin.
It was my pleasure.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018