Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[discuss] How about sections? #96

Closed
TxGVNN opened this issue Aug 27, 2022 · 7 comments
Closed

[discuss] How about sections? #96

TxGVNN opened this issue Aug 27, 2022 · 7 comments

Comments

@TxGVNN
Copy link
Contributor

TxGVNN commented Aug 27, 2022

After using kubel long time, I see I have facing with Emacs pinky again, although I'm using a split keyboard :(

Because I have to switch to resources, namespace too much. So I thought about how we can display list of resources with namespace on an overview buffer (we can customize the list)

Maybe we can use magit-section to define a section of each resource-with-namespace.

But by using tabulated-list mode, seems we can not handle that, I'm not sure. So I want to open the issue to find a good solution.

@TxGVNN
Copy link
Contributor Author

TxGVNN commented Aug 27, 2022

In my opinion:

@abrochard
Copy link
Owner

That's an interesting idea. I wonder how kubernetes-el does it?

I picked tabulated-list out of convenience for implementation and also to mirror the terminal experience as my main command was kubectl get pods.

Just so I understand, your workflow involves switching resources a lot so you'd prefer to have all objects at hand from the get go?

@TxGVNN
Copy link
Contributor Author

TxGVNN commented Aug 28, 2022

That's an interesting idea. I wonder how kubernetes-el does it?

I tried kubernetes-el long time ago, It looks like guix.el interface. But I like kubel because it is KISS. Seems I should try kubernetes-el again to check my workflow is match?

Just so I understand, your workflow involves switching resources a lot so you'd prefer to have all objects at hand from the get go?

Yes, I switch namespaces and resources so much. Have all resource at hand is very cool. Or other solution is having separate buffer mentioned in #57

@abrochard
Copy link
Owner

Yeah it really sounds like an implementation of #57 would enhance your workflow. You could even whip out a sidebar or a smaller buffer with all the resources you care about.

@d1egoaz
Copy link
Contributor

d1egoaz commented Sep 1, 2022

@TxGVNN I wonder if you can try #57

as I'd love to get more test users for this. It seems @abrochard got hit by some bugs that I don't have locally 🤷

I've been using my fork for a while now, working with multiple kubel instances (buffers) with different cluster/namespace/resources with no issues.

I personally use https://github.com/d1egoaz/kubel/tree/test which provides me with a single output process buffer as well. That said, I'll need to find some time to upstream some changes here, but I don't think is going to happen soon, not much time these days, being busy at home with 🧒 🧒

@d1egoaz
Copy link
Contributor

d1egoaz commented Sep 1, 2022

I've tried kubernetes.el and I've found kubel.el is superior as I can navigate custom resources easily and doesn't try to be smart and bring unwanted information.

kubel.el source code is also agnostic to the resources. in kubernetes.el there is special code for each resource, which doesn't scale when you have hundred of custom resources 🤷

@TxGVNN
Copy link
Contributor Author

TxGVNN commented Nov 5, 2022

Thank you, @d1egoaz, but right now I don't use kubel so much =D. I will try it if I work with k8s again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants