My partner typically texts me her grocery list with each item on a new line.
Would it be difficult to make it so that I could paste this whole list into the command bar and have it separate into separate items based on a delimiter (new line or comma?).
This would be a great time saver for quickly doing lots of entries in general, to be honest. You could quickly generate entries in something like excel and then bulk import them from the command bar.
From a software perspective it doesnāt sound too difficult to add this. UX-wise, Iām not sure where to put this. Maybe something like pressing shift-enter in the task input field would open it up to be multiline, then one task per line?
While you can do that, itās probably a better idea to just use the api for this directly. I bet you even could build a vba script that directly inserts tasks from an excel sheet.
Iām not even concerned about the visuals to be honest. If it was simply a single-line field the same as it currently is, where the text overflows off the end of the text box thatās fine by me. Iād only be using the input field for āpasteā > āenterā when trying to do multiple tasks, assuming the input field can correctly identify separate tasks based on new line or break tags.
Trying to split into a multi-line field could get messy if you try and create 10+ ātasksā at once. It also kinda defeats the purpose and you might as well just enter them separately.
The only real use case for this that I can think of is for quickly pasting content in. It would be nice to just be able to āSelect allā > āCopyā > āPasteā > āEnterā to get things in. Bonus points if it can strip common bullet point formatting (eg. ā-ā) and numbering from the start of each task.
Could you automatically convert new-line or break tags into a delimiter of some sort (eg ā;ā) when itās pasted into the field? This could make it easy to spot and allow the user to move sideways through the text to edit if required.
My shopping lists, I just have a task with the shop name and use a markdown list for the items.
Obviously you cant check those off though. I wonder if itās possible to have ācheckableā list within the text areas?
Like this
EDIT: Oooh that already works! There is just no button in the edit toolbar for itā¦and the ācheckedā status doesnāt save if you just click (as opposed to edit).
Markdown syntax example:
- [ ] item 1
- [ ] item 2
- [x] item 3
UI wise this feels right to me? Not sure it helps with the past to nice checklist conversion though.
I mean, that does work but itās not much different to just reading the SMS my partner sends me with details of what to get aha. I donāt know if itās worth the effort to format every grocery list in such detail vs just trying to decipher the plain text. Which is why a simple list based on pasting preformated text would be incredible.
That said, I can totally understand that it might not be worth the dev time if they have more important things to work on. Iād definitely make use of it if you added it though
Itās not entirely beyond possible that you could paste a space or comma separated list into the text area, select it, then tap a āchecklistā button to have it automatically formatted.
Just made this list below by writing each animal on a new line, selecting all lines and clicking on the ordered list button.
horse
monkey
pig
cow
But yeah, the functionality isnāt there right now for checklists, I was just pointing out that the basis of it is. But Iām not a devā¦
Iāve actually implemented this a few days ago in 442e6b12e0. You can now either paste a block of text with multiple lines or create new lines with shift + enter in the ānew taskā input box in the list view. Vikunja will then create a new task for each line of text input.
Already in unstable and on try, please test and tell me what you think!
Finally got around to trying that on try and it doesnāt seem to work.
Both pasting text with new lines into an edit textarea and using soft return in the add new task input box just put everything on one line. Even when I added list formatting. (Well, pasting into a textarea with list formatting works, just no the add new task input.)
The problem where multiple tasks get the same ID is now fixed in 55dd7d2981, please check with the next unstable build (should be ready for deployment in ~45min, also on try).