Git Product home page Git Product logo

Comments (12)

JamyGolden avatar JamyGolden commented on September 25, 2024

Thanks for the information! I'll look into this. Out of interest, what operating system and terminal are you using?

from tinted-shell.

szero avatar szero commented on September 25, 2024

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.

szero avatar szero commented on September 25, 2024

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.

JamyGolden avatar JamyGolden commented on September 25, 2024

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.

nbn22385 avatar nbn22385 commented on September 25, 2024

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:

  1. Open tmux with 2 panes. The current theme is Theme A.
  2. On Pane 1, set a new base16 theme. The new theme is Theme B.
  3. Switch to Pane 2
  4. On Pane 2 open vim. The vim colorscheme is still Theme A.

Workarounds:

  • Run the reset alias that was created by profile_helper.sh
  • Open a new tmux pane after setting the shell theme

from tinted-shell.

JamyGolden avatar JamyGolden commented on September 25, 2024

@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.

nbn22385 avatar nbn22385 commented on September 25, 2024

MacOS 12.4 + Alacritty for personal use and Windows 10 + Windows Terminal for work.

from tinted-shell.

jonleopard avatar jonleopard commented on September 25, 2024

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.

acidghost avatar acidghost commented on September 25, 2024

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.

tummetott avatar tummetott commented on September 25, 2024

Is there ongoing work to enable support for base16 colors in tmux without requiring the passthrough option to be enabled?

from tinted-shell.

JamyGolden avatar JamyGolden commented on September 25, 2024

@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.

JamyGolden avatar JamyGolden commented on September 25, 2024

Closing this issue now since the information is included in the repo readme.

from tinted-shell.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.