nanawel / our-shopping-list

OSL is a simple shared list web-application based on Node and VueJS. Typical uses include shopping lists of course, and any other small todo-list that needs to be used collaboratively.
GNU Affero General Public License v3.0
82 stars 8 forks source link

feat: quantity input detection #20

Closed taku-nm closed 7 months ago

taku-nm commented 8 months ago

It would be sensible to allow for a sort of rich input detection using a specific syntax to detect quantity, avoiding the extra step of creating an entry only to then edit it. I'd suggest something like 2x Toast in order to create an entry called Toast with the quantity set to 2.

Ideally this would be a settings that one can enable on a per list or maybe per board basis.

nanawel commented 7 months ago

That could be handy indeed. On the same topic, a user recently suggested that adding a new item could automatically open the "details" popin in order to set additional info without having to search and reopen the item that's just been created.

I guess both ideas are good but should be toggleable using configuration on a per instance level.

nanawel commented 7 months ago

Merry Xmas :santa: You should be able to test this feature on https://dev.osl.lanterne-rouge.info/

If it's okay for you, I'll soon publish a 2.9.0 with it.

Note: I've also enabled the "open edit dialog on item creation" FYI.

taku-nm commented 7 months ago

Merry Christmas! This looks very good but it would need an option to disable the automatic details pop-up. After all it's just adding another click which I certainly don't need given that it already detects the 2x format for quantity and I never use the details panel.

nanawel commented 7 months ago

Of course, each feature will be toggleable with the following variables:

nanawel commented 7 months ago

Released in 2.9.0.