How to find and replace text in the entire website? #1001
-
Hi all, is there a plugin or tool to bulk replace content within md-files? E.g. if I mention "Petra Lastname" in several articles but her name changes to "Petra Newlastname", I would have to search and replace the occurences manually. Another example: If I change the structure of the website, several internal links won't work anymore. Structure before changes 000-startpage working link: /topic-b/subtopic-c/ If I restructure to 000-startpage that link of course won't work anymore. It would be very handy if one can search and replace the old link Thanks a lot and greetings, Markus |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I wrote Link in order to prevent this problem in my sites. Hope it will be useful to you! As regards the general problem of bulk replacing: it would be possible to write an extension for this purpose. But if you have a local copy of your website in your computer, it is rather easy to use the common editing programs (in Linux I use |
Beta Was this translation helpful? Give feedback.
-
Thank you, Giovanni. I'll have look at "Link". I wrote a standalone search and replace tool some years ago and perhaps it might be a good addition for yellow, regarding the concept of free phrasing the search and replace strings. But first, I have to look closer at how to create an extension for yellow and contribute correctly via github. |
Beta Was this translation helpful? Give feedback.
I wrote Link in order to prevent this problem in my sites. Hope it will be useful to you!
As regards the general problem of bulk replacing: it would be possible to write an extension for this purpose. But if you have a local copy of your website in your computer, it is rather easy to use the common editing programs (in Linux I use
sed
or a combination ofgrep
andgvim
, but every operative system has its own tools). I find this possibility one of the best aspects of Yellow!