File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -342,6 +342,21 @@ function App() {
342342 dialog . clear ( )
343343 } ,
344344 } ,
345+ {
346+ title : "Suspend terminal" ,
347+ value : "terminal.suspend" ,
348+ keybind : "terminal_suspend" ,
349+ category : "System" ,
350+ onSelect : ( ) => {
351+ process . once ( "SIGCONT" , ( ) => {
352+ renderer . resume ( )
353+ } )
354+
355+ renderer . suspend ( )
356+ // pid=0 means send the signal to all processes in the process group
357+ process . kill ( 0 , "SIGTSTP" )
358+ } ,
359+ } ,
345360 ] )
346361
347362 createEffect ( ( ) => {
Original file line number Diff line number Diff line change @@ -430,6 +430,7 @@ export namespace Config {
430430 history_next : z . string ( ) . optional ( ) . default ( "down" ) . describe ( "Next history item" ) ,
431431 session_child_cycle : z . string ( ) . optional ( ) . default ( "<leader>right" ) . describe ( "Next child session" ) ,
432432 session_child_cycle_reverse : z . string ( ) . optional ( ) . default ( "<leader>left" ) . describe ( "Previous child session" ) ,
433+ terminal_suspend : z . string ( ) . optional ( ) . default ( "ctrl+z" ) . describe ( "Suspend terminal" ) ,
433434 } )
434435 . strict ( )
435436 . meta ( {
Original file line number Diff line number Diff line change @@ -846,6 +846,10 @@ export type KeybindsConfig = {
846846 * Previous child session
847847 */
848848 session_child_cycle_reverse ?: string
849+ /**
850+ * Suspend terminal
851+ */
852+ terminal_suspend ?: string
849853}
850854
851855export type AgentConfig = {
You can’t perform that action at this time.
0 commit comments