Open timsofteng opened 1 month ago
@timsofteng care to share additional info? The plugin without any additional config should have the preview enabled by default (your setup should have it preconfigured without the additional entry). Did you try resetting your server to make sure the env is clean? Please share
Sure Config
#remap leader
unbind-key C-b
set-option -g prefix C-Space
bind-key C-Space send-prefix
set-window-option -g mode-keys vi
# set Zsh as your default Tmux shell
#set-option -g default-shell zsh
# Leader-Space to zoom current pane
bind C-Space resize-pane -Z
#vi mode
# bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# switch panes using Alt-arrow without prefix
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
#alt binds
bind -n M-l select-pane -L
bind -n M-h select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
bind -n M-N switch-client -n
bind -n M-P switch-client -p
bind -n M-n next-window
bind -n M-p previous-window
bind -n M-v split-window -h
bind -n M-b split-window -v
bind -n M-c new-window
bind -n M-C command-prompt -p "New Session:" "new-session -A -s '%%'"
bind C-1 switch -t 1
# split panes
bind v split-window -h
bind b split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.config/tmux/tmux.conf
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# focus events enabled for terminals that support them
set -g focus-events on
############ truecolor settings
# set -g default-terminal "tmux-256color"
# truecolour for alacritty
set -ag terminal-overrides ",alacritty:RGB"
# truecolour for foot terminal
set-option -ga terminal-overrides ",foot:Tc"
# for rest terminal emulators
# set-option -ga terminal-overrides ",xterm-256color:Tc"
# set -g @plugin 'whame/tmux-modal'
#######################################################
set -g mouse on
set-option -g detach-on-destroy off
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# set -g session-base-index 1
#autoinstall tpm
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'aserowy/tmux.nvim'
set -g @plugin 'omerxx/tmux-sessionx'
# navigation
set -g @tmux-nvim-navigation true
set -g @tmux-nvim-navigation-cycle true
set -g @tmux-nvim-navigation-keybinding-left 'M-h'
set -g @tmux-nvim-navigation-keybinding-down 'M-j'
set -g @tmux-nvim-navigation-keybinding-up 'M-k'
set -g @tmux-nvim-navigation-keybinding-right 'M-l'
# resize
set -g @tmux-nvim-resize true
set -g @tmux-nvim-resize-step-x 1
set -g @tmux-nvim-resize-step-y 1
set -g @tmux-nvim-resize-keybinding-left 'M-H'
set -g @tmux-nvim-resize-keybinding-down 'M-J'
set -g @tmux-nvim-resize-keybinding-up 'M-K'
set -g @tmux-nvim-resize-keybinding-right 'M-L'
#list of programs which should be restored
#additional to vi vim nvim emacs man less more tail top htop irssi weechat mutt
# set -g @resurrect-processes 'lazygit nnn aerc'
set -g @continuum-restore 'on'
set -g @resurrect-capture-pane-contents 'on'
set -g @sessionx-bind 'o'
set -g @sessionx-bind-select-up 'ctrl-p'
set -g @sessionx-bind-select-down 'ctrl-n'
#autosave session on detach
# bind-key d run-shell "#{@resurrect-save-script-path} quiet" \; detach-client
#enable it if yousing obsession without prosession
# for vim
# set -g @resurrect-strategy-vim 'session'
# for neovim
# set -g @resurrect-strategy-nvim 'session'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
❯ fzf --version
0.52.1 (brew)
I can't find anything that suggests a reason why the preview won't show. Things to test out:
?
that toggles it on and off and see whether it worksfzf-tmux --preview 'cat {}'
I don't see preview. I set it
set -g @sessionx-preview-enabled 'true'
but not success.