Ramilito / kubectl.nvim

Apache License 2.0
158 stars 4 forks source link

feat: toggling without losing the state #77

Closed idelice closed 1 week ago

idelice commented 1 month ago

Current behavior

  1. toggle plugin on
  2. go to deployment (or any other)
  3. toggle plugin off
  4. toggle plugin on
  5. the initial pod window shows

Better behavior

  1. toggle plugin on
  2. go to deployment (or any other)
  3. toggle plugin off
  4. toggle plugin on
  5. the view from step 2 should show up

Bonus Partial render the plugin e.g. load the UI first and then start fetching resources. This will boost the start-up and navigation time.

Ramilito commented 1 month ago

I do like the idea of saving state, not sure how I would fit that in with multiple sessions but I'll give it a shot.

The bonus one is nice as well, I noticed that k9s does it like that and it does feel faster.

idelice commented 1 month ago

Maybe we could save it to local file on the users side and pull from that? Gitpad.nvim is doing something like that

Ramilito commented 1 month ago

I'll take a look and see what we can do!

Ramilito commented 1 week ago

Solved by #164