Skip to content

Conversation

@prime-run
Copy link
Collaborator

@prime-run prime-run commented Apr 16, 2025

feat: add Kitty tab bar styling and add new tab shortcut

Pull Request

Description

Summary of Changes:

This pull request refines the Kitty terminal's appearance with minimal tab bar styling and introduces a more intuitive keyboard shortcut (Ctrl+Shift+T) for opening a new tab in the current working directory.

Motivation and Context:

The default Kitty tab bar appearance was considered less visually appealing. This change implements a minimal styling to improve its aesthetics by placing it at the bottom, using a powerline style with slanted separators, and displaying the number of windows when relevant.

Additionally, a new keyboard shortcut (Ctrl+Shift+T) has been added to open a new tab within the current working directory. This provides a more direct and commonly expected behavior for users who frequently need to open new tabs in the same location. While the default $mod+t shortcut remains available for opening a new tab with the default behavior, Ctrl+Shift+T offers a more relatable alternative for this specific use case.

The commented-out lines related to performance optimization are taken directly from the official Kitty documentation (https://sw.kovidgoyal.net/kitty/performance/) and were included for potential future experimentation with latency reduction. They are not active in this commit.

Dependencies:

No new dependencies are introduced by this change.

Type of change

Please put an x in the boxes that apply:

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update (non-breaking change; modified files are limited to the documentations)
  • Technical debt (a code change that does not fix a bug or add a feature but makes something clearer for devs)
  • Other (provide details below)

Checklist

Please put an x in the boxes that apply:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My commit message follows the commit guidelines.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added a changelog entry.
  • I have added necessary comments/documentation to my code.
  • I have added tests to cover my changes.
  • I have tested my code locally and it works as expected.
  • All new and existing tests passed.

Screenshots

250416_21h00m17s_screenshot

Additional context

In some kitty colorschemes (themes) the default tab bar title was unreadable, this PR also fixes it

@prime-run prime-run changed the title Enhance Kitty Tab Bar Appearance and Add "New Tab in Current Directory" Shortcut and Add comments to to minimize latency in kitty Enhance Kitty Tab Bar Appearance and Add "New Tab in Current Directory" Shortcut and Add commented guides to minimize latency in kitty Apr 16, 2025
@kRHYME7 kRHYME7 self-requested a review April 17, 2025 00:25
feat:  add Kitty tab bar styling and add new tab shortcut
@prime-run
Copy link
Collaborator Author

edited and rebased

@kRHYME7 kRHYME7 merged commit eb04da7 into HyDE-Project:master Apr 17, 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