COMTool icon indicating copy to clipboard operation
COMTool copied to clipboard

[建议] 能否加入 选择性显示功能(Filter text)

Open JamesJian-tech opened this issue 2 years ago • 4 comments

平时使用terminal 信息很多 如果有一个过滤功能就很方便了 例如:

[time] hello hello [time] hello [time] hello [time] hello [time] hello [time] world [time] hello [time] hello [time] hello [time] hello

其实只想知道 world 的出现点和时间 其他的hello 并不需要在terminal 里面出现 但可以存在.log 文件里面。

能否实现?

JamesJian-tech avatar Jul 15 '22 06:07 JamesJian-tech

可以在协议插件功能中实现, 自定义脚本

def decode(data):
    if b"world" in data:
        return data
    return b''

Neutree avatar Jul 15 '22 06:07 Neutree

image

修改这里的代码, 代码格式是 python 格式, 有啥不懂的百度搜一下 python 怎么写

Neutree avatar Jul 15 '22 06:07 Neutree

这个是在protocol 里面。

Terminal 里面如果有搜索和过滤功能就更加完美。

JamesJian-tech avatar Jul 15 '22 10:07 JamesJian-tech

emmmmm terminal加过滤 没考虑做这个 你可以考虑做做2333

Neutree avatar Jul 15 '22 13:07 Neutree