mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Split Vertically -> Split Right, Split Horizontally -> Split Down (#3559)
This commit is contained in:
parent
9418dfd3aa
commit
04a5e75c15
5 changed files with 14 additions and 14 deletions
|
|
@ -15,10 +15,10 @@ const commands = {
|
||||||
setTimeout(app.createWindow, 0);
|
setTimeout(app.createWindow, 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'pane:splitVertical': focusedWindow => {
|
'pane:splitRight': focusedWindow => {
|
||||||
focusedWindow && focusedWindow.rpc.emit('split request vertical');
|
focusedWindow && focusedWindow.rpc.emit('split request vertical');
|
||||||
},
|
},
|
||||||
'pane:splitHorizontal': focusedWindow => {
|
'pane:splitDown': focusedWindow => {
|
||||||
focusedWindow && focusedWindow.rpc.emit('split request horizontal');
|
focusedWindow && focusedWindow.rpc.emit('split request horizontal');
|
||||||
},
|
},
|
||||||
'pane:close': focusedWindow => {
|
'pane:close': focusedWindow => {
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,8 @@
|
||||||
"tab:jump:prefix": "command",
|
"tab:jump:prefix": "command",
|
||||||
"pane:next": "command+]",
|
"pane:next": "command+]",
|
||||||
"pane:prev": "command+[",
|
"pane:prev": "command+[",
|
||||||
"pane:splitVertical": "command+d",
|
"pane:splitRight": "command+d",
|
||||||
"pane:splitHorizontal": "command+shift+d",
|
"pane:splitDown": "command+shift+d",
|
||||||
"pane:close": "command+w",
|
"pane:close": "command+w",
|
||||||
"editor:undo": "command+z",
|
"editor:undo": "command+z",
|
||||||
"editor:redo": "command+y",
|
"editor:redo": "command+y",
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@
|
||||||
"tab:jump:prefix": "ctrl",
|
"tab:jump:prefix": "ctrl",
|
||||||
"pane:next": "ctrl+pageup",
|
"pane:next": "ctrl+pageup",
|
||||||
"pane:prev": "ctrl+pagedown",
|
"pane:prev": "ctrl+pagedown",
|
||||||
"pane:splitVertical": "ctrl+shift+d",
|
"pane:splitRight": "ctrl+shift+d",
|
||||||
"pane:splitHorizontal": "ctrl+shift+e",
|
"pane:splitDown": "ctrl+shift+e",
|
||||||
"pane:close": "ctrl+shift+w",
|
"pane:close": "ctrl+shift+w",
|
||||||
"editor:undo": "ctrl+shift+z",
|
"editor:undo": "ctrl+shift+z",
|
||||||
"editor:redo": "ctrl+shift+y",
|
"editor:redo": "ctrl+shift+y",
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,8 @@
|
||||||
"tab:jump:prefix": "ctrl",
|
"tab:jump:prefix": "ctrl",
|
||||||
"pane:next": "ctrl+pageup",
|
"pane:next": "ctrl+pageup",
|
||||||
"pane:prev": "ctrl+pagedown",
|
"pane:prev": "ctrl+pagedown",
|
||||||
"pane:splitVertical": "ctrl+shift+d",
|
"pane:splitRight": "ctrl+shift+d",
|
||||||
"pane:splitHorizontal": "ctrl+shift+e",
|
"pane:splitDown": "ctrl+shift+e",
|
||||||
"pane:close": "ctrl+shift+w",
|
"pane:close": "ctrl+shift+w",
|
||||||
"editor:undo": "ctrl+shift+z",
|
"editor:undo": "ctrl+shift+z",
|
||||||
"editor:redo": "ctrl+shift+y",
|
"editor:redo": "ctrl+shift+y",
|
||||||
|
|
|
||||||
|
|
@ -22,17 +22,17 @@ module.exports = (commandKeys, execCommand) => {
|
||||||
type: 'separator'
|
type: 'separator'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Split Horizontally',
|
label: 'Split Down',
|
||||||
accelerator: commandKeys['pane:splitHorizontal'],
|
accelerator: commandKeys['pane:splitDown'],
|
||||||
click(item, focusedWindow) {
|
click(item, focusedWindow) {
|
||||||
execCommand('pane:splitHorizontal', focusedWindow);
|
execCommand('pane:splitDown', focusedWindow);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Split Vertically',
|
label: 'Split Right',
|
||||||
accelerator: commandKeys['pane:splitVertical'],
|
accelerator: commandKeys['pane:splitRight'],
|
||||||
click(item, focusedWindow) {
|
click(item, focusedWindow) {
|
||||||
execCommand('pane:splitVertical', focusedWindow);
|
execCommand('pane:splitRight', focusedWindow);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue