dodingdaga / DalamudPlugins

GNU Affero General Public License v3.0
4 stars 4 forks source link

Feature request: expand on how the "any command" command and arguments are passed/used #7

Closed someMinecrafter closed 1 year ago

someMinecrafter commented 1 year ago

Currently you need to do: trigger (command argument1 argument2 ... ) with parentheses, if I've not misunderstood. Now with regex, you would be able to specify which group corresponds to what (you can also name the groups in regex, but that might be overkill).

Example input that I'd like to be able to use: trigger command argument1 argument2 ... Example 2: !command trigger, -argument1 -argument2

dodingdaga commented 1 year ago

oh yes! I'll add this to my queue. This will allow customizing how the full command syntax will be sent to the game based on the groups defined (right now it's just prepending "/" to the command group that was set).

dodingdaga commented 1 year ago

Added customization in latest version (1.6.7) Named groups supported. May click "Reset" to re-initialize the regex pattern and replacement based on the "non-regex" simple trigger phrases

dodingdaga commented 1 year ago

Example use (very specific syntax to /ac): Pattern: "(.*)"\s+(\w+)\s+(\w+) Test Input: "Vercure" 1 ac Replacement: /$3 "$1" <$2>

Sending test input to chat window will result to: /ac "Vercure" <1>