seagle0128 / doom-modeline

A fancy and fast mode-line inspired by minimalism design.
https://seagle0128.github.io/doom-modeline/
GNU General Public License v3.0
1.27k stars 157 forks source link

Add Kubernetes segment w/ kele.el #715

Closed jinnovation closed 5 months ago

jinnovation commented 5 months ago

This PR adds a segment for displaying the currently active Kubectl context and, optionally, the selected default namespace. It sources this information via kele.el, which handles config loading and refreshing.

image

We also hook up the menu map (introduced in jinnovation/kele.el#167 and jinnovation/kele.el#169) to allow users to perform basic Kubernetes management tasks via cursor, e.g. switching contexts/namespaces, starting/stopping proxy servers, etc.

image
jinnovation commented 5 months ago

@seagle0128 ready for your review again

seagle0128 commented 5 months ago

Well done! Thank you very much.

BTW, I see the name may be long in the screenshots. I think it's better considering the width limit. Please see doom-modeline--segment-visible and doom-modeline-always-visible-segments.

jinnovation commented 5 months ago

Great point, expect a follow-up PR soon (:

On Fri, Apr 12, 2024, at 22:52, Vincent Zhang wrote:

Well done! Thank you very much.

BTW, I see the name may be long in the screenshot. I think it's better considering the width limit. Please see. doom-modeline--segment-visible and doom-modeline-always-visible-segments.

— Reply to this email directly, view it on GitHub https://github.com/seagle0128/doom-modeline/pull/715#issuecomment-2053086381, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOX2IZEV2YKCCRGHFZYIQ3Y5CMXDAVCNFSM6AAAAABGCIEJ2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJTGA4DMMZYGE. You are receiving this because you authored the thread.Message ID: @.***>