Skip to content

feat: make window name configurable #28

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

Merged
merged 3 commits into from
Jan 2, 2025
Merged

Conversation

cry999
Copy link
Contributor

@cry999 cry999 commented Jan 1, 2025

What

What does this pull request accomplish?

  • make window name configurable

How

What code changes were made to accomplish it?

  • Extracted '#I:#W' as a variable. And made it configurable, as below:
set -g @tmux2k-window-name-format "█ #{window_index} #{window_name}:#{b:pane_current_path}"

Why

  • I want to use pane path as window name to make it easier to understand what I was doing in which window.

Screenshots (If applicable)

tmux.conf:

set -g @tmux2k-window-name-format "█ #{window_index} #{window_name}:#{b:pane_current_path}"

screenshots:

スクリーンショット 2025-01-01 14 13 13

Notes

This is my first time submitting a pull request, so I'm sorry if there's anything weird.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes

Copy link
Owner

@2KAbhishek 2KAbhishek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@2KAbhishek 2KAbhishek merged commit 5e11cd8 into 2KAbhishek:main Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants