tmux: center, name, and fill the zoxide floating pane
new-pane's -X/-Y accept percentages of the full pane (not the
remaining space), and FZF_DEFAULT_OPTS caps fzf height at 40% inside
any container it runs in.
Assisted-by: Claude Sonnet 5 via Claude Code
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index e8806f5e..177cb811 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -84,8 +84,10 @@ bind v split-window -h -c '#{pane_current_path}';
bind s split-window -v -c '#{pane_current_path}';
# zoxide + fzf directory switcher in a floating pane; opens a new window
-# named after the selected dir
-bind g new-pane -x 80% -y 60% -e IN_TMUX_FLOAT=1 -- ~/.dotfiles/bin/,z;
+# named after the selected dir. -X/-Y center the pane: offset is
+# (100% - size%) / 2 in each dimension. select-pane -T names the pane
+# (it's current after creation, so no -t target is needed).
+bind g new-pane -x 80% -y 60% -X 10% -Y 20% -e IN_TMUX_FLOAT=1 -- ~/.dotfiles/bin/,z \; select-pane -T 'zoxide';
## fzf-git (disabled — fzf-git.sh is no longer sourced in zsh)
diff --git a/bin/,z b/bin/,z
index 80dcffa0..0f7a0083 100755
--- a/bin/,z
+++ b/bin/,z
@@ -15,6 +15,7 @@ main() {
local dir
dir=$(zoxide query -l "$@" | fzf --no-multi --select-1 --no-margin --no-padding \
"${tmux_opts[@]}" \
+ --height 100% \
--highlight-line --info inline-right \
--border-label ' zoxide ' \
--preview 'eza --tree --color=always {}' \