nix-tree icon indicating copy to clipboard operation
nix-tree copied to clipboard

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

Open Icy-Thought opened this issue 3 years ago • 4 comments

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

Icy-Thought avatar Dec 10 '22 15:12 Icy-Thought

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 :).

utdemir avatar Dec 10 '22 16:12 utdemir

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

Icy-Thought avatar Dec 10 '22 18:12 Icy-Thought

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.

utdemir avatar Dec 18 '22 21:12 utdemir

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!

Icy-Thought avatar Dec 19 '22 00:12 Icy-Thought