Hello,

"Francis J. Monari, Esquire" <monarifj....@juno.com> writes:

[...]

> Due to file relocation on the server, I have a number of broken links in
> an org document.  (problem: broken links.)
>
> How can I / Is it possible to search and replace on links?
> (expectation: I would like to use search and replace to fix the links.)
>
> I have tried search and replace, but emacs advises me that links have
> been filtered out.  (issue: emacs reports that results from the search
> are filtered-out.)

isearch filters these out by default.  To avoid this, you can set
search-invisible to t, but then you don't see what you're replacing.

Another option is to toggle literal link display with
org-toggle-link-display, and then run the search and replace as usual.

> The answer might be a "works as expected".  I would like to remain
> within the org framework (but using standard search and replace) and
> accomplish this task.
>
> (I thought about forcing the files into a different mode, but I do not
> want to risk the org file structure.)

I don't really see any danger in that because it's just plain text and
it's querying you about what to replace, so I think that's fine too for
a one-off search and replace.

--
Kyle

Reply via email to