feat(tab-bar): add command status and cwd indicators, close and new tab buttons #34

Merged
BlackAngelTV merged 7 commits from feat/tab-bar-indicators into main 2026-11-11 20:19:41 +01:00
Owner

Fixes #28

Ce que fait cette branche

La barre d'onglets n'affichait que le titre de la fenêtre : impossible de voir d'un coup d'œil si la dernière commande avait échoué ou dans quel répertoire on se trouvait, et fermer un onglet demandait le clavier ou le clic du milieu.

  • feat(tab-bar) : le statut de sortie de la dernière commande et un répertoire courant abrégé sont exposés à tab_title_template, avec rafraîchissement de la barre à la fin d'une commande.
  • feat(tab-bar) : le bouton + est visible par défaut, et la barre reste affichée même avec un seul onglet.
  • feat(tab-bar) : croix de fermeture cliquable au début de chaque onglet horizontal, sans démarrer un glisser depuis le bouton.
  • fix(file-manager) : Entrée ouvre la sélection (comme la flèche droite) au lieu de changer le répertoire ; Ctrl+Entrée garde le changement de répertoire du shell et ne dépend plus de la sélection — indispensable quand le panneau tourne dans un dock, où il n'y a pas de shell à déplacer.

Vérifications

  • toute la suite kitty_tests/tab_bar.py : OK (dont test_exit_status_indicator, test_tab_title_indicators, test_horizontal_tab_bar_close_buttons, test_tab_bar_title_cache)
  • python3 -m py_compile kitty/tab_bar.py kitty/tabs.py kitty/window.py kitty/options/types.py : OK

Synchronisation avec main

main a été fusionné dans la branche (commit 97a686f) : le conflit sur la ligne d'aide du panneau a été résolu en gardant les deux jeux de raccourcis (/ recherche, : palette, Entrée ouvre la sélection, Ctrl+Entrée fait le cd), et la documentation comme le README décrivent maintenant le comportement de Entrée et Ctrl+Entrée d'après les deux branches. L'API renvoie la demande en mergeable: true.

Fixes #28 ## Ce que fait cette branche La barre d'onglets n'affichait que le titre de la fenêtre : impossible de voir d'un coup d'œil si la dernière commande avait échoué ou dans quel répertoire on se trouvait, et fermer un onglet demandait le clavier ou le clic du milieu. - `feat(tab-bar)` : le statut de sortie de la dernière commande et un répertoire courant abrégé sont exposés à `tab_title_template`, avec rafraîchissement de la barre à la fin d'une commande. - `feat(tab-bar)` : le bouton `+` est visible par défaut, et la barre reste affichée même avec un seul onglet. - `feat(tab-bar)` : croix de fermeture cliquable au début de chaque onglet horizontal, sans démarrer un glisser depuis le bouton. - `fix(file-manager)` : Entrée ouvre la sélection (comme la flèche droite) au lieu de changer le répertoire ; `Ctrl+Entrée` garde le changement de répertoire du shell et ne dépend plus de la sélection — indispensable quand le panneau tourne dans un dock, où il n'y a pas de shell à déplacer. ## Vérifications - toute la suite `kitty_tests/tab_bar.py` : OK (dont `test_exit_status_indicator`, `test_tab_title_indicators`, `test_horizontal_tab_bar_close_buttons`, `test_tab_bar_title_cache`) - `python3 -m py_compile kitty/tab_bar.py kitty/tabs.py kitty/window.py kitty/options/types.py` : OK ## Synchronisation avec `main` `main` a été fusionné dans la branche (commit `97a686f`) : le conflit sur la ligne d'aide du panneau a été résolu en gardant les deux jeux de raccourcis (`/` recherche, `:` palette, `Entrée` ouvre la sélection, `Ctrl+Entrée` fait le `cd`), et la documentation comme le `README` décrivent maintenant le comportement de `Entrée` et `Ctrl+Entrée` d'après les deux branches. L'API renvoie la demande en `mergeable: true`.
BlackAngelTV added 4 commits 2026-11-09 12:27:23 +01:00
The tab bar only showed the window title, so it was impossible to tell at a
glance whether the last command failed or which directory a tab was in. Expose
the active window's last exit status and a compact working directory to
tab_title_template, and refresh the tab bar when a command finishes.
The + button was only visible when explicitly enabled or while dragging a
window, so new tabs could not be created from the tab bar out of the box. Show
it at rest and keep the tab bar visible with a single tab.
Tabs could only be closed with the keyboard or the middle mouse button, which
is not discoverable. Draw a small cross at the start of each horizontal tab,
close the tab when it is clicked, and avoid starting a drag from the button.
Enter quit the panel and cd'ed the shell, which silently did nothing when the
panel ran in a dock, where there is no shell to move. Enter now behaves like
the right arrow and descends into a directory in place, while Ctrl+Enter keeps
the shell directory change and no longer depends on the selection.
BlackAngelTV added the Kind/Feature label 2026-11-09 13:18:23 +01:00
BlackAngelTV added this to the FWS - ISO project 2026-11-09 13:18:27 +01:00
BlackAngelTV modified the project from FWS - ISO to FWS - KITTY 2026-11-09 13:18:32 +01:00
angi was assigned by BlackAngelTV 2026-11-09 13:18:39 +01:00
BlackAngelTV added the due date 2026-11-11 2026-11-09 13:18:49 +01:00
BlackAngelTV modified the due date from 2026-11-11 to 2026-11-12 2026-11-09 13:19:20 +01:00
BlackAngelTV moved this to In progress in FWS - KITTY on 2026-11-09 13:20:02 +01:00
nocode was assigned by BlackAngelTV 2026-11-11 11:17:39 +01:00
BlackAngelTV changed title from Feat/tab bar indicators to feat(tab-bar): add command status and cwd indicators, close and new tab buttons 2026-11-11 11:18:16 +01:00
Owner

ça marche parfait

ça marche parfait
BlackAngelTV added 1 commit 2026-11-11 20:18:16 +01:00
BlackAngelTV merged commit 02f43b2ee9 into main 2026-11-11 20:19:41 +01:00
BlackAngelTV deleted branch feat/tab-bar-indicators 2026-11-11 20:19:44 +01:00
BlackAngelTV moved this to DONE in FWS - KITTY on 2026-11-11 20:20:17 +01:00
Sign in to join this conversation.
No Reviewers
No labels Kind/Feature
2 Participants
Notifications
Due Date
2026-11-12
Dependencies

No dependencies set.

Reference: FWS/FWS-Kitty#34