m4xshen / hardtime.nvim

Establish good command workflow and quit bad habit
MIT License
1.38k stars 26 forks source link

A way to keep the plugin enabled, report on bad habits, but not block the input #34

Closed keevan closed 1 year ago

keevan commented 1 year ago

Describe the bug An enhancement request. Could we have an option to set it to reporting mode only? For example, I want to still be productive at times, and disabling the plugin (e.g. toggle or Hardtime disable) does not report the times where we might have performed a bad habit.

I plan to review this report from time to time, and be more aware of the bad habits and see if I can improve them, without the hard block on the input key (e.g. when I need to get things done). I know this might not be for everyone, but it might help with the initial transition, or at least a way of using this plugin as a reporting/bad-habit-linter plugin.

Config options Perhaps a report_only flag, or a enforce/report string. There's probably better sounding options.

Expected behavior Plugin is enabled in reporting mode. Pressing J in quick succession would have triggered a print/notification and block the key. However since reporting mode is enabled, it only prints, logs and does NOT block the input. Further presses of the key during the threshold can continue to count towards the bad habits, as I would like this to not change too much of the core behaviour + timings.

Screenshots N/A

Additional context N/A - only trying to be productive, whilst having the ability to see points of improvements.

m4xshen commented 1 year ago

Thanks for your suggestion!

keevan commented 1 year ago

Thanks for the speedy response and updates ☺️