dodingdaga / DalamudPlugins

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

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

Closed someMinecrafter closed 2 years ago

someMinecrafter commented 2 years 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 2 years 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 2 years 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 2 years 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>