hammerspoon extend apply (http://www.hammerspoon.org/go/#helloworld)
-
install hammerspoon
brew install hammerspoon
-
See to .hammerspoon file
cd ~/.hammerspoon
-
create file
touch init.lua
-
init.lua import content
-- copy
-- 首字母和下划线首字母转驼峰
require "hammerspoon-extend.copy.letters_capital"
-- 下划线转驼峰
require "hammerspoon-extend.copy.hump_strikethrough"
-- 中划线转驼峰
require "hammerspoon-extend.copy.hump"
-- 剪切历史
require "hammerspoon-extend.copy.histroy"
-- 复制 PR
require "hammerspoon-extend.copy.pick_branch"
-- screen
-- 寻找鼠标
require "hammerspoon-extend.screen.mouse"
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "W", function()
hs.alert.show("Hello World!")
end)
-
clone hammerspoon-extend folder
git clone git@github.com:demoManito/hammerspoon-extend.git
search project Search in the project: hs.hotkey.bind
, the binding of key, example:
Increase content in a separate folder