Comments (5)
我也不懂 lua。当时是看完 Learn Lua in Y minutes 就尝试写了,没多学别的什么东西 ……
感觉很多时间都花看 Hammerspoon 文档上了,到现在好像也没出什么大问题。(-ι_- )
以我有限的理解,timer 全局变量与否与 lua 的 gc 回收关系不大。你可以检查下该 timer 是不是还在运行,有没有变量重复命名被覆盖的情况?或者函数本身写的就有问题。
from awesome-hammerspoon.
稍微看了下官方文档, 我问题应该是出在timer没有使用变量保存起来, 不过还是非常感谢... 感觉用hammerspoon的人好少啊, 这个东西真的是神器.
from awesome-hammerspoon.
我刚点进你的 repo 看到相关代码了。确实是因为你没有把 hs.timer 对象赋值,没赋值的话这个对象就是“野”的,gc 的时候会被回收掉。
用的人是少了点,上手难度高了些。不过自己感觉有用就成。
from awesome-hammerspoon.
多谢了
不过真的 感谢, 我一开只是知道这个软件, 但是后面github上搜索到你的配置, 真是, 我觉得你真的有想法. 我都没想过可以这么弄.
from awesome-hammerspoon.
大概扫一遍 API 文档,就慢慢有了些想法,就想尝试下能不能实现 ……
但是文档其实也没有细看全看,只是知道它们大概能做什么,到写的时候边写边看。
有空多交流交流哈,有想法或代码欢迎 contribute。
from awesome-hammerspoon.
Related Issues (20)
- 当我关闭 shortcut 显示后,窗口模式下,如何让那个红点居中呢? HOT 8
- Add a shortcut to show/hide all widgets HOT 5
- Unable to disable window hints HOT 1
- Calendar date is not correct HOT 1
- CountDown spoon causes switching spaces to focus on Hammerspoon rather than currently visible application HOT 5
- interacting with workspaces? HOT 1
- A alternative window mover approach? HOT 5
- Can I only use left alt with hammerspoon? HOT 1
- How to disable the cheatsheet when I press "alt + A"
- Can window be set to two-thirds and one-third of the screen? HOT 1
- how to open Terminal? HOT 1
- WinWin Spoon is newer than this in Hammerspoon website
- Some Window Manipulations don't work
- git warning HOT 1
- BingDaily don't refresh every 3h
- 老哥,HCalendar被Dock栏遮挡如何解决 HOT 2
- WinWin doesn't split windows equal size
- Hsearch call chooser:hide() block me 3 seconds HOT 1
- Slow windows hints HOT 1
- 大佬,如果只想要cheatsheet和aria2c这两个功能的话,我应该怎么编辑配置文件呢
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-hammerspoon.