@humanu/orchestra 0.5.76 → 0.5.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/resources/api/tmux.sh
CHANGED
|
@@ -645,10 +645,21 @@ _tmux_workspace_session_tabs() {
|
|
|
645
645
|
printf '%s' "$tabs"
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
+
_tmux_current_session_label() {
|
|
649
|
+
local session_display_name="$1"
|
|
650
|
+
local label escaped_label
|
|
651
|
+
|
|
652
|
+
label="$(_tmux_truncate_tab_label "$session_display_name" 28)"
|
|
653
|
+
escaped_label="$(_tmux_status_escape_text "$label")"
|
|
654
|
+
printf '#[fg=#7aa2f7,bg=#1a1b26,bold] %s #[fg=#565f89,bg=#1a1b26,nobold]│#[default]' "$escaped_label"
|
|
655
|
+
}
|
|
656
|
+
|
|
648
657
|
_tmux_orchestra_status_left() {
|
|
649
658
|
local session_name="$1"
|
|
650
659
|
local session_display_name="$3"
|
|
651
|
-
|
|
660
|
+
printf '%s%s' \
|
|
661
|
+
"$(_tmux_current_session_label "$session_display_name")" \
|
|
662
|
+
"$(_tmux_workspace_session_tabs "$session_name" "$session_display_name")"
|
|
652
663
|
}
|
|
653
664
|
|
|
654
665
|
_tmux_orchestra_status_right() {
|
|
@@ -680,6 +691,8 @@ _tmux_configure_orchestra_bindings() {
|
|
|
680
691
|
"run-shell -b \"$new_session_command\"" 'next-window' >/dev/null 2>&1 || true
|
|
681
692
|
tmux bind-key -T prefix l if-shell -F '#{@orchestra_display_name}' \
|
|
682
693
|
"run-shell -b \"$list_command\"" 'last-window' >/dev/null 2>&1 || true
|
|
694
|
+
tmux bind-key -T prefix q if-shell -F '#{@orchestra_display_name}' \
|
|
695
|
+
"$close_prompt_command" 'display-panes' >/dev/null 2>&1 || true
|
|
683
696
|
tmux bind-key -T prefix X if-shell -F '#{@orchestra_display_name}' \
|
|
684
697
|
"$close_prompt_command" 'confirm-before -p "kill-session #S? (y/n)" kill-session' >/dev/null 2>&1 || true
|
|
685
698
|
tmux bind-key -T prefix r if-shell -F '#{@orchestra_display_name}' \
|
|
@@ -1603,7 +1616,7 @@ printf "%s\n" \
|
|
|
1603
1616
|
"Ctrl+b, d Detach and return to Orchestra" \
|
|
1604
1617
|
"Ctrl+b, r Rename the current Orchestra session" \
|
|
1605
1618
|
"Ctrl+b, n New Orchestra session in this worktree" \
|
|
1606
|
-
"Ctrl+b,
|
|
1619
|
+
"Ctrl+b, q Close current session and switch next" \
|
|
1607
1620
|
"Ctrl+b, l List active sessions" \
|
|
1608
1621
|
"" \
|
|
1609
1622
|
"Ctrl+b, Left Previous Orchestra session in this workspace" \
|
|
Binary file
|
|
Binary file
|
|
Binary file
|