Add a “Recent” sub-menu could this be extended

Been playing with this again and wondered could it be extended to include Recent Tags

This would save me an awful lot of mouse clicks

phil

tagging @kku since Recent-Items is his creation.

Good idea. I will investigate.

Talking about the “recent” sub-menu, I think there is a difference in how different types of objects are treated.

Whereas new places and events are immediately added to the recent list when created, new media items are only added once they have been reused. Also the number of items on the media list appears to be smaller than on the other lists.

I hope this could be included when working on the code.

Are you conflating the Recent Items addon with the built-in “history” accessed with the < back> forward toolbar buttons and Go menu features?

Because yes, those omit “New” items unless they are selected or attached as a secondary object as part of the creation process. Which can be awkward.

Here is what I find:

  1. In the person editor I create a new event.
  2. In the event editor I can create a new location. After I have closed the place editor I may find that I want a different place, but retain the newly created place. In that case I remove the place object in the event editor and start finding the proper one. When I open the place selector the newly created place is at the top of the recent items list. Fine with me so far.
  3. Similarly, I create a new citation and I attach a new media file. If I then want to add another pre-existing citation the newly created citation is top of the recent items list. Again, fine with me.
  4. On the other hand, if I want to create another citation but attach the same media file then the newly created media is not mentioned in the recent items list, and I have to dig it out in the full list (best done by sorting on last change.) Thereafter, if I want to use it again a third time then it is top of the recent list. Also, the recent media list only holds 4 items whereas the other lists hold 10. This is where I would like some small improvements to put it in line with the other recent items lists.

By the way, I didn’t mention before that I use Gramps 5.2.3 on Ubuntu 24.04

It seemed best to make this a separate addon, not trying to add tag handling in the ‘Recent Items’ addon.

I decided to try AI to generate this addon. The code produced by Claude AI (after several iterations) is here:

I was surprised that the free version of Claude was so useful.

This also includes a preferences tool (Tools > Utilities > Recent Tags Preferences) that allows the user to specify the maximum number of recent tags saved per database.

Let me know if this works for you.

Thanks

Incredible I will have to try Claude myself.
Just to let you know
Yes it works if you Edit a Person or Event and select Tag, have tried
and that is good.
It does not work if you are in Person View or Event View and Select the
Tag Icon from the Toolbar or in GraphView right click on an individual
select Tag.
This seems to be a problem not just with Tags different developers
different methods of achieving the same thing but not necessarily
compatible. This is not a criticism just a fact of life with GRAMPS
Please do not worry any further I will try for a while to see what
happens and get back to you
phil