Giter Club home page Giter Club logo

Comments (5)

Aloxaf avatar Aloxaf commented on May 26, 2024

I suggest configuring fzf-tab via zstyle.

Try this configuration:

FZF_TAB_COMMAND=(
    fzf
    --ansi   # Enable ANSI color support, necessary for showing groups
    --expect='$continuous_trigger' # For continuous completion
    '--color=hl:$(( $#headers == 0 ? 108 : 255 ))'
    --nth=2,3 --delimiter='\x00'  # Don't search prefix
    --layout=reverse --height=100%  # Full height
    --tiebreak=begin -m --bind=tab:down,btab:up,change:top,ctrl-space:toggle --cycle
    '--query=$query'   # $query will be expanded to query string at runtime.
    '--header-lines=$#headers' # $#headers will be expanded to lines of headers at runtime
)
zstyle ':fzf-tab:*' command $FZF_TAB_COMMAND

from fzf-tab.

comfortablynick avatar comfortablynick commented on May 26, 2024

Thanks, that seems to work.

from fzf-tab.

comfortablynick avatar comfortablynick commented on May 26, 2024

I’m still having issues with this. I’ve tried all kinds of different combinations and can’t get a consistent config.

Here is what I have set up in my zshrc using zinit.

FZF_TAB_COMMAND=(
    fzf-tmux
    --ansi   # Enable ANSI color support, necessary for showing groups
    --expect='$continuous_trigger' # For continuous completion
    '--color=hl:$(( $#headers == 0 ? 108 : 255 ))'
    --nth=2,3 --delimiter='\x00'  # Don't search prefix
    --layout=reverse --height=${FZF_TMUX_HEIGHT:=75%}
    --tiebreak=begin -m --bind=tab:down,btab:up,change:top,ctrl-space:toggle --cycle
    '--query=$query'   # $query will be expanded to query string at runtime.
    '--header-lines=$#headers' # $#headers will be expanded to lines of headers at runtime
)
zinit ice atload'zstyle ":fzf-tab:*" command $FZF_TAB_COMMAND'
zinit light Aloxaf/fzf-tab

It doesn’t seem to work unless I manually execute the zstyle command after the shell loads. I have tried placing the raw zstyle command in the zshrc, instead of using atload in zinit; same results.

If I execute the zstyle command after the shell loads, the tmux pane is loaded but the prompt is at the bottom. Interestingly, if I replace fzf-tmux in $FZF_TAB_COMMAND to plain fzf, it does seem to work properly. Any idea what I could be doing wrong here?

from fzf-tab.

Aloxaf avatar Aloxaf commented on May 26, 2024

You specify --height=${FZF_TMUX_HEIGHT:=75%}, so it won't fill the whole pane.
Replace it with --height=100%.

from fzf-tab.

comfortablynick avatar comfortablynick commented on May 26, 2024

Oh, ok. I thought that was height for the tmux pane. That does seem to fix it, thanks!

from fzf-tab.

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.