LazyDope / avrae-stuff

Here you will find my aliases that I've made public.
5 stars 2 forks source link

Suggestion: !bag <bag> order|o|# to sort items #10

Open Love-chan5252 opened 1 year ago

Love-chan5252 commented 1 year ago

Just a user function/command to sort the items in a bag in alphabetical order.

Would be very, very useful for making !bag items lined up with characters' items on dicecloud or DDB.

Example:

Before:

Backpack 6x Rations (1 day) 1x Silk Rope (50 feet) 1x Bedroll 1x Mess Kit 8x Torch 1x Waterskin 1x Tinderbox

After:

Backpack 1x Bedroll 1x Mess Kit 6x Rations (1 day) 1x Silk Rope (50 feet) 1x Tinderbox 8x Torch 1x Waterskin

LazyDope commented 1 year ago

The 'o' short form is already in use, so it'll need to be something that hasn't been used yet, or it can be not given a short form.

LazyDope commented 1 year ago

Oh and the '#' short symbol is also already in use. These both are in use by open and swap respectively

steffleupagus commented 1 year ago

Maybe 'f' (for "fix order") and the | character for the short symbol

On Mon, Dec 5, 2022 at 11:01 AM LazyDope @.***> wrote:

Oh and the '#' short symbol is also already in use. These both are in use by open and swap respectively

— Reply to this email directly, view it on GitHub https://github.com/LazyDope/avrae-stuff/issues/10#issuecomment-1337734113, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARLSLMDHTA4GI6IP3FEYJQTWLYNXHANCNFSM6AAAAAAST6B7EE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Love-chan5252 commented 1 year ago

Doesn't the | character already separate the other marked characters? afaik every special character on the standard keyboard is being used except like "." and "\" and I don't think we're using backslash lmao

Edit: We don't seem to have a problem with * so maybe we can use `?

(By the way, the !bag help command currently shows the ignore case example command with a \ instead of a \