Comments (9)
I suppose your $TERM is set to xterm-256color
, right?
Try again after setting it to screen-256color
as described here.
from fzf.
Sorry, I should've read that. Thanks!
from fzf.
No problem. xterm-256color
inside tmux is known to cause some visual glitches on other curses applications as well, such as Vim.
from fzf.
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.
@unphased Have you tried the method on the following page?
https://alexpearce.me/2014/05/italics-in-iterm2-vim-tmux/
from fzf.
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.
@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.
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.
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)
- Preserve fzf fuzzy list view? HOT 11
- Preserve color output of `kubecolor get pods -A | fzf --ansi`? HOT 1
- Is it possible to create new bind on action from transform HOT 2
- Unknown command fzf_key_bindings error when invoking read in a Fish shell script HOT 3
- Header line at bottom? HOT 1
- `{q}` isn't escaped properly on Windows HOT 12
- last good fzf for fzf.vim on Windows 10 HOT 4
- FZF ignores nested files from $FZF_DEFAULT_COMMAND='fd' but not when piping fd into FZF HOT 3
- Can't input non ascii characters HOT 6
- Hang on SIGSTP when session leader
- simplify cygwin handling in Git Bash
- Action to clear selections if there are any else exit fzf. (Feature request) HOT 1
- Feature request: no-clear option that affects execute action (no clear before executing)
- On fzf.vim opening in new cmd Window in Git Bash HOT 42
- [Feature Request] Combining `--expect` and `--bind` HOT 4
- left-align preview window to the right of the finder HOT 1
- Does it support using fzf inside lldb debugger for searching command history HOT 1
- --preview-window=auto to place the preview window based on terminal size HOT 4
- Neovim: Opening a file via `:FZF` clears messages (e.g. warning W325 for existing swapfile is not shown) HOT 2
- Key Bindings For Windows Muscle Memory 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 fzf.