-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make splitting while pasting multiline instructions configurable #1359
Comments
Hello @efelon. The behavior you describe is intended behavior and is dedicatedly programmed as such. It is designed to copy over from websites hosting recipes that do not conform to the schema.org standard. There, the instruction steps are separated by newlines. Thus, to import these recipes in a quick copy&paste manner, any newlines are parsed and the instructions are separated at these points. Having this in mind, I see multiple tasks at hand. First, there could be a user-global setting if the splitting of recipes should be done (current behavior), should not be done or each time a question should be triggered on the user. Also, I see it was necessary to allow merging two adjacent instructions into one to undo the separation process. One idea I has was to use a modal dialog in which the imported text can be configured in a way that the user can select where new instructions are starting and where just a line break is to be inserted. This would be the variant with the question mentioned above. Let's see how others think of this issue and if there are even better suggestions... |
Is it true that usually in cases where we want multiple ingredients / instructions to be added, each line starts with a bullet (e.g. -) or a number? If yes, we could only separate lines if such markers are present. We already have a way to identify and remove such common prefixes, which we could leverage for this. |
Thanks @christianlupus for taking the time to create a new issue and your explanation.
I would be fine with a global setting, which I could disable for the time when copy pasting existing recipes. Usually there are more then one. And enable it afterwards. Having the user questioned every time feels like too much overhead in the workflow. Maybe you could provide a new button in the create/edit view like so: + No global option which needs to be remembered
Also a nice proposal, which would be nice to have anyway. 😉
That is much more effort than the other ones, I believe. This would also open the floor to an infinite amount of new request (e.g. Pictures, Links, Text formatting, ...) and you would end up with a full fledged WYSIWYG editor. I mean, I wouldn't say no, but seams overkill?! |
This PR/issue depends on:
|
This should be addressed in #1244 |
Recently this message was posted in another issue:
Originally posted by @efelon in #1231 (comment)
As this issue was unrelated to the topic it was posted in, it should be tracked in a new issue (here).
Related subtopics:
Depends on #1067
The text was updated successfully, but these errors were encountered: