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

konf ns should highlight currently selected namespace by default #45

Open
sourcedelica opened this issue Oct 18, 2022 · 1 comment
Open

Comments

@sourcedelica
Copy link

When running konf ns the first namespace is highlighted even though that one is not necessarily the currently set namespace. It should have the currently selected namespace pre-selected. For example, see how kns works.

@dennisstritzke
Copy link
Contributor

I want to share what I have found so far:

  • The item can be selected by passing CurserPos in the this &promptui.Select call.
  • The curser position only has an effect, if StartInSearchMode is set to false though. I didn't dig deeper than that.

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

No branches or pull requests

2 participants