utdemir / nix-tree

Interactively browse dependency graphs of Nix derivations.
BSD 3-Clause "New" or "Revised" License
766 stars 14 forks source link

Feature request: display bindings in the lower right corner of `nix-tree`. #49

Open Icy-Thought opened 1 year ago

Icy-Thought commented 1 year ago

It's rather complicated to find the menu if you are not aware of its existence. Therefore I propose that we add shortcuts which could hint at the existence of such menu in the lower right corner of nix-tree.

Something similar to gitui's approach could prove to be helpful: (forgive the horrible theming) image

utdemir commented 1 year ago

I think this is a great idea, we can just sacrifice one line at the bottom and make it much more discoverable. This would also make the current help modal redundant. It also seems pretty easy to implement, so I think this will be my next priority :).

Thanks again :).

Icy-Thought commented 1 year ago

Glad to help out! I'll make sure to update this thread if I ever come up with a better idea! :)

utdemir commented 1 year ago

Update: I have a prototype implementation:

Screenshot 2022-12-18 at 11 59 39 PM

However it doesn't look that pretty. I feel like as rest of the application doesn't use the colors and background very prominently, the new menubar is too focused to my liking.

I'll play around with different colours to see if I'll find something that fits the rest of the app better.

Icy-Thought commented 1 year ago

That looks like a good start!

Also, allowing the user to customize the colorscheme of the menu would be more appropriate in my opinion. People use different colorschemes and having one hard-coded theme is not usually desirable.

Config file could be a .yaml, .conf, .dhall file or whatever filetype you deem appropriate for this minor customization!