From: "jindam, vani" <jindam.vani@disroot.org>
To: help-gnu-emacs@gnu.org
Subject: Re: (newbie) search & replace (—match case) all at once without confirmation automation
Date: Thu, 03 Nov 2022 04:15:40 +0000 [thread overview]
Message-ID: <6216071ad4d136c1e8773e5c40f0f86ff7374f50@disroot.org> (raw)
In-Reply-To: <Y2KqalADaIOs//Tr@tuxteam.de>
November 2, 2022 at 5:36 PM, tomas@tuxteam.de wrote:
>
> On Wed, Nov 02, 2022 at 12:26:20PM +0000, jindam, vani wrote:
>
> >
> > hello emacs users,
> >
> > after trying several gui text editors, i
> > hesistantly installed & familiarising emacs.
> > so far, good. i have decided to use as default
> > text editor.
> >
> > my search contains characters such as { or - or =
> > and alphabets. in other cli/gui editors, i choose
> > "match case" and "replace all".
> > for example: "{{cite", "agree=yes"
> >
>
> By default, search is case insensitive (unless your search
> string has mixed case).
>
> To change that, you change the value of the variable `case-fold-search'
> (try: M-x customize-variable, then `case-fold-search': you get a buffer
> with a button where you can switch it on or off).
>
> There are multiple other ways to achieve that, of course.
>
> >
> > straight to point:
> > * where can i find examples for "search & replace
> > (—match case) all at once without confirmation"?
> > * is it possible to use more than one for
> > search & replace? i mean, i want to replace
> > "{{cite", "agree=yes" at once?
> > * if i cant use more than one, how do i automate?
> >
>
> Once you get your search-and-replace running, it will stop at the first
> match. There you can type 'y' or just SPACE to effect the replacement,
> 'n' to skip to the next match. If you want to do "all the rest", you
> just type '!'. There is a little message at the bottom of your edit
> window which tells you that (and the other options you have).
>
> That said, I'd recommend that you walk the extra mile and learn
> "incremental search". For one you get immediate feedback while
> you are entering your search string; then, you can pick up parts
> of your buffer text to complete your search string. You can change
> case sensitivity on the fly, change between regular expression and
> literal string on the fly, too, and lastly, upgrade your search
> to a search-and-replace.
>
> Sounds complicated, but you don't have to learn everything at once.
> It's woth it :)
i always assumed emacs as pure cli, but i was wrong.
my immediate priority is to find one click solution.
i have noted your tips, thank you. i will try today
and if i have any issues, i will ask here.
regards,
jindam, vani
toots: @jindam_vani@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani
> Cheers
> --
> t
>
next prev parent reply other threads:[~2022-11-03 4:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-02 12:26 (newbie) search & replace (—match case) all at once without confirmation automation jindam, vani
2022-11-02 17:35 ` tomas
2022-11-02 22:48 ` Emanuel Berg
2022-11-03 4:15 ` jindam, vani [this message]
2022-11-03 4:19 ` Emanuel Berg
2022-11-03 5:45 ` tomas
2022-11-03 5:55 ` Emanuel Berg
-- strict thread matches above, loose matches on Subject: below --
2022-11-02 14:48 jindam, vani
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6216071ad4d136c1e8773e5c40f0f86ff7374f50@disroot.org \
--to=jindam.vani@disroot.org \
--cc=help-gnu-emacs@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.
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).