On Fre, 08 Jan 1999 Jean-Marc Lasgouttes wrote:
>>>>>> "Jochen" == Jochen Kuepper <[EMAIL PROTECTED]> writes:
>
>Jochen> Hi, Daniel Naber send in a patch to KLyX to find forward on
>Jochen> each replace in the Find&Replace dialog. We sent that patch to
>Jochen> Matthias to judge wether we want to put it in or not. ( It
>Jochen> seems he is still thinking :-)
>
>Jochen> What do you think about that feature ?
>
>I like the feature, but shouldn't it continue backwards if we were
>searching backwards? We should keep a bool saying in which direction
>the last search was, I think.

Hey, yeah, this is why I wasn't that enthusiastic, but I was to rigid to find
your easy solution. Here we go !
So what's about the patch I appended - it does exactly that. It's against
lyx-1_0_x repository ?
If we agree, I would put it into KLyX, you into LyX, JMarc ?

I would absolutely vote for the addition of such a flag and get a natural UI to
that. Here we go.

>Thanks for the input. BTW, do you still keep KLyX up-to-date with the
>changes in LyX, or do you include only some specific fixes?

Well, I basically do not work on LyX nor KLyX at all :-( I try to follow the
development, try to get people that are willing to do some work started, and
also try to synchronize stuff somehow. That's difficult without coding, though.

PS: Nice idea, Daniel !

Greetings,
Jochen
-----------------------------------------------------------------------
  Jochen K"upper

  Heinrich-Heine-Universit"at D"usseldorf   [EMAIL PROTECTED]
  Institut f"ur Physikalische Chemie I
  Universit"atsstr. 1, Geb 26.43 Raum 02.29    phone ++49-211-8113681
  40225 D"usseldorf                            fax   ++49-211-8115195
  Germany             http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
=== cd /usr/src/lyx/lyx-1_0_x/src/
=== cvs -d :pserver:[EMAIL PROTECTED]:/usr/local/lyxsrc/cvsroot diff -u lyxfr1.C

Index: lyxfr1.C
===================================================================
RCS file: /usr/local/lyxsrc/cvsroot/lyx-1_0_x/src/lyxfr1.C,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 lyxfr1.C
--- lyxfr1.C	1998/10/26 22:18:29	1.1.1.1
+++ lyxfr1.C	1999/01/08 16:30:06
@@ -163,6 +163,9 @@
 	current_view->currentBuffer()->text->
 		SetSelectionOverString(replacestring.c_str());
 	current_view->currentBuffer()->update(1); 
+	
+	// jump to next match:
+	SearchCB( searchForward );
 }
 
 
@@ -170,6 +173,9 @@
 {
 	LyXText		*ltCur;
 
+	// store search direction
+	searchForward = fForward;
+	
 	if (!current_view->getScreen())
 		return;
    

Reply via email to