Comments (12)
Thanks for the information! I'll look into this. Out of interest, what operating system and terminal are you using?
from tinted-shell.
xfce4-terminal and debian unstable, i've tried with st terminal from suckless and xterm and had same problems, its solely tmux related issue imo
from tinted-shell.
Analogous issue from OG base16-shell repo https://github.com/chriskempson/base16-shell/issues/211. Btw, I thought that this repo and organization wasn't a fork, it was just transferred from chriskempson to people willing to maintain the project but I guess thats not the case.
from tinted-shell.
Thanks for linking. Yes, what you say is partially true: @chriskempson has disappeared and no one has been able to contact Chris for a long time. There was a discussion about creating a base16 organization but Chris didn't end up completing that. Most (all?) of the chriskempson/base16* repos exist without anyone else having owner access. So there has been an effort to contact GitHub about this and get it moved over to base16-project, but I'm not sure how that will end up going. So in the mean time we're maintaining things on base16-project, trying to get all of the old maintainers to join and adding "deprecation" messages on the old repos that we've moved, like we have on chriskempson/base16. So while it is a fork, it's only because there isn't another option.
from tinted-shell.
Another tmux issue I noticed: since the "new" base16-shell writes to a BASE16_THEME
environment variable (as opposed to the legacy behavior of writing to a ~/.vimrc_background
file), any other existing tmux panes that open vim will launch with the last color scheme known to its environment when that pane was launched, and not use the latest BASE16_THEME
variable set from the pane that set the theme.
Steps to reproduce:
- Open tmux with 2 panes. The current theme is Theme A.
- On Pane 1, set a new base16 theme. The new theme is Theme B.
- Switch to Pane 2
- On Pane 2 open vim. The vim colorscheme is still Theme A.
Workarounds:
- Run the
reset
alias that was created byprofile_helper.sh
- Open a new tmux pane after setting the shell theme
from tinted-shell.
@nbn22385 I'm looking at creating a fix for this atm. Out of interest, what OS and terminal emulator do you use?
from tinted-shell.
MacOS 12.4 + Alacritty for personal use and Windows 10 + Windows Terminal for work.
from tinted-shell.
Just wanted to report the same issue here on macOS 12.5 running Alacritty and Tmux 3.3a. Happy to provide any additional info if needed!
from tinted-shell.
I have the following setup: local machine with tmux, in one window I ssh (or mosh
) into another machine and open a nested tmux session there; inside the nested tmux session I ssh into a local VM. In this scenario the theme is not applied correctly (it is if I ssh into the VM directly from a tmux window on my local machine, i.e. not nested).
To fix it I updated my theme at ~/.config/tinted-theming/base16_shell_theme
to
if [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then
because in the remote VM the variable TMUX
is not set (it's not running inside the VM, but on the server hosting the VM that I use to access the VM) and TERM
is set to tmux-256color
.
Maybe it's worth to have the same change in: https://github.com/tinted-theming/base16-shell/blob/56de873b62500f144446a9bb66d541bddd5c38b5/templates/default.mustache#L33
from tinted-shell.
Is there ongoing work to enable support for base16 colors in tmux without requiring the passthrough option to be enabled?
from tinted-shell.
@tummetott my understanding is that allow-passthrough
used to be set to on
or enabled by default, but since version tmux version 3.3a
, it's set to off
by default.
So base16-shell has always required the allow-passthrough
option to be enabled. There aren't any plans or any reasons to change anything related to this.
from tinted-shell.
Closing this issue now since the information is included in the repo readme.
from tinted-shell.
Related Issues (11)
- [Feature request] Access to colors as normal environment variables HOT 3
- Maintainers outside of base16-project HOT 1
- NCurses programs break colors HOT 3
- profile_helper.sh sets the theme when it is sourced even if the theme did not change HOT 3
- [Bug report] syntax error in hooks/base16-tmux.sh line 21 HOT 1
- Typo in fish setup HOT 1
- [Bug report] Git delta hook unknown option and light value issues HOT 2
- Does not create base16-tmux config file in fish shell
- [Bug report] color test doesn't respect $BASE16_THEME HOT 2
- [Bug report] Last commit adding Sublime Merge hooks breaks everything if that plugin is not installed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinted-shell.