beancount / fava

Fava - web interface for Beancount
https://beancount.github.io/fava/
MIT License
1.94k stars 286 forks source link

UI - Sidebar: Categories (and Collapsability) for fava-sidebar-link. #1406

Open seltzered opened 2 years ago

seltzered commented 2 years ago

For those using the fava-sidebar-link feature, when adding more than a few sidebar links the layout can get crowded such that a user cannot see core aspects like the 'errors' sidebar link & color indicator.

There's probably a number of possible enhancements (re-arrangements, etc.), but would like to suggest the ability to have a category field for fava-sidebar-link entries that would render sidebar categories that could be collapsible.

image

yagebu commented 2 years ago

This is not something that I'd implement but a PR would be welcome.

pwalkr commented 1 month ago

+1. I use links extensively and it would be useful to have a nested/accordion style render.

As a workaround, you might use notes ~ filters. Here's an example of my Other Links. It uses the Journal view filtered on a special account. snip-2024-08-18_85958

To define, I use note with a custom "fava-sidebar-link" pointer to the special account: snip-2024-08-18_85894

The actual links are basic <a href=/relpath>Text</a> html, which are messy but render and the note syntax allows for more descriptive text. For source readability, special characters (parenthesis, pipe-bar) don't need to be url-encoded, just escape double-quotes \". Categories could be created/nested with additional pseudo accounts or filtering on description.