Coder Social home page Coder Social logo

Comments (9)

junegunn avatar junegunn commented on July 16, 2024

I suppose your $TERM is set to xterm-256color, right?
Try again after setting it to screen-256color as described here.

from fzf.

wilywampa avatar wilywampa commented on July 16, 2024

Sorry, I should've read that. Thanks!

from fzf.

junegunn avatar junegunn commented on July 16, 2024

No problem. xterm-256color inside tmux is known to cause some visual glitches on other curses applications as well, such as Vim.

from fzf.

unphased avatar unphased commented on July 16, 2024

Any idea how I should address this issue? I need to use xterm-256color-italic to get italics in vim (for comments). So I want to override my $TERM only when fzf is in use.

I find that TERM=screen-256color fzf works wonderfully when I run it in the shell, so I'll just need to find out how to get it to do that with the key binds.

from fzf.

junegunn avatar junegunn commented on July 16, 2024

@unphased Have you tried the method on the following page?
https://alexpearce.me/2014/05/italics-in-iterm2-vim-tmux/

from fzf.

unphased avatar unphased commented on July 16, 2024

I have not seen such a recommendation to make a screen-256color-italic terminfo (probably because I set up my italic term prior to May 2014), but it seems very straightforward to do so. Do you think this will also fix the tmux rendering problem?

My workaround is pretty simple and seems to be working for now -- I just edited the ~/.fzf.zsh and all its calls to fzf to TERM=screen-256color fzf.

Also, on Linux everything seems to render fine with xterm-256color-italic.

from fzf.

junegunn avatar junegunn commented on July 16, 2024

@unphased I haven't tried the solution nor italics on terminal so I don't know, but probably. It looks like you won't have to edit ~/.fzf.zsh or Vim plugin if it works. Can you try it and let me know how it goes?

from fzf.

unphased avatar unphased commented on July 16, 2024

I would love to try it.. but I think i've spent way too much time (all of Saturday!) reorganizing and rewriting things for my environment, and I have to work on something else today.

Do you know if it is something that tmux does that specifically requires the $TERM to start with screen that addresses the issue?

I still have to keep my own unique ~/.fzf.zsh because I don't use fc -l 1 for the history list, i use my own python script for it. This way, it loads all my 50K and growing history entries from disk for browsing with fzf without having zsh load all of them every time I start zsh, saving memory and time.

from fzf.

junegunn avatar junegunn commented on July 16, 2024

@unphased

Do you know if it is something that tmux does that specifically requires the $TERM to start with screen that addresses the issue?

Well, see here: http://tmux.cvs.sourceforge.net/viewvc/tmux/tmux/FAQ

******************************************************************************
* PLEASE NOTE: most display problems are due to incorrect TERM! Before       *
* reporting problems make SURE that TERM settings are correct inside and     *
* outside tmux.                                                              *
*                                                                            *
* Inside tmux TERM must be "screen" or similar (such as "screen-256color").  *
* Don't bother reporting problems where it isn't!                            *
*                                                                            *
* Outside, it must match your terminal: particularly, use "rxvt" for rxvt    *
* and derivatives.                                                           *
******************************************************************************

from fzf.

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.