有时我grep在 PyCharm 终端中使用,因为 PyCharm 搜索不适合我的需求。
有没有办法以 PyCharm 创建指向找到的行的超链接的方式生成 grep 的输出,以便我可以通过单击链接转到该行?
find abc/ -name '*.py' -mtime -3 |xargs grep -P 'assign.*date'
abc/institution.py: assignment = slot.assignment.order_by('-date')[0]
abc/apl/views.py: already_sent_qs = qs.filter(assignment__date...
abc/apl/views.py: obj.assignment.all().update(info_mail_sent_date...
Run Code Online (Sandbox Code Playgroud)
示例:我想观看第一场比赛:
assignment = slot.assignment.order_by('-date')[0]在文件中abc/admin/institution.py
| 归档时间: |
|
| 查看次数: |
285 次 |
| 最近记录: |