3 ms·
> bound to some custom hot keys to move/resize my windows around my external monitors iTerm2's hotkey is pretty terrible in my opinion. I've bound this functio
by prashnts 10y ago
> bound to some custom hot keys to move/resize my windows around my external monitors
iTerm2's hotkey is pretty terrible in my opinion. I've bound this function to make it work for me:
function iTermHotkeyHandler()
local iterm = hs.application.get('iTerm2')
if (iterm) then
local window = iterm:mainWindow()
if not window then
if iterm:selectMenuItem('New Window') then
window = iterm:mainWindow()
end
return
end
if iterm:isFrontmost() then
iterm:hide()
else
window:focus()
end
end
end
hs.hotkey.bind('cmd', 'space', iTermHotkeyHandler)
*me: I really should put these in some gist somewhere.
- paublyrne 10y agoWhat don't you like about iTerm's show/hide function?
- prashnts 10y agoHotkey windows do not show up in cmd+tab switcher. It's annoying if you activate the hotkey with cmd+space, press cmd+tab to go to previous window, and instinctively press cmd+tab hoping to get back to the terminal window. But that doesn't happen.
- paublyrne 10y agoOK I understand what you mean. I've never found that to be a problem for me but I'm glad you were able to come up with a solution.
- gnachman 10y agoWould you mind filing a bug? The next version is focused on hotkey window improvements and this is very easy to fix. I'm away from my machine now or I'd do it myself. Thanks! ITerm2.com/bugs