Skip to content

Commit a315c42

Browse files
committed
Promote window fixes
1 parent 850bdf8 commit a315c42

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ This plugin solves the above problems.
2828
some other binding.
2929
- `prefix + @` - promote current pane into a new session.<br/>
3030
Analogous to how `prefix + !` breaks current pane to a new window.
31+
- `prefix + ctrl-@` - promote current window into a new session.
3132
- `prefix + t<secondary-key>` - join currently marked pane (`prefix + m`) to current session/window, and switch to it
3233
- secondary-keys
3334
- `h`, `-`, `"`: join horizontally

scripts/promote_window.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ number_of_windows() {
1717
}
1818

1919
create_new_session() {
20-
TMUX="" tmux -S "$(tmux_socket)" new-session -c "$WINDOW_CURRENT_PATH" -s "se-$CURRENT_WINDOW_NAME" -d -P -F "#{session_name}"
20+
TMUX="" tmux -S "$(tmux_socket)" new-session -c "$WINDOW_CURRENT_PATH" -s "$CURRENT_WINDOW_NAME" -d -P -F "#{session_name}"
2121
}
2222

2323
new_session_window_id() {

sessionist.tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ main() {
115115
set_alternate_session_binding
116116
set_new_session_binding
117117
set_promote_pane_binding
118-
set_promote_window_binding
118+
set_promote_window_binding
119119
set_join_pane_binding
120120
set_kill_session_binding
121121
}

0 commit comments

Comments
 (0)