Unlisted addons

There are a number of plugins in the addons-source repository that are set to include_in_listing=False.

I started this thread because the Wordle gramplet by @dsblank seems much more elegant displayed than the Surname Cloud gramplet.


So I was going to try installing it to 6.0.4 … but unfortunately GitHub doesn’t have a download for a single folder of a repository. That means a bit more work to manually install.

It made me think that status and audience filtering could be used instead of the listing inclusion control. And having them more accessible could lead to development restarting for some.

On the other hand, most people probably do mass installs via the Addon Manager’s Settings tab. And it doesn’t pay attention to the filters.

3 Likes

Git has a feature called sparse checkout (git command: git-sparse-checkout) one use of which is to focus only on certain parts of the source tree. Here’s a list of commands I ran to create a new source directory called “addons-sparse” (just to distinguish it from my regular addons-source directory), and pull only the WordleGramplet from the maintenance/gramps60 branch.

mkdir addons-sparse
cd addons-sparse
git init
git remote add origin http://github.com/gramps-project/addons-source.git
git sparse-checkout set WordleGramplet
git pull origin maintenance/gramps60

Later if you want to add another addon, use git sparse-checkout add Betawhatsnext as an example, and pull again.

My workflow is to pull the entire addson-source worktree so if you run into any issues, you may want to read up on the documentation, or look for tutorials on the web.

2 Likes