fabioluciano / tmux-tokyo-night

174 stars 34 forks source link

duplicate nerd font icons using joshmedeski/tmux-nerd-font-window-name #53

Open GustavoJCL opened 5 days ago

GustavoJCL commented 5 days ago

hi, I tried to config this plugin, but I have duplicated icons using the joshmedeski/tmux-nerd-font-window-name plugin

this is my config:

set-option -g default-shell "/bin/zsh"
# set -gs default-terminal "xterm-256color"

# config founded in https://www.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/
set -gs default-terminal "tmux-256color"
set -ga terminal-overrides ",*256col*:Tc"
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
# set-environment -g COLORTERM "truecolor"

# set -g default-terminal "${TERM}"
# set -g default-terminal "screen-256color"
# set-option -sa terminal-overrides ",xterm-256color:Tc"
# set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'  # underscore colours - needs tmux-3.0
# set-option -sa terminal-overrides ",*256col*:Tc"
set -g mouse on

# image.nvim config

set -g visual-activity off
set -gq allow-passthrough on
# set -g allow-passthrough on

# Set prefix
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix

# Shift Alt vim key to switch windows

bind -n M-H previous-window
bind -n M-L next-window

# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
#set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'xamut/tmux-weather'

set -g @plugin 'joshmedeski/tmux-nerd-font-window-name'
set -g @plugin 'fabioluciano/tmux-tokyo-night'
# automatic continuum
set -g @continuum-restore 'on'

# tokyo night theming
set -g @theme_plugins datetime,weather,battery
### Enable transparency
set -g @theme_left_separator ''
set -g @theme_right_separator ''
set -g @theme_transparent_status_bar 'true'
set -g @theme_transparent_left_separator_inverse ''
set -g @theme_transparent_right_separator_inverse ''

# default program copy

set -g @override_copy_command 'xsel -i -b'
set -g @yank_selection 'clipboard'
set -g @yank_selection_mouse 'clipboard'
# set -g @yank_action 'copy-pipe' # or 'copy-pipe-and-cancel' for the default

set -g pane-border-lines single
set -g pane-border-indicators off
set -g pane-border-status off
# set vi-mode
set-window-option -g mode-keys vi
#keybindings
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'C-v' send-keys -X rectangle-toggle
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-selection-and-cancel "xsel -i -b"

# Smart pane switching with awareness of Neovim splits.
bind-key -n C-h if -F "#{@pane-is-vim}" 'send-keys C-h'  'select-pane -L'
bind-key -n C-j if -F "#{@pane-is-vim}" 'send-keys C-j'  'select-pane -D'
bind-key -n C-k if -F "#{@pane-is-vim}" 'send-keys C-k'  'select-pane -U'
bind-key -n C-l if -F "#{@pane-is-vim}" 'send-keys C-l'  'select-pane -R'

# Open panes in current directory
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"

run '~/.config/tmux/plugins/tpm/tpm'

image

DavidCatalano commented 2 days ago

I don't have that plugin so I don't know which of the icons you wish to turn off, but here is the complete list:

set -g @theme_plugin_inactive_window_icon "\u200B"
set -g @theme_plugin_zoomed_window_icon "\u200B"
set -g @theme_plugin_active_window_icon "\u200B"
set -g @theme_plugin_pane_synchronized_icon "\u200B"

This hack is possible by using a zero-width unicode character. If this is insufficient then the code will need to change.