emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vikas Rawal <vikasrawal@gmail.com>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Search and replace excluding code blocks?
Date: Tue, 30 Jan 2024 05:17:56 +0530	[thread overview]
Message-ID: <CALtzAB1jWiTzr+21Bed5R7MhbQU+3r-HTNu+f3XL7VinkO=kYA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

Hi all,

Is it possible to search and replace a regex/string in an org file
excluding the code blocks from its scope?

Say, I want to replace all opening quotes (") by backticks(``) in the text
but not in the code blocks. Is there a way one could achieve that?

Thanks,

Vikas

[-- Attachment #2: Type: text/html, Size: 400 bytes --]

             reply	other threads:[~2024-01-29 23:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-29 23:47 Vikas Rawal [this message]
2024-01-31  1:58 ` Search and replace excluding code blocks? Berry, Charles

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALtzAB1jWiTzr+21Bed5R7MhbQU+3r-HTNu+f3XL7VinkO=kYA@mail.gmail.com' \
    --to=vikasrawal@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).