Skip to content

Commit

Permalink
Adding binding for new-window
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbor committed Apr 17, 2024
1 parent 18c941b commit bb28083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ Currently available internal commands (`bindi`):
* `next-tab`: go to next tab
* `prev-tab`: go to previous tab
* `close-tab`: close current tab
* `new-window`: open new window with same working directory (requires `vte.sh`).


### Padding
Expand Down
2 changes: 2 additions & 0 deletions src/kermit.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ static gboolean termAction(GtkWidget *terminal, const char *action) {
gtk_notebook_remove_page(GTK_NOTEBOOK(notebook),
gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook)));
gtk_widget_queue_draw(GTK_WIDGET(notebook));
} else if (strcmp(action, "new-window") == 0) {
termClone(VTE_TERMINAL(terminal));
} else {
return FALSE;
}
Expand Down

0 comments on commit bb28083

Please sign in to comment.