ui: add enablePromptCursor option to show hardware cursor in prompt bars - #4035
Open
skaven81 wants to merge 1 commit into
Open
ui: add enablePromptCursor option to show hardware cursor in prompt bars#4035skaven81 wants to merge 1 commit into
skaven81 wants to merge 1 commit into
Conversation
Adds ui.enablePromptCursor (default: false) to config.yaml. When true,
the terminal hardware cursor is shown in the filter (/) and command (:)
prompt bars, positioned at the current input location.
Default is false to preserve existing behavior for all users — the
prompt bars continue to show no cursor unless this option is explicitly
set.
This requires a corresponding change in derailed/tview (skaven81/tview
branch fix-textview-showcursor) which makes TextView.Draw() honor the
ShowCursor flag. Without that tview change, this config flag has no
visible effect. With only the tview change and not this k9s change, the
cursor would appear unconditionally — so both changes are needed
together to keep the default behavior unchanged.
To enable:
# ~/.config/k9s/config.yaml
k9s:
ui:
enablePromptCursor: true
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
This PR is stale because it has been open for 30 days with no activity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds ui.enablePromptCursor (default: false) to config.yaml. When true, the terminal hardware cursor is shown in the filter (/) and command (:) prompt bars, positioned at the current input location.
Default is false to preserve existing behavior for all users — the prompt bars continue to show no cursor unless this option is explicitly set.
This requires a corresponding change in derailed/tview (skaven81/tview branch fix-textview-showcursor) which makes TextView.Draw() honor the ShowCursor flag. Without that tview change, this config flag has no visible effect. With only the tview change and not this k9s change, the cursor would appear unconditionally — so both changes are needed together to keep the default behavior unchanged.
To enable:
See also derailed/tview#11