slated-obsidian icon indicating copy to clipboard operation
slated-obsidian copied to clipboard

Moving incomplete tasks from current day to current day causes unbreakable loop

Open JFincher42 opened this issue 3 years ago • 0 comments

Describe the bug Moving incomplete tasks from the current file to the current day's note can cause an infinite loop if the current file is also the current day's note. Breaking this loop requires restarting Obsidian.

To Reproduce Steps to reproduce the behavior: 0. Setup Slated properly

  1. Edit today's Daily Note.
  2. Add some tasks to the daily note.
  3. While editing today's daily note, trigger the "Slated: Move incomplete tasks from current file to today" action

Expected behavior Nothing - Slated should recognize the target is also the source and do nothing.

Screenshots

Desktop (please complete the following information):

  • OS: Manjaro Linux, kernel 5.11.16-2-MANJARO x86_64, KDE Plasma 5.21.4
  • Obsidian Version: v0.11.13
  • Slated Version: v0.3.0

Additional context I've accidentally triggered this several times via fat-finger errors.

JFincher42 avatar May 03 '21 13:05 JFincher42