1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-02 22:58:04 +00:00

redo input translation + shift-paste

This commit is contained in:
kepler155c@gmail.com
2017-10-15 19:55:05 -04:00
parent 9b8b5238b0
commit 2721840596
6 changed files with 286 additions and 197 deletions

View File

@@ -2,12 +2,10 @@ _G.requireInjector()
local Util = require('util')
local keys = _G.keys
local multishell = _ENV.multishell
-- control-o - overview
multishell.addHotkey(keys.o, function()
-- overview
multishell.addHotkey('control-o', function()
for _,tab in pairs(multishell.getTabs()) do
if tab.isOverview then
multishell.setFocus(tab.tabId)
@@ -15,8 +13,8 @@ multishell.addHotkey(keys.o, function()
end
end)
-- control-backspace - restart tab
multishell.addHotkey(keys.backspace, function()
-- restart tab
multishell.addHotkey('control-backspace', function()
local tabs = multishell.getTabs()
local tabId = multishell.getFocus()
local tab = tabs[tabId]
@@ -29,8 +27,8 @@ multishell.addHotkey(keys.backspace, function()
end
end)
-- control-tab - next tab
multishell.addHotkey(keys.tab, function()
-- next tab
multishell.addHotkey('control-tab', function()
local tabs = multishell.getTabs()
local visibleTabs = { }
local currentTabId = multishell.getFocus()