mhayashi1120 / Emacs-wgrep

Writable grep buffer and apply the changes to files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is possible to hide the filename and line number when use wgrep-mode?

snowman opened this issue · comments

For example, I have a foo.m3u8 file:

$ cat foo.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:12
#EXTINF:8.200000,
ruby-000000.ts
#EXTINF:11.700000,
ruby-000001.ts
#EXTINF:10.000000,
ruby-000002.ts
#EXT-X-ENDLIST

Expected

What I want to do is to add the server domain to the *.ts file lines:
By running the command query-replace-regexp, replace ^ with the domain prefix
https://www.example.com/ to match lines like ruby-000000.ts, to get
https://www.example.com/ruby-000000.ts

Steps to reproduce:

$ emacs -Q foo.m3u8
1. M-x grep RET
2. Use "grep --color=auto --null -Ee ts$ foo.m3u8"
3. M-x wgrep-change-to-wgrep-mode RET

But when edit matches lines, it shows funcall-interactively: Text is read-only