gourmet icon indicating copy to clipboard operation
gourmet copied to clipboard

Wrong paste behaviour after using "Paste ingredients" option

Open pled opened this issue 3 years ago • 3 comments

When creating a new recipe, after having used "Paste ingredients" option from Ingredients page, if you use "Ctrl-v" in the Instructions page, the paste is done in the ingredients page.

Steps to Reproduce

  1. Create a new recipe
  2. Copy ingredients list from a recipe somewhere on the web for example.
  3. In the Ingredients page, use the "Paste ingredients" option to paste your list of ingredients.
  4. Now copy instructions from the recipe somewhere on the web.
  5. Move to the Ingredients page in Gourmet, and use Ctrl-v to paste your instructions : the content is pasted into the ingredients page.

NOTE 1 : using right click, Paste option is ok, the content is correctly pasted in the instructions page. NOTE 2 : if you don't use first the "Paste ingredients" option, then Ctrl-v wortks as expected in the instructions pages.

Expected Behavior

Ctrl-v should paste at the current page.

Environment

  • Operating System: Ubuntu 20.04
  • Version or commit id: 1.0.0 or 1.0.1 (same)
  • Installed as Flatpak or Python package?: Flatpak

pled avatar Aug 06 '21 17:08 pled

Thanks for the report! I'll have a look and estimate what's the complexity of this issue

cydanil avatar Aug 06 '21 18:08 cydanil

This is a very old issue, which I could partially resolve (but then pasting ingredients does not automatically parse them :/ ).
For your information, I'm going to keep working on it, but in a new Gourmand project.

cydanil avatar Aug 20 '21 13:08 cydanil

Thank you Cyril. Note this was working fine using Gourmet Python 2.7. Happy to learn about this new project "Gourmand". Good name by the way, keep on using french words ! ;) And big thanks for your work !

pled avatar Aug 21 '21 15:08 pled