omerxx / tmux-sessionx

A Tmux session manager, with preview, fuzzy finding, and MORE
GNU General Public License v3.0
554 stars 51 forks source link

Preview Window Disabled - still uses space #91

Closed mvaldes14 closed 1 month ago

mvaldes14 commented 2 months ago

I'd like to keep a minimal session switcher so i have the following overrides on the plugin

set -g @sessionx-bind 's'
set -g @sessionx-preview-enabled 'false'
set -g @sessionx-x-path '~/git'
set -g @sessionx-preview-ratio '0%'
set -g @sessionx-window-height '30%'
set -g @sessionx-window-width '75%'

I'd expect it to just list out the session for me to pick from and move quickly but somehow the preview panel space still shows up. See below.

1

omerxx commented 2 months ago

Using your exact config this is what I get:

image

Can you please -

  1. Make sure your sessionx is up to date
  2. Share your fzf + tmux versions?

This is mine:

~ ❯ fzf --version
0.46.1 (brew)
~ ❯ tmux -V
tmux 3.4
mvaldes14 commented 2 months ago

Versions

fzf --version
0.44.1 (0.44.1)
tmux -V
tmux 3.3a
omerxx commented 2 months ago

I still can't really reproduce, unless I'm setting a larger height in which case the gap is created.

Is it possible that your resolution dictates that 30% is the window you got? Can you set it to something smaller like 20% and see whether things change?

mvaldes14 commented 2 months ago

moved it down to 25% and it looks better now, curious why its trying to keep that space. tried to pass down custom fzf parameters but seems like those only affect the pointers/pickers.

guess we can close this for now. appreciate the help!

omerxx commented 1 month ago

@mvaldes14 I'm also curious about why this is happening. If this is reproducing / annoying for you or anyone visiting this in the future, please reopen