-
Notifications
You must be signed in to change notification settings - Fork 61
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
Buffer colors are not respected #65
Comments
In addition to having an option to respect the colors, it should be possible to provide arbitrary colors and not just have a list of preselected ones. This plugin is great and all but does not really fit in to the theme I am using (in addition to the above mentioned issue). |
@nkh, You need somehow to differentiate the original console text from the @TutenStain, About being able to set arbitrare colors, we are really limited by color support of terminals. Which one are you using? |
I use iTerm and have defined a custom theme for tmux by modifying tmux.conf. I do not think that only allowing a small set of predefined colors is the way to go, as that would limit the customizability (as for me this plugin sticks out a bit too much given the lack of colors to chose from). |
@TutenStain feel free to open a pull request with the 256 colors addition, if you think it can improve your workflow |
Should we close this issue? |
The original issue is to my knowledge not solved (since tmux-thumbs overrides the terminal colors upon its invocation). Would be interesting to investigate if that can be fixed. However, my comment about arbitrary color configuration support is fixed with a recent PR. |
Simplest is to let the user decide what colors should be used to highlight, in my case anything with a different background and foreground color, that I'd like to chose, would work. |
hi @fcsonline , I'm afraid I can't help since I have zero programming knowledge about Rust (it's on my list someday when I retire ;) ) but maybe we can ball a bit about it. Sometimes it's not having someone to talk to about a problem that stops one from finding a solution. |
Hm I really want to play around with this, perhaps swapping background + foreground for highlighted words, or trying some more intelligent color swapping to ensure high constrast. The change of colors (along with the line shifting bug I just posted) make it take sometimes a couple seconds to find the line I had in my sight. |
In the |
I spend some time discussing this issue with my daughter, who's very artistic and studies UX, and we looked at many different cases, IE: when the output is in reverse color matching tmux selection color one can't see the start of the selection. There's no universal solution when lots of colors are displayed, maybe blinking and underlining exist for something but I'm not sure having a Christmas tree on the screen helps. Some color manipulation, as ideas, can be found here on terminals with 256 or more colors, uninteresting text could be dimmed down or desaturated. Of course letting the user choose is maybe not a bad idea, specially if the choices also contain the possibility to remove colors or not; and is probably the simplest. I'll check the patched version. |
The main goal is to have high contrast to identify visually the hint as fast as possible. Then, we also have the command arguments to customized how they are shown. If you want to add an option to let users to keep colors or not, feel free. |
tmux-thumb highlights the "hits" it finds in green regardless of the colors of the text.
when the buffer contains colored text, to show different types of data, recoloring everything green loses the original highlighting and makes finding what part to copy difficult.
using green when the string has no color is OK but colored text should be highlighted differently (underlining like terminals do seems like a good way)
The text was updated successfully, but these errors were encountered: