Discussion:
find & replace...
bogatyr
2013-10-24 22:30:31 UTC
Permalink
hello people,
sorry for putting to you a very "plain" question, but
as i've just resumed using bluefish for html (after two
years, but then i was working on an older version),
i've encountered a problem with the latest version.

i have searched through the manual, but i think the
explanations were intended for programmers, or
more serious coders.

in short, the find & replace dialogue does not seem to
work. i think i have tried every variable possible, but it
does not replace anything! it just highlights the object
i searched, but then i have to go through and change
all manually.

the previous version i worked on was wonderful: it
could replace by item and skip where i wanted, as well
as replace all. here... no.
can you tell me if there is another way to do it?
maybe i haven't looked at every possibility...

here's an example.
let's say that i want to change all the quotation marks
(") with ≴ and ≵. obviously, _before_
inserting any code (where there are loads of " marks!)
and obviously as well, and, as these marks (") appear
the same both before and after the quote, the two
replacements do not, and should not. hence the need
for the "skip".

any help would be greatly appreciated!!!
and, please guys, don't think i don't appreciate the fish.
it has been my working environment for years and
years, and i've completed immense projects thanks to it!

marina
--
stanÂŽ peredo mnoj, kak list pered travoj!
Stephen Doonan
2013-10-24 23:08:11 UTC
Permalink
Post by bogatyr
in short, the find & replace dialogue does not seem to
work. i think i have tried every variable possible, but it
does not replace anything!
Yes, Find and Replace does highlight what it finds that matches the
search term, and has buttons to "Replace," "Replace All," "Skip," etc.
I'm using a recent Bluefish version, 2.2.4 rev8112M, and use Bluefish
like you to code HTML and CSS. It works very well. :-)
--
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar-QLpEr2logwzILq5++***@public.gmane.org
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/
clansco
2013-10-25 04:29:42 UTC
Permalink
On Fri, 25 Oct 2013 00:30:31 +0200
Post by bogatyr
hello people,
here's an example.
let's say that i want to change all the quotation marks
(") with ≴ and ≵. obviously, _before_
inserting any code (where there are loads of " marks!)
and obviously as well, and, as these marks (") appear
the same both before and after the quote, the two
replacements do not, and should not. hence the need
for the "skip".
Hi marina,
Perhaps you could replace first all ' "' with ' ≴'
and then all '" ' with '≵ '

But strictly for your question:
you need to use the Forward button (or the Back one)
and then Replace button if it matches
or Forward again if it don't matches.

Hope this helps?
--
Frédéric Falsetti
http://clansco.org
clansco
2013-10-25 04:54:21 UTC
Permalink
...
or you can use a regex, and with this regex make a snippet...
--
Frédéric Falsetti
http://clansco.org
Olivier Sessink
2013-10-25 07:20:26 UTC
Permalink
Post by bogatyr
here's an example.
let's say that i want to change all the quotation marks
(") with ≴ and ≵. obviously, _before_
inserting any code (where there are loads of " marks!)
and obviously as well, and, as these marks (") appear
the same both before and after the quote, the two
replacements do not, and should not. hence the need
for the "skip".
assuming you are using 2.2.4:

use the advanced search and replace dialog

after you entered the search term all matches will be highlighted, and
one item will be selected.

click the "skip" button for items you do not want to replace, click the
replace button for items you do want to replace.

does that help?

Olivier
--
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar-QLpEr2logwzILq5++***@public.gmane.org
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/
bogatyr
2013-10-26 12:26:58 UTC
Permalink
hi all,
well... as i do not have either a regex option nor any skip
button, i suppose that's because i have the 2.2.2 version
instead of the 2.2.4

i'll install the newest version and then let you know.

thanks for all your responses, tho'.
talk to you soon :)

marina
--
stanÂŽ peredo mnoj, kak list pered travoj!
Olivier Sessink
2013-10-28 21:23:04 UTC
Permalink
Post by bogatyr
hi all,
well... as i do not have either a regex option nor any skip
button, i suppose that's because i have the 2.2.2 version
instead of the 2.2.4
The current search and replace dialog is used since 2.2.0. The regex
option is under "Match pattern" in the advanced search and replace dialog.

there is indeed no 'skip' button, but a 'forward' or 'back' button, so
my previous explanation should be:

click the "forward" button for items you do not want to replace, click
the replace button for items you do want to replace.

Olivier
--
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
--
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar-QLpEr2logwzILq5++***@public.gmane.org
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/
bogatyr
2013-10-29 15:22:35 UTC
Permalink
Post by Olivier Sessink
click the "forward" button for items you do not want to replace, click
the replace button for items you do want to replace.
well... this is embarrassing!
when i choose, under "match pattern", "regular
expression (pcre)", which is the only choice i have
other than "normal", the "replace with" field
disappears. so, by clicking "forward" i do get to the
next instance of the expression, but i have no way
of replacing it with anything (yes, i have clicked
"replace" in the hope that it might have memorized
the thing, but nothing happens).

and yes, i do have the "advanced find & replace"
dialog box...

i wonder if it is because i have ubuntu 12.04 lts
but i doubt it

thanks for the attention, anyway...

marina
--
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar-QLpEr2logwzILq5++***@public.gmane.org
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/
Andrius
2013-10-29 15:29:27 UTC
Permalink
Marina,
are You using latest version (2.2.4) or still on 2.2.2?
Andrius
________________________________
Sent: Tuesday, October 29, 2013 5:22 PM
Subject: Re: find & replace...
Post by Olivier Sessink
click the "forward" button for items you do not want to replace, click
the replace button for items you do want to replace.
well... this is embarrassing!
when i choose, under "match pattern", "regular
expression (pcre)", which is the only choice i have
other than "normal", the "replace with" field
disappears. so, by clicking "forward" i do get to the
next instance of the expression, but i have no way
of replacing it with anything (yes, i have clicked
"replace" in the hope that it might have memorized
the thing, but nothing happens).
and yes, i do have the "advanced find & replace"
dialog box...
i wonder if it is because i have ubuntu 12.04 lts
but i doubt it
thanks for the attention, anyway...
marina
--
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/
bogatyr
2013-10-29 15:44:55 UTC
Permalink
Post by Andrius
are You using latest version (2.2.4) or still on 2.2.2?
no, i'm still using 2.2.2 (since olivier said it didn't
matter)...
--
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar-QLpEr2logwzILq5++***@public.gmane.org
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/
Andrius
2013-10-29 16:24:26 UTC
Permalink
I just want to tell that I am not seeing "Replace with" field to disappear when using 2.2.4. I would say You have to upgrade to 2.2.4 ...

Andrius
Olivier Sessink
2013-10-29 18:07:58 UTC
Permalink
Post by bogatyr
Post by Olivier Sessink
click the "forward" button for items you do not want to replace, click
the replace button for items you do want to replace.
well... this is embarrassing!
when i choose, under "match pattern", "regular
expression (pcre)", which is the only choice i have
other than "normal", the "replace with" field
disappears.
that normally (also in 2.2.2) happens if you replace "regular
expression" style and you replace with "uppercase" or "lowercase". Are
you sure you are replacing with "replace type" set to "normal" ?

Olivier
--
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
--
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar-QLpEr2logwzILq5++***@public.gmane.org
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/
Continue reading on narkive:
Loading...