s-unscrupulous / idea_seat Goto Github PK
View Code? Open in Web Editor NEWIDEA 久坐提醒插件
IDEA 久坐提醒插件
Hope to be compatible with webstorm goland clion
感谢您制作的插件,非常新颖且实用!
希望后续增加以下功能:
时间到了,只有文字提醒,没有图
ScheduledExecutorService service = Executors
.newSingleThreadScheduledExecutor();
AtomicInteger count = new AtomicInteger();
service.scheduleAtFixedRate(() -> {
if (QueryListener.flag) {
QueryListener.flag = false;
count.set(0);
} else {
count.getAndIncrement();
if (count.get() > 5) {
ScheduledService.getInstance().removeTask();
}
}
}, 5, 60, TimeUnit.SECONDS);
这里当count>5时,取消定时任务,意思是五分钟没移动鼠标,在第六分钟取消定时任务的意思吗?
@Override
public void mouseMoved(@NotNull EditorMouseEvent e) {
long now = System.currentTimeMillis();
flag = true;
if (SettingAction.isStart && now - beforeMouse > Constant.Infor.STOP_TIME && !ScheduledService.getInstance().isTaskRunning()) {
ScheduledService.getInstance().addTask(0, true);
}
beforeMouse = now;
}
这里的判断是两次时间间隔超过10分钟,则重新开始定时任务。
那如果用户六分钟未移动鼠标,使定时任务停止。在第七分钟移动了一下鼠标,之后每次移动鼠标间隔都不会超过10分钟,定时任务是否永远不会启动了?
另外,为啥我的提示只有文字,没有动图
我们缺的是插件嘛 我们缺个这样的女票啊 哈哈哈
RT
pycharm安装这个插件就提示不兼容,pycharm2021.3.1版本
Android Studio都是单身么。。。
我敲代码时候鼠标很少动呀,都是光标在动,结果过了好久都不提示。。。
动图打不开,是不是内置图片损坏了
goland clion 什么时候可以支持啊
这个插件太棒啦!可以支持下PyCharm吗?
vscode版本有没有计划开发啊
建议休息时窗口显示5分钟倒计时
安装完成重启后,发现 tools 菜单下没有设置项,然后看了下已安装插件列表,发现报错了。如上图所示
PhpStorm 2021.1.4
Build #PS-211.7628.25, built on June 30, 2021
Licensed to PhpStorm Evaluator
Expiration date: May 17, 2024
Runtime version: 11.0.11+9-b1341.60 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins: com.github.holgerbrandl.pasteimages/ (1.2.10), com.github.wenzewoo.jetbrains.plugin.jetbrains-markdown-image-support (1.4.1-SNAPSHOT), com.shuzijun.markdown-editor (1.12), io.zhile.research.ide-eval-resetter (2.3.5), zielu.gittoolbox (211.9.9), dev.ekvedaras.laravelquery (2.1.1), com.laravel_idea.plugin (6.2.2.211)
建议添加是否检查鼠标移动的按键
我大部分时间都是通过VIM编代码,同时很多都是用快捷键方式。所以容易触发取消时间倒计时。希望能够增添这个关闭鼠标移动检测选项。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.