javalent / dice-roller

Inline dice rolling for Obsidian.md
268 stars 28 forks source link

Allow unique flag to apply to lookup lists #238

Open gypsyav opened 1 year ago

gypsyav commented 1 year ago

Check for existing bug reports before submitting.

Expected Behavior

When using the unique flag to look up more than one item in a list each result will be unique and no two items will be the same.

Current behaviour

When creating a lookup list for more than one item and adding the unique flag the roll ignores the flag and the results aren't always unique.

Reproduction

  1. open sandbox vault
  2. install dice roller plugin
  3. create note with list of items
  4. create dice code to look up multiple items from the list with the unique flag

Which Operating Systems are you using?

Obsidian Version Check

1.3.7 and 1.3.5

Plugin Version

9.3.0

Confirmation

Possible solution

This is in regard to a Discord discussion where javelent suggested I open a Git Hub issue.

https://discord.com/channels/686053708261228577/932707309195493416/1136682654662660279