Skyblocker icon indicating copy to clipboard operation
Skyblocker copied to clipboard

Command Shortcuts QoL (Regex Support)

Open Ashley-Cause opened this issue 1 year ago • 0 comments

Add optional regex support command shortcuts. could be a little niche, but QoL nonetheless, it would allow you to have multiple commands bound to essentially the same shortcut.

How I currently use shortcuts: Currently I've got about 20 different command shortcuts saved like /md -> /warp desert or /museum -> /warp museum, and a command argument to go from / -> /bp (aka a blank command name redirects to /bp)

With regex something like this would be greatly simplified: /([0-9]+) -> /bp $1: /18 outputs /bp 18 /([a-zA-Z]) -> /warp $1: /wiz outputs /warp wiz

Regex would also help the small (but really annoying imo) mistake where you type things in caps and then its not recognised as a command, because you could set a command to match regardless of the case using something like [a-zA-Z]+.

Edit: Sending /skyblocker to /skyblocker config as a default would also be a nice change (but not really necessary).

Ashley-Cause avatar Jun 27 '24 10:06 Ashley-Cause