I just learned that it is possible to add functions to tab-bar-format, which is the variable that controls the information that is shown in the tab-bar.
I want to write a function that gets the upcoming event with the closest scheduled date so that it is shown in the tab-bar. I want to know if someone has written a function that accomplishes the described behavior. If not, does anyone have some tips for writing such function?