GithubHelp home page GithubHelp logo

idea_seat's Issues

好评+一些建议

感谢您制作的插件,非常新颖且实用!

希望后续增加以下功能:

  • 休息状态下增加倒计时功能
  • 提供计时器的更多选项
  • 支持休息提醒的图片和提示问题的自定义

判断鼠标未移动代码是否有问题

image

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分钟,定时任务是否永远不会启动了?
另外,为啥我的提示只有文字,没有动图

女朋友

我们缺的是插件嘛 我们缺个这样的女票啊 哈哈哈

PHPStorm安装后,报错了

image

image

安装完成重启后,发现 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编代码,同时很多都是用快捷键方式。所以容易触发取消时间倒计时。希望能够增添这个关闭鼠标移动检测选项。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.