kraanzu / dooit

An awesome TUI todo manager
https://pypi.org/project/dooit/
MIT License
2.07k stars 100 forks source link

[BUG] Trying to copy tasks between workspaces exits with an exception #157

Open Foxicution opened 10 months ago

Foxicution commented 10 months ago

Using \<y> to yank and copy todo items from one workspace to another causes an exception. 🐛

To Reproduce 🐣 Steps to reproduce the behavior:

  1. Create two or more workspaces \<a> \<description> \<enter>.
  2. Add a todo item into a workspace \<l> \<a> \<description> \<enter>
  3. Yank the todo item \<y>
  4. Move to a different workspace \<h> \<j>
  5. Paste the todo item \<p>
  6. Press any key afterwards, an exception should be thrown, no new items get added to the workspace.

Expected behavior 🤔 The todo item appears in the new workspace.

Desktop (please complete the following information): 🤖

Additional info I tried other combinations, like moving into the workspace, but that doesn't work either.

kraanzu commented 9 months ago

Hmmm...This is actually expected behaviour since all workspaces have their own local clipboard, I'll add an option to copy to a global clipboard :D