Repository navigation
Conversation
Pressing ctrl+t (configurable via `hishtory config-set key-bindings hide-columns`) toggles the search table between the configured columns and a Command-only view. The hidden state lives only in the TUI model: both directions of the toggle re-run the search query with the reduced or full column list, so every table rebuild path (resize, delete, filter changes) stays consistent. The column-width cache is keyed by the displayed column set because cached rows from one set can be wider than another, which otherwise causes an out-of-range panic.
Contributor
Author
|
Hey @ddworken , |
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.
Hi there!
I've made a cool feature which I use a lot, and finally found time to refine the code and make a PR.
Now there is a hotkey to hide all the columns but the "Command".
In a small terminal window when I search for commands, it could be just impossible to find the command you need. Look at this:


But once I press Ctrl+T, it becomes much clearer:
The only bad thing. It's a bit hard for me to figure out how to write proper tests for it...
It would be very nice to get a couple of hints on how to do this, or at least to know if the feature looks good to you and you want to have. Knowing that I'm not the only one who wants it would give me some motivation.