For now, it looks like this:
I’ve also added a thing that shows the notebook name when search is active, the reasoning being that you don’t normally need it here, since the active notebook is always the one you see on the left.
(Now as I’m writing this I’ve realized that it’d also might be handy when the sidebar is hidden.)
I’d like to know how you think this entire thing should behave. It’s far from done: for example, clicking the tags in the list does nothing for now. (I want it to redirect to the tag itself, as if selected from the side menu.) It also doesn’t handle cases where there are a lot of tags very gracefully. (I’m guessing that since the top bit behaves like a button toolbar, it doesn’t even try to overflow. I haven’t had time to look into it yet, though.)
Also, ideally, we should be able to remove the ‘tags’ button entirely, replacing it with tags that look like these
But as my grasp on Joplin internals is next to non-existent, I can’t yet tell whether it’d be easily doable. I also don’t know how it should be done - e.g. whether Laurent is open to adding more dependencies to the project with libraries that already implement something like this.
Final note: If there was enough interest in this feature (I think it’s already been requested a few times already), I’d be willing to create a pull request - if I manage to get it working well enough.
What do you think?