Skip to content

status modules like "directory" or "application" are not updated (+FIX) #527

@itakatz

Description

@itakatz

I am not requesting help with my configuration and believe something is genuinely broken.

  • Something is really actually broken.

Is there an existing issue outlining your problem?

Describe your problem.

Using tag v2.1.3.
I set the status message using for example:

set -gF status-right "#{E:@catppuccin_status_directory}#{E:@catppuccin_status_application}#{E:@catppuccin_status_date_time}"

however the current directory and application are not updated in the status.

[Possible fix] I believe the reason is that in this line:

set -ag "@catppuccin_status_${MODULE_NAME}" "#{E:@catppuccin_${MODULE_NAME}_text}"

the @catppuccin_${MODULE_NAME}_text variable is expanded (using the E:), so it no longer includes the tmux vars like pane_current_path or pane_current_command etc.
Removing the E: seems to fix it, that is:
set -ag "@catppuccin_status_${MODULE_NAME}" "#{@catppuccin_${MODULE_NAME}_text}"

(PS sorry for not fixing it using a PR)

Paste your configuration.

set -g @catppuccin_flavor 'mocha' #'latte' # or frappe, macchiato, mocha

set -g @catppuccin_window_flags "icon" # "text"
set -g @catppuccin_window_status_style "rounded"
set -g @catppuccin_window_current_number_color "#{@thm_mauve}"

set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"

#set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_text "#W"

#set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W"

set -g @catppuccin_status_left_separator " "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_right_separator_inverse "no"
set -g @catppuccin_status_connect_separator "no"

set -g @catppuccin_directory_text "#{pane_current_path}"
set -g @catppuccin_application_text "#{pane_current_command}"

run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux

set -gF status-right "#{E:@catppuccin_status_directory}#{E:@catppuccin_status_application}#{E:@catppuccin_status_date_time}"
set -g status-left ""

Attach screenshots.

No response

What tmux version are you seeing the issue on?

tmux 3.5a

What shell are you using?

bash

Any additional comments?

great repo, I love it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions