Replies: 5 comments 1 reply
-
I'll have a look, I like the idea, although I have the impression only a small subset uses the switch feature in the first place. |
Beta Was this translation helpful? Give feedback.
-
I added a way to do it, let me know if this works, where the object key should be Lines 360 to 362 in 0b41509 |
Beta Was this translation helpful? Give feedback.
-
I already checked, but that one always returns |
Beta Was this translation helpful? Give feedback.
-
Checked and this is working for me, cheers |
Beta Was this translation helpful? Give feedback.
-
Just remembered this and came up with another examples where this could be useful
Are there any plans to make these editable via the settings page? |
Beta Was this translation helpful? Give feedback.
-
This thought came from the fact that
-s
flag doesn't work with/log
commandThe
-s
flag is used for opening records for the given table only for those in the current scope.In this case, this command doesn't work because
syslog
doesnt have asys_scope
field, instead it uses a Source field.Alternatively there is
syslog_app_scope
which does havesys_scope
There's probably a few ways to handle this, but I guess my question is if it's possible to override flags for specific slashcommands.
E.g. for all slashcommands, default behaviour of
-s
is to apply asys_scope=$scopeid
filter, however if the slashcommand is/log
I want to change the behaviour of-s
only for this command (to besource=$scopename
or override distination tosyslog_app_scope
with standard filter appending)Maybe this could be an extension of the custom switches feature referenced here: https://www.arnoudkooi.com/switch/
Beta Was this translation helpful? Give feedback.
All reactions