fardinbarashi/psGuiTextTrace
GitHub: fardinbarashi/psGuiTextTrace
TextTrace 是一款图形化文本搜索工具,用于在Windows系统中快速查找文件中的关键词或正则表达式模式,解决日志分析和数据检索问题。
Stars: 2 | Forks: 1
# TextTrace
**TextTrace** 是一款现代 Windows 桌面工具,用于在多种文件类型中搜索文本和正则表达式模式。
它基于 **PowerShell** 和 **XAML** 构建,旨在快速检查日志、脚本、配置文件、文档、SQL 文件、JSON、XML 及其他基于文本的文件。
## 目录
- [功能](#features)
- [截图](#screenshots)
## 功能
- 在多种基于文本的文件格式内进行搜索
- 选择一种、多种或所有预定义的文件类型
- 添加自定义文件扩展名
- 纯文本搜索
- 正则表达式搜索
- 区分大小写搜索选项
- 递归文件夹扫描
- 结果表格包含文件名、行号、预览和完整路径
- 右键点击上下文菜单用于结果操作
- 报告导出
- 搜索统计
- 用于故障排除的转录日志记录
## 截图

```
When matches are found, TextTrace exports the results to a CSV file.
Default location: Files\Reports\Report.csv
- UTF-8 encoding
- Semicolon delimiter
- No type information
Report columns:
| Column | Description |
|---|---|
| FileName | Name of the matched file |
| LineNumber | Line number where the match was found |
| Line | Full matching line |
| Path | Full path to the matched file |
---
```

TextTrace 默认包含以下文件模式:
```
*.xml
*.txt
*.log
*.csv
*.json
*.ini
*.config
*.html
*.htm
*.ps1
*.psm1
*.bat
*.cmd
*.md
*.yaml
*.yml
*.sql
```
您也可以在应用程序中添加自定义文件模式。
```
Example: *.cs,*.js,*.vbs,*.properties
```


```
Right-click a result row to access available actions:
| Action | Description |
|---|---|
| Open File | Opens the matched file with the default application |
| Open Containing Folder | Opens File Explorer and selects the matched file |
| Open in Notepad | Opens the matched file in Notepad |
| Copy Path | Copies the full file path to the clipboard |
| Open Reports Folder | Opens the report output folder |
```

## 正则表达式示例
```
Enable **Use Regex** before using regex patterns.
Make sure the pattern is valid .NET regular expression syntax.
Examples :
Find the word `test` anywhere in a line: test
Find the exact word `test`: \btest\b
Find either `error` or `warning`: error|warning
Find lines that start with `ERROR`: ^ERROR
Find an IPv4 address: \b(?:\d{1,3}\.){3}\d{1,3}\b
Find PowerShell variables: \$[A-Za-z_][A-Za-z0-9_]*
Find XML-like tags: <[^>]+>
Find email addresses:\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b
```
## 性能说明
```
TextTrace creates transcript logs for troubleshooting.
TextTrace automatically creates missing `Logs` and `Files\Reports` folders.
TextTrace works best with text-based files. Very large folders or very large files may take longer to scan.
```
## 开发路线图
```
Add more options to export reports
- Export as Json
- Export as html
```
标签:AI合规, CSV 报告, ETW劫持, IPv6, Libemu, PowerShell, Windows 工具, WPF, XAML, 上下文菜单, 多人体追踪, 恶意代码分析, 搜索统计, 故障排除, 文件搜索, 文件管理, 文件类型过滤, 文本处理, 日志记录, 桌面应用, 脚本工具, 递归扫描, 配置文件