Code Monkey home page Code Monkey logo

Comments (8)

AlessioRocco avatar AlessioRocco commented on July 29, 2024 5

Since tmux/tmux@427b820 tmux has true color, any plan to support it?

from tmuxline.vim.

edkolev avatar edkolev commented on July 29, 2024

I don't think tmux understands true color (8bit) unless you patch it.

Anyway, you could do this: create a tmuxline.conf file with :TmuxlineSnapshot, then eidt tmuxline.conf (modify the colors as needed) and then source it with tmux source tmuxline.conf.

Please let me know if you manage to achieve this - I may add it to the core of the plugin (although first vim will have to be able to use true color without any patches)

from tmuxline.vim.

nfarrar avatar nfarrar commented on July 29, 2024

Still playing around with this. Tmux correctly displays 24-bit rgb color (assuming your terminal emulator does), and I've got tmuxline configured to use my custom color mappings (0..15), still trying to figure out how to calculate and override the the xterm extended color palette with consistent truecolors calculated from the base.

from tmuxline.vim.

rawaludin avatar rawaludin commented on July 29, 2024

Here's how solarized in vim-airline and tmuxline not match when I activate true color in tmux

screen shot 2017-02-06 at 1 59 06 pm

from tmuxline.vim.

rawaludin avatar rawaludin commented on July 29, 2024

This discussion will help one to activate true color in tmux tmux/tmux#34

I use this one tmux/tmux#34 (comment)

from tmuxline.vim.

rawaludin avatar rawaludin commented on July 29, 2024

Here's how to check true color in terminal https://gist.github.com/XVilka/8346728

from tmuxline.vim.

rawaludin avatar rawaludin commented on July 29, 2024

I use this solarized theme https://github.com/frankier/neovim-colors-solarized-truecolor-only

from tmuxline.vim.

rawaludin avatar rawaludin commented on July 29, 2024

For example, I see generated tmux theme are using ctermfg from theme. If I use guifg value, I successfully get true color.

Here example for OceanicNext theme:
https://github.com/mhartington/oceanic-next/blob/master/colors/OceanicNext.vim

Generated theme:
https://gist.github.com/rawaludin/e2fd38c29ddc32507a76a7178be350c1

What it should be:
https://gist.github.com/rawaludin/ab862046bdc6ac1bc5ed62d9ba13f54f

I use this setup:

let g:tmuxline_preset = {
      \'a'               : '#{?client_prefix,#[reverse][P]#[noreverse] ,}#{?window_zoomed_flag,#[reverse][F]#[noreverse] ,}#S',
      \'win'             : ['#I', '#W'],
      \'cwin'            : ['#I', '#W'],
      \'x'               : '#(focus)',
      \'y'               : ['%a, %b %d'],
      \'z'               : '%R #(bat)',
      \'options'         : {
        \'status-justify'  : 'left'}
      \}
" simple
let g:tmuxline_separators = {
    \ 'left' : '',
    \ 'left_alt': '|',
    \ 'right' : '',
    \ 'right_alt' : '|',
    \ 'space' : ' '}

Oh, and set -g status-utf8 "on" is deprecated.

from tmuxline.vim.

Related Issues (20)

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.