Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitmux module not working #211

Open
1 task done
pbakiewicz opened this issue May 11, 2024 · 3 comments
Open
1 task done

Gitmux module not working #211

pbakiewicz opened this issue May 11, 2024 · 3 comments
Labels
bug Something isn't working waiting on author

Comments

@pbakiewicz
Copy link

pbakiewicz commented May 11, 2024

Is there an existing issue outlining your problem?

  • I have searched the existing issues and they do not solve my problem.

Describe your problem.

Gitmux module doesn't show anything in cappuccin. It definitely works when I run gitmux in shell but it shows nothing when I add it as catpuccin status modules right.

Paste your configuration.

unbind C-b
set-option -g prefix C-a
set -g mouse on

set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'christoomey/vim-tmux-navigator'

set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_status_modules_right "session gitmux application"

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

Attach screenshots.

No response

What tmux version are you seeing the issue on?

tmux 3.4

Any additional comments?

No response

@pbakiewicz pbakiewicz added the bug Something isn't working label May 11, 2024
@vdbe
Copy link
Collaborator

vdbe commented May 11, 2024

image

Seems to work fine, used your exact config and also tmux 3.4.

Is your pane in a git repo if not you will see this:
image

Can you provide the output of tmux show-options -g status-right?

@pbakiewicz
Copy link
Author

pbakiewicz commented May 12, 2024

Sure, this is the output:

status-right "#status-right "#[fg=#{?client_prefix,#f38ba8,#a6e3a1},bg=#1e1e2e,nobold,nounderscore,noitalics]█#[fg=#1e1e2e,bg=#{?client_prefix,#f38ba8,#a6e3a1},nobold,nounderscore,noitalics] #[fg=#cdd6f4,bg=#313244] #S#[fg=#313244,bg=#313244,nobold,nounderscore,noitalics]█#[fg=#f5c2e7,bg=#313244,nobold,nounderscore,noitalics]█#[fg=#1e1e2e,bg=#f5c2e7,nobold,nounderscore,noitalics] #[fg=#cdd6f4,bg=#313244] #W#[fg=#313244,bg=#313244,nobold,nounderscore,noitalics]█"

In the meantime if anyone had similar problem I found the solution -> simply change module I don't use (host in my example) into gitmux, which works fine:

set -g @catppuccin_host_text "#(gitmux -cfg $HOME/.gitmux.conf \"#{pane_current_path}\")"
set -g @catppuccin_host_icon ""

@vdbe
Copy link
Collaborator

vdbe commented May 12, 2024

There is no gitmux in you status-right output.

this is my output:

status-right "#[fg=#{?client_prefix,#f38ba8,#a6e3a1},bg=default,nobold,nounderscore,noitalics]#[fg=#1e1e2e,bg=#{?client_prefix,#f38ba8,#a6e3a1},nobold,nounderscore,noitalics] #[fg=#cdd6f4,bg=#313244] #S#[fg=#313244,bg=#313244,nobold,nounderscore,noitalics]█#[fg=#a6e3a1,bg=#313244,nobold,nounderscore,noitalics]#[fg=#1e1e2e,bg=#a6e3a1,nobold,nounderscore,noitalics]󰊢 #[fg=#cdd6f4,bg=#313244] #(gitmux \"#{pane_current_path}\")#[fg=#313244,bg=#313244,nobold,nounderscore,noitalics]█#[fg=#f5c2e7,bg=#313244,nobold,nounderscore,noitalics]#[fg=#1e1e2e,bg=#f5c2e7,nobold,nounderscore,noitalics] #[fg=#cdd6f4,bg=#313244] #W#[fg=#313244,bg=#313244,nobold,nounderscore,noitalics]█"

notice the:
... #[fg=#1e1e2e,bg=#a6e3a1,nobold,nounderscore,noitalics]󰊢 #[fg=#cdd6f4,bg=#313244] #(gitmux \"#{pane_current_path}\") ...

are you sure you included it?

as for the fix the modules uses the same

text="$(get_tmux_option "@catppuccin_gitmux_text" "#(gitmux \"#{pane_current_path}\")")"

except the -cfg $HOME/.gitmux.conf part does gitmux work for you withouth that part?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting on author
Projects
None yet
Development

No branches or pull requests

2 participants