dkandalov / limited-wip

IntelliJ plugin to limit your work-in-progress

Home Page:https://plugins.jetbrains.com/plugin/7655

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stop time if commit dialog is open

ollin opened this issue · comments

commented

Scenario:

Using the clock as the constraint.

editing -> finished work -> open commit dialog one second before the time runs out - add 2 seconds -> limitWip reverts -> change lost

Improvement:

Stop the clock. (not reset) Continue the clock if the dialog closes without commit

commented

can use "Stop auto-revert" - Shortcut

Implemented as:

  • open commit dialog one second before the time runs out - add 2 seconds
  • no auto-revert, timer reaches timeout but doesn't start over
  • when commit dialog closes auto-revert is done (if all changes were committed, there is nothing to revert) and timer starts ticking