mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Add support for SIGQUIT, SIGSTOP, and tmux special character bindings
This commit is contained in:
parent
a577dee52c
commit
8befa1ebf7
2 changed files with 21 additions and 0 deletions
|
|
@ -101,6 +101,15 @@ const commands: Record<string, (focusedWindow?: BrowserWindow) => void> = {
|
||||||
'editor:break': (focusedWindow) => {
|
'editor:break': (focusedWindow) => {
|
||||||
focusedWindow?.rpc.emit('session break req');
|
focusedWindow?.rpc.emit('session break req');
|
||||||
},
|
},
|
||||||
|
'editor:stop': (focusedWindow) => {
|
||||||
|
focusedWindow?.rpc.emit('session stop req');
|
||||||
|
},
|
||||||
|
'editor:quit': (focusedWindow) => {
|
||||||
|
focusedWindow?.rpc.emit('session quit req');
|
||||||
|
},
|
||||||
|
'editor:tmux': (focusedWindow) => {
|
||||||
|
focusedWindow?.rpc.emit('session tmux req');
|
||||||
|
},
|
||||||
'editor:search': (focusedWindow) => {
|
'editor:search': (focusedWindow) => {
|
||||||
focusedWindow?.rpc.emit('session search');
|
focusedWindow?.rpc.emit('session search');
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,18 @@ rpc.on('session break req', () => {
|
||||||
store_.dispatch(sessionActions.sendSessionData(null, '\x03'));
|
store_.dispatch(sessionActions.sendSessionData(null, '\x03'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
rpc.on('session stop req', () => {
|
||||||
|
store_.dispatch(sessionActions.sendSessionData(null, '\x1a'));
|
||||||
|
});
|
||||||
|
|
||||||
|
rpc.on('session quit req', () => {
|
||||||
|
store_.dispatch(sessionActions.sendSessionData(null, '\x1c'));
|
||||||
|
});
|
||||||
|
|
||||||
|
rpc.on('session tmux req', () => {
|
||||||
|
store_.dispatch(sessionActions.sendSessionData(null, '\x02'));
|
||||||
|
});
|
||||||
|
|
||||||
rpc.on('session search', () => {
|
rpc.on('session search', () => {
|
||||||
store_.dispatch(sessionActions.onSearch());
|
store_.dispatch(sessionActions.onSearch());
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue