hammerspoon: cleanup

This commit is contained in:
2021-02-20 21:40:08 +02:00
parent c5afa43ab7
commit b07556846c
10 changed files with 1 additions and 665 deletions

View File

@@ -248,8 +248,6 @@ function windowLayoutMode.bindWithAutomaticExit(mode, modifiers, key, fn)
end)
end
local status, windowMappings = pcall(require, 'keyboard.windows-bindings')
if not status then
windowMappings = require('keyboard.windows-bindings-defaults')
end
@@ -286,7 +284,6 @@ for i, mapping in ipairs(mappings) do
end
windowLayoutMode:bindWithAutomaticExit(modifiers, trigger, function()
--example: hs.window.focusedWindow():upRight()
local fw = hs.window.focusedWindow()
fw[winFunction](fw)
end)
@@ -302,48 +299,3 @@ end)
windowLayoutMode:bind(modifiers, trigger, function()
windowLayoutMode:exit()
end)
-- https://github.com/dbalatero/VimMode.spoon/tree/21805205e39cc693dbf6ea671d47f2c5ba920262#manual-instructions
--------------------------------
-- TODO: check this out, seems cool
--------------------------------
--local VimMode = hs.loadSpoon("VimMode")
--local vim = VimMode:new()
---- Configure apps you do *not* want Vim mode enabled in
---- For example, you don't want this plugin overriding your control of Terminal
---- vim
--vim
-- :disableForApp('Code')
-- :disableForApp('zoom.us')
-- :disableForApp('iTerm')
-- :disableForApp('iTerm2')
-- :disableForApp('Terminal')
---- If you want the screen to dim (a la Flux) when you enter normal mode
---- flip this to true.
--vim:shouldDimScreenInNormalMode(false)
---- If you want to show an on-screen alert when you enter normal mode, set
---- this to true
--vim:shouldShowAlertInNormalMode(true)
---- You can configure your on-screen alert font
--vim:setAlertFont("Courier New")
---- Enter normal mode by typing a key sequence
--vim:enterWithSequence('jk')
---- if you want to bind a single key to entering vim, remove the
---- :enterWithSequence('jk') line above and uncomment the bindHotKeys line
---- below:
----
---- To customize the hot key you want, see the mods and key parameters at:
---- https://www.hammerspoon.org/docs/hs.hotkey.html#bind
----
---- vim:bindHotKeys({ enter = { {'ctrl'}, ';' } })
----------------------------------
---- END VIM CONFIG
----------------------------------