Re: search text without note-content

2013-01-12 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 19:35:54 schrieb Jean-Marc Lasgouttes:
 Le 11/01/2013 17:08, Wolfgang Engelmann a écrit :
  Am Freitag, 11. Januar 2013, 16:20:18 schrieben Sie:
  Jean-Marc Lasgouttes lasgout...@lyx.org
  
  ps
  I must confess I have not the newest Lyx version. May be that is the
  reason. I should update it, if I find time
 
 What version is it?

2.1.0svn

Cheers

Wolfgang


Re: search text without note-content

2013-01-12 Thread Dr Eberhard Lisse
Hm,

the latest is 2.5.0.1, and it would also be interesting what platform
because speed has never been the issue on my iMacs...

el

On 2013-01-12 10:24 , Wolfgang Engelmann wrote:
 Am Freitag, 11. Januar 2013, 19:35:54 schrieb Jean-Marc Lasgouttes:
 Le 11/01/2013 17:08, Wolfgang Engelmann a écrit :
 Am Freitag, 11. Januar 2013, 16:20:18 schrieben Sie:
 Jean-Marc Lasgouttes lasgout...@lyx.org

 ps
 I must confess I have not the newest Lyx version. May be that is the
 reason. I should update it, if I find time

 What version is it?
 
 2.1.0svn
 
 Cheers
 
 Wolfgang
 




Re: search text without note-content

2013-01-12 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 19:35:54 schrieb Jean-Marc Lasgouttes:
 Le 11/01/2013 17:08, Wolfgang Engelmann a écrit :
  Am Freitag, 11. Januar 2013, 16:20:18 schrieben Sie:
  Jean-Marc Lasgouttes lasgout...@lyx.org
  
  ps
  I must confess I have not the newest Lyx version. May be that is the
  reason. I should update it, if I find time
 
 What version is it?

2.1.0svn

Cheers

Wolfgang


Re: search text without note-content

2013-01-12 Thread Dr Eberhard Lisse
Hm,

the latest is 2.5.0.1, and it would also be interesting what platform
because speed has never been the issue on my iMacs...

el

On 2013-01-12 10:24 , Wolfgang Engelmann wrote:
 Am Freitag, 11. Januar 2013, 19:35:54 schrieb Jean-Marc Lasgouttes:
 Le 11/01/2013 17:08, Wolfgang Engelmann a écrit :
 Am Freitag, 11. Januar 2013, 16:20:18 schrieben Sie:
 Jean-Marc Lasgouttes lasgout...@lyx.org

 ps
 I must confess I have not the newest Lyx version. May be that is the
 reason. I should update it, if I find time

 What version is it?
 
 2.1.0svn
 
 Cheers
 
 Wolfgang
 




Re: search text without note-content

2013-01-12 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 19:35:54 schrieb Jean-Marc Lasgouttes:
> Le 11/01/2013 17:08, Wolfgang Engelmann a écrit :
> > Am Freitag, 11. Januar 2013, 16:20:18 schrieben Sie:
> >> "Jean-Marc Lasgouttes" 
> > 
> > ps
> > I must confess I have not the newest Lyx version. May be that is the
> > reason. I should update it, if I find time
> 
> What version is it?

2.1.0svn

Cheers

Wolfgang


Re: search text without note-content

2013-01-12 Thread Dr Eberhard Lisse
Hm,

the latest is 2.5.0.1, and it would also be interesting what platform
because speed has never been the issue on my iMacs...

el

On 2013-01-12 10:24 , Wolfgang Engelmann wrote:
> Am Freitag, 11. Januar 2013, 19:35:54 schrieb Jean-Marc Lasgouttes:
>> Le 11/01/2013 17:08, Wolfgang Engelmann a écrit :
>>> Am Freitag, 11. Januar 2013, 16:20:18 schrieben Sie:
 "Jean-Marc Lasgouttes" 
>>>
>>> ps
>>> I must confess I have not the newest Lyx version. May be that is the
>>> reason. I should update it, if I find time
>>
>> What version is it?
> 
> 2.1.0svn
> 
> Cheers
> 
> Wolfgang
> 




search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Hi,

is there a way to avoid that notes are searched? I have a lot of notes 
which I don't like to delete. Searching would be much faster, if I could 
skip them. 
Alternatively, can I delete all the notes at once thus creating another  
lyx file without notes in which I could search?
Thanks,

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 3:59 AM, Wolfgang Engelmann
engelm...@uni-tuebingen.de wrote:
 Hi,

 is there a way to avoid that notes are searched? I have a lot of notes
 which I don't like to delete. Searching would be much faster, if I could
 skip them.

Hi Wolfgang,

Look in the Customization manual. Search for spellcheck:
Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
Default is true.

 Alternatively, can I delete all the notes at once thus creating another
 lyx file without notes in which I could search?

Yes. Look in the LFUN manual. See inset-forall. This might work:
inset-forall Note delete-char-forward

Scott


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 is there a way to avoid that notes are searched?

No.
http://www.lyx.org/trac/ticket/4987

 Alternatively, can I delete all the notes at once thus creating another
 lyx file without notes in which I could search?

Don't think so.

A possible workaround, although not very comfortable, is to search in the PDF 
output and use reverse search to synchronize the LyX workarea.

(reverse search is described in sec. 5.6 of the Additional manual, 
Handbuchergänzungen in German).

Jürgen


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
 Look in the Customization manual. Search for spellcheck:
 Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
 Default is true.

For spellchecking, there is even a preference entry Exlude Notes and 
comments. However, this has no impact on searching.

  Alternatively, can I delete all the notes at once thus creating another
  lyx file without notes in which I could search?
 
 Yes. Look in the LFUN manual. See inset-forall. This might work:
 inset-forall Note delete-char-forward

Ah, yes. Forgot about this. The correct syntax, though, is
inset-forall Note char-delete-forward

Jürgen


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 4:22 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Scott Kostyshak wrote:
 Look in the Customization manual. Search for spellcheck:
 Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
 Default is true.

 For spellchecking, there is even a preference entry Exlude Notes and
 comments. However, this has no impact on searching.

Good to know -- I hadn't seen the bug that you linked to.

  Alternatively, can I delete all the notes at once thus creating another
  lyx file without notes in which I could search?

 Yes. Look in the LFUN manual. See inset-forall. This might work:
 inset-forall Note delete-char-forward

 Ah, yes. Forgot about this. The correct syntax, though, is
 inset-forall Note char-delete-forward

Thanks for the correction.

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:
 Scott Kostyshak wrote:
  Look in the Customization manual. Search for spellcheck:
  Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
  Default is true.
 
 For spellchecking, there is even a preference entry Exlude Notes and
 comments. However, this has no impact on searching.
 
   Alternatively, can I delete all the notes at once thus creating
   another lyx file without notes in which I could search?
  
  Yes. Look in the LFUN manual. See inset-forall. This might work:
  inset-forall Note delete-char-forward
 
 Ah, yes. Forgot about this. The correct syntax, though, is
 inset-forall Note char-delete-forward
 
 Jürgen

Thanks, but can't find inset-forall in
http://wiki.lyx.org/LyX/LyxFunctions
only:

index-print
 
inset-apply
 
inset-dissolve
 
inset-insert
 
inset-settings
 
keymap-off
Turn off keymap


were do I have to look for?

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann 
engelm...@uni-tuebingen.de wrote:

 **

 Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:

  Scott Kostyshak wrote:

   Look in the Customization manual. Search for spellcheck:

   Spellcheck [0, 1] Allow spell-checking paragraphs of this style.

   Default is true.

 

  For spellchecking, there is even a preference entry Exlude Notes and

  comments. However, this has no impact on searching.

 

Alternatively, can I delete all the notes at once thus creating

another lyx file without notes in which I could search?

  

   Yes. Look in the LFUN manual. See inset-forall. This might work:

   inset-forall Note delete-char-forward

 

  Ah, yes. Forgot about this. The correct syntax, though, is

  inset-forall Note char-delete-forward

 

  Jürgen

 Thanks, but can't find inset-forall in

 http://wiki.lyx.org/LyX/LyxFunctions

 only:

   index-print



 inset-apply



 inset-dissolve



 inset-insert



 inset-settings



 keymap-off

 Turn off keymap

 were do I have to look for?


Help  LyX Functions

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 11:46:24 schrieb Scott Kostyshak:
 On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann 
 
 engelm...@uni-tuebingen.de wrote:
  **
  
 Alternatively, can I delete all the notes at once thus creating
 another lyx file without notes in which I could search?
Yes. Look in the LFUN manual. See inset-forall. This might work:

inset-forall Note delete-char-forward
   
   Ah, yes. Forgot about this. The correct syntax, though, is
   
   inset-forall Note char-delete-forward
 
  were do I have to look for?
 
 Help  LyX Functions
 
Oh, yes. But still:
how do get it to work? LFUN Help is too short for my IQ

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?

Is it a command outside lyx where the file is part of the command?

Sorry to bother you again

but thankful:

Wolfgang

From the LFUN help:
LFUN_INSET_FORALL

Action Apply the given commands on insets of a given name.

Notion WARNING: use at your own risks; this function gives you too many 
ways of shooting yourself in the foot. A typical example is inset-forall 
Note note-insert which starts an infinite loop. This is mitigated by the 
fact that the number of actions is arbitrarily limited to 10. Note also 
that inset-forall does not update metrics between iterations, which can 
lead to bugs. This has to be eventually fixed.

Syntax inset-forall NAME LFUN-COMMANDNAME: Type of Inset. If NAME 
is *, all insets are matched. The name is used like for InsetLayout in 
layout files: Note matches all note insets, while Note:Note only matches 
LyX yellow note insets.

Sample Remove all index insets:inset-forall Index delete-
char-forwardClose all Notes (also works for a particular branch, for 
example):  inset-forall Note inset-toggle closeTransform all 
yellow notes to comments   inset-forall Note:Note inset-modify 
note Note CommentTry to put LyX in an infinite loop if there is at least a 
Note:  inset-forall Note char-backward

Origin lasgouttes, 27 Nov 2009





 Scott


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 Could somebody explain how to go from my
 lyx-file with yellow notes (note-note)
 to another lyx-file without notes-notes?

* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is 
the minibuffer)
* Enter the follwowing command to this widget and hit return:
  inset-forall Note:Note char-delete-forward

The minibuffer can be closed again by hitting Alt+x while the cursor is insice 
(if not, the command will bring the cursor in the minibuffer).

HTH
Jürgen


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
 Wolfgang Engelmann wrote:
  Could somebody explain how to go from my
  lyx-file with yellow notes (note-note)
  to another lyx-file without notes-notes?
 
 * Make a copy of your file.
 * In LyX, hit Alt+x, which opens a small input widget on the bottom
 (this is the minibuffer)
 * Enter the follwowing command to this widget and hit return:
   inset-forall Note:Note char-delete-forward
 
 The minibuffer can be closed again by hitting Alt+x while the cursor is
 insice (if not, the command will bring the cursor in the minibuffer).
 
Thanks, Jürgen

very good, and nice to watch all the notes disappear (except the last one - 
but never mind ..)

Learned again something useful and must dig into this feature!

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 15:17, Jürgen Spitzmüller a écrit :

Wolfgang Engelmann wrote:

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?


* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is
the minibuffer)
* Enter the follwowing command to this widget and hit return:
   inset-forall Note:Note char-delete-forward


The explanation goes like
  * Note:Note means all note inset of type LyX Note. You could use
Note:Comment or Footnote. These neames are the same that are used in 
layout files.
  * You can use inset type * to match all insets and simply Note to 
match all note insets.


JMarc



Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
 inset-forall Note:Note char-delete-forward
p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.
By running the 
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!
Sorry, you have found a bug in LyX, hope you have not lost any data.
Please read the bug-reporting instructions in 'Help-Introduction' and send 
us a bug report, if necessary. Thanks!
Bye.

I could recover the (now note-free) lyx file. Good.

Might be a buffer issue? Its a long paper with a lot of notes

Thanks again

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 16:11, Wolfgang Engelmann a écrit :

Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:

inset-forall Note:Note char-delete-forward

p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.


Can you make a test case where a note is skipped?


By running the
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!


That is even more embarrassing. I hope we can do something about it.

JMarc




search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Hi,

is there a way to avoid that notes are searched? I have a lot of notes 
which I don't like to delete. Searching would be much faster, if I could 
skip them. 
Alternatively, can I delete all the notes at once thus creating another  
lyx file without notes in which I could search?
Thanks,

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 3:59 AM, Wolfgang Engelmann
engelm...@uni-tuebingen.de wrote:
 Hi,

 is there a way to avoid that notes are searched? I have a lot of notes
 which I don't like to delete. Searching would be much faster, if I could
 skip them.

Hi Wolfgang,

Look in the Customization manual. Search for spellcheck:
Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
Default is true.

 Alternatively, can I delete all the notes at once thus creating another
 lyx file without notes in which I could search?

Yes. Look in the LFUN manual. See inset-forall. This might work:
inset-forall Note delete-char-forward

Scott


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 is there a way to avoid that notes are searched?

No.
http://www.lyx.org/trac/ticket/4987

 Alternatively, can I delete all the notes at once thus creating another
 lyx file without notes in which I could search?

Don't think so.

A possible workaround, although not very comfortable, is to search in the PDF 
output and use reverse search to synchronize the LyX workarea.

(reverse search is described in sec. 5.6 of the Additional manual, 
Handbuchergänzungen in German).

Jürgen


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
 Look in the Customization manual. Search for spellcheck:
 Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
 Default is true.

For spellchecking, there is even a preference entry Exlude Notes and 
comments. However, this has no impact on searching.

  Alternatively, can I delete all the notes at once thus creating another
  lyx file without notes in which I could search?
 
 Yes. Look in the LFUN manual. See inset-forall. This might work:
 inset-forall Note delete-char-forward

Ah, yes. Forgot about this. The correct syntax, though, is
inset-forall Note char-delete-forward

Jürgen


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 4:22 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Scott Kostyshak wrote:
 Look in the Customization manual. Search for spellcheck:
 Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
 Default is true.

 For spellchecking, there is even a preference entry Exlude Notes and
 comments. However, this has no impact on searching.

Good to know -- I hadn't seen the bug that you linked to.

  Alternatively, can I delete all the notes at once thus creating another
  lyx file without notes in which I could search?

 Yes. Look in the LFUN manual. See inset-forall. This might work:
 inset-forall Note delete-char-forward

 Ah, yes. Forgot about this. The correct syntax, though, is
 inset-forall Note char-delete-forward

Thanks for the correction.

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:
 Scott Kostyshak wrote:
  Look in the Customization manual. Search for spellcheck:
  Spellcheck [0, 1] Allow spell-checking paragraphs of this style.
  Default is true.
 
 For spellchecking, there is even a preference entry Exlude Notes and
 comments. However, this has no impact on searching.
 
   Alternatively, can I delete all the notes at once thus creating
   another lyx file without notes in which I could search?
  
  Yes. Look in the LFUN manual. See inset-forall. This might work:
  inset-forall Note delete-char-forward
 
 Ah, yes. Forgot about this. The correct syntax, though, is
 inset-forall Note char-delete-forward
 
 Jürgen

Thanks, but can't find inset-forall in
http://wiki.lyx.org/LyX/LyxFunctions
only:

index-print
 
inset-apply
 
inset-dissolve
 
inset-insert
 
inset-settings
 
keymap-off
Turn off keymap


were do I have to look for?

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann 
engelm...@uni-tuebingen.de wrote:

 **

 Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:

  Scott Kostyshak wrote:

   Look in the Customization manual. Search for spellcheck:

   Spellcheck [0, 1] Allow spell-checking paragraphs of this style.

   Default is true.

 

  For spellchecking, there is even a preference entry Exlude Notes and

  comments. However, this has no impact on searching.

 

Alternatively, can I delete all the notes at once thus creating

another lyx file without notes in which I could search?

  

   Yes. Look in the LFUN manual. See inset-forall. This might work:

   inset-forall Note delete-char-forward

 

  Ah, yes. Forgot about this. The correct syntax, though, is

  inset-forall Note char-delete-forward

 

  Jürgen

 Thanks, but can't find inset-forall in

 http://wiki.lyx.org/LyX/LyxFunctions

 only:

   index-print



 inset-apply



 inset-dissolve



 inset-insert



 inset-settings



 keymap-off

 Turn off keymap

 were do I have to look for?


Help  LyX Functions

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 11:46:24 schrieb Scott Kostyshak:
 On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann 
 
 engelm...@uni-tuebingen.de wrote:
  **
  
 Alternatively, can I delete all the notes at once thus creating
 another lyx file without notes in which I could search?
Yes. Look in the LFUN manual. See inset-forall. This might work:

inset-forall Note delete-char-forward
   
   Ah, yes. Forgot about this. The correct syntax, though, is
   
   inset-forall Note char-delete-forward
 
  were do I have to look for?
 
 Help  LyX Functions
 
Oh, yes. But still:
how do get it to work? LFUN Help is too short for my IQ

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?

Is it a command outside lyx where the file is part of the command?

Sorry to bother you again

but thankful:

Wolfgang

From the LFUN help:
LFUN_INSET_FORALL

Action Apply the given commands on insets of a given name.

Notion WARNING: use at your own risks; this function gives you too many 
ways of shooting yourself in the foot. A typical example is inset-forall 
Note note-insert which starts an infinite loop. This is mitigated by the 
fact that the number of actions is arbitrarily limited to 10. Note also 
that inset-forall does not update metrics between iterations, which can 
lead to bugs. This has to be eventually fixed.

Syntax inset-forall NAME LFUN-COMMANDNAME: Type of Inset. If NAME 
is *, all insets are matched. The name is used like for InsetLayout in 
layout files: Note matches all note insets, while Note:Note only matches 
LyX yellow note insets.

Sample Remove all index insets:inset-forall Index delete-
char-forwardClose all Notes (also works for a particular branch, for 
example):  inset-forall Note inset-toggle closeTransform all 
yellow notes to comments   inset-forall Note:Note inset-modify 
note Note CommentTry to put LyX in an infinite loop if there is at least a 
Note:  inset-forall Note char-backward

Origin lasgouttes, 27 Nov 2009





 Scott


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 Could somebody explain how to go from my
 lyx-file with yellow notes (note-note)
 to another lyx-file without notes-notes?

* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is 
the minibuffer)
* Enter the follwowing command to this widget and hit return:
  inset-forall Note:Note char-delete-forward

The minibuffer can be closed again by hitting Alt+x while the cursor is insice 
(if not, the command will bring the cursor in the minibuffer).

HTH
Jürgen


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
 Wolfgang Engelmann wrote:
  Could somebody explain how to go from my
  lyx-file with yellow notes (note-note)
  to another lyx-file without notes-notes?
 
 * Make a copy of your file.
 * In LyX, hit Alt+x, which opens a small input widget on the bottom
 (this is the minibuffer)
 * Enter the follwowing command to this widget and hit return:
   inset-forall Note:Note char-delete-forward
 
 The minibuffer can be closed again by hitting Alt+x while the cursor is
 insice (if not, the command will bring the cursor in the minibuffer).
 
Thanks, Jürgen

very good, and nice to watch all the notes disappear (except the last one - 
but never mind ..)

Learned again something useful and must dig into this feature!

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 15:17, Jürgen Spitzmüller a écrit :

Wolfgang Engelmann wrote:

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?


* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is
the minibuffer)
* Enter the follwowing command to this widget and hit return:
   inset-forall Note:Note char-delete-forward


The explanation goes like
  * Note:Note means all note inset of type LyX Note. You could use
Note:Comment or Footnote. These neames are the same that are used in 
layout files.
  * You can use inset type * to match all insets and simply Note to 
match all note insets.


JMarc



Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
 inset-forall Note:Note char-delete-forward
p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.
By running the 
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!
Sorry, you have found a bug in LyX, hope you have not lost any data.
Please read the bug-reporting instructions in 'Help-Introduction' and send 
us a bug report, if necessary. Thanks!
Bye.

I could recover the (now note-free) lyx file. Good.

Might be a buffer issue? Its a long paper with a lot of notes

Thanks again

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 16:11, Wolfgang Engelmann a écrit :

Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:

inset-forall Note:Note char-delete-forward

p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.


Can you make a test case where a note is skipped?


By running the
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!


That is even more embarrassing. I hope we can do something about it.

JMarc




search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Hi,

is there a way to avoid that notes are searched? I have a lot of notes 
which I don't like to delete. Searching would be much faster, if I could 
skip them. 
Alternatively, can I delete all the notes at once thus creating another  
lyx file without notes in which I could search?
Thanks,

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 3:59 AM, Wolfgang Engelmann
 wrote:
> Hi,
>
> is there a way to avoid that notes are searched? I have a lot of notes
> which I don't like to delete. Searching would be much faster, if I could
> skip them.

Hi Wolfgang,

Look in the Customization manual. Search for "spellcheck":
<>

> Alternatively, can I delete all the notes at once thus creating another
> lyx file without notes in which I could search?

Yes. Look in the LFUN manual. See inset-forall. This might work:
inset-forall Note delete-char-forward

Scott


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
> is there a way to avoid that notes are searched?

No.
http://www.lyx.org/trac/ticket/4987

> Alternatively, can I delete all the notes at once thus creating another
> lyx file without notes in which I could search?

Don't think so.

A possible workaround, although not very comfortable, is to search in the PDF 
output and use reverse search to synchronize the LyX workarea.

(reverse search is described in sec. 5.6 of the "Additional" manual, 
"Handbuchergänzungen" in German).

Jürgen


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
> Look in the Customization manual. Search for "spellcheck":
> < Default is true.>>

For spellchecking, there is even a preference entry "Exlude Notes and 
comments". However, this has no impact on searching.

> > Alternatively, can I delete all the notes at once thus creating another
> > lyx file without notes in which I could search?
> 
> Yes. Look in the LFUN manual. See inset-forall. This might work:
> inset-forall Note delete-char-forward

Ah, yes. Forgot about this. The correct syntax, though, is
inset-forall Note char-delete-forward

Jürgen


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 4:22 AM, Jürgen Spitzmüller  wrote:
> Scott Kostyshak wrote:
>> Look in the Customization manual. Search for "spellcheck":
>> <> Default is true.>>
>
> For spellchecking, there is even a preference entry "Exlude Notes and
> comments". However, this has no impact on searching.

Good to know -- I hadn't seen the bug that you linked to.

>> > Alternatively, can I delete all the notes at once thus creating another
>> > lyx file without notes in which I could search?
>>
>> Yes. Look in the LFUN manual. See inset-forall. This might work:
>> inset-forall Note delete-char-forward
>
> Ah, yes. Forgot about this. The correct syntax, though, is
> inset-forall Note char-delete-forward

Thanks for the correction.

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:
> Scott Kostyshak wrote:
> > Look in the Customization manual. Search for "spellcheck":
> > < > Default is true.>>
> 
> For spellchecking, there is even a preference entry "Exlude Notes and
> comments". However, this has no impact on searching.
> 
> > > Alternatively, can I delete all the notes at once thus creating
> > > another lyx file without notes in which I could search?
> > 
> > Yes. Look in the LFUN manual. See inset-forall. This might work:
> > inset-forall Note delete-char-forward
> 
> Ah, yes. Forgot about this. The correct syntax, though, is
> inset-forall Note char-delete-forward
> 
> Jürgen

Thanks, but can't find inset-forall in
http://wiki.lyx.org/LyX/LyxFunctions
only:

index-print
 
inset-apply
 
inset-dissolve
 
inset-insert
 
inset-settings
 
keymap-off
Turn off keymap


were do I have to look for?

Wolfgang


Re: search text without note-content

2013-01-11 Thread Scott Kostyshak
On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann <
engelm...@uni-tuebingen.de> wrote:

> **
>
> Am Freitag, 11. Januar 2013, 10:22:44 schrieb Jürgen Spitzmüller:
>
> > Scott Kostyshak wrote:
>
> > > Look in the Customization manual. Search for "spellcheck":
>
> > > <
> > > Default is true.>>
>
> >
>
> > For spellchecking, there is even a preference entry "Exlude Notes and
>
> > comments". However, this has no impact on searching.
>
> >
>
> > > > Alternatively, can I delete all the notes at once thus creating
>
> > > > another lyx file without notes in which I could search?
>
> > >
>
> > > Yes. Look in the LFUN manual. See inset-forall. This might work:
>
> > > inset-forall Note delete-char-forward
>
> >
>
> > Ah, yes. Forgot about this. The correct syntax, though, is
>
> > inset-forall Note char-delete-forward
>
> >
>
> > Jürgen
>
> Thanks, but can't find inset-forall in
>
> http://wiki.lyx.org/LyX/LyxFunctions
>
> only:
>
>   index-print
>
>
>
> inset-apply
>
>
>
> inset-dissolve
>
>
>
> inset-insert
>
>
>
> inset-settings
>
>
>
> keymap-off
>
> Turn off keymap
>
> were do I have to look for?
>

Help > LyX Functions

Scott


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 11:46:24 schrieb Scott Kostyshak:
> On Fri, Jan 11, 2013 at 5:43 AM, Wolfgang Engelmann <
> 
> engelm...@uni-tuebingen.de> wrote:
> > **
> > 
> > > > > Alternatively, can I delete all the notes at once thus creating
> > > > > another lyx file without notes in which I could search?
> > > > Yes. Look in the LFUN manual. See inset-forall. This might work:
> > > > 
> > > > inset-forall Note delete-char-forward
> > > 
> > > Ah, yes. Forgot about this. The correct syntax, though, is
> > > 
> > > inset-forall Note char-delete-forward
> 
> > were do I have to look for?
> 
> Help > LyX Functions
> 
Oh, yes. But still:
how do get it to work? LFUN Help is too short for my IQ

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?

Is it a command outside lyx where the file is part of the command?

Sorry to bother you again

but thankful:

Wolfgang

From the LFUN help:
LFUN_INSET_FORALL

Action Apply the given commands on insets of a given name.

Notion WARNING: use at your own risks; this function gives you too many 
ways of shooting yourself in the foot. A typical example is inset-forall 
Note note-insert which starts an infinite loop. This is mitigated by the 
fact that the number of actions is arbitrarily limited to 10. Note also 
that inset-forall does not update metrics between iterations, which can 
lead to bugs. This has to be eventually fixed.

Syntax inset-forall  : Type of Inset. If  
is *, all insets are matched. The name is used like for InsetLayout in 
layout files: "Note" matches all note insets, while "Note:Note" only matches 
LyX yellow note insets.

Sample Remove all index insets:inset-forall Index delete-
char-forwardClose all Notes (also works for a particular branch, for 
example):  inset-forall Note inset-toggle closeTransform all 
yellow notes to comments   inset-forall Note:Note inset-modify 
note Note CommentTry to put LyX in an infinite loop if there is at least a 
Note:  inset-forall Note char-backward

Origin lasgouttes, 27 Nov 2009





> Scott


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: search text without note-content

2013-01-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
> Could somebody explain how to go from my
> lyx-file with yellow notes (note-note)
> to another lyx-file without notes-notes?

* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is 
the "minibuffer")
* Enter the follwowing command to this widget and hit return:
  inset-forall Note:Note char-delete-forward

The minibuffer can be closed again by hitting Alt+x while the cursor is insice 
(if not, the command will bring the cursor in the minibuffer).

HTH
Jürgen


Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
> Wolfgang Engelmann wrote:
> > Could somebody explain how to go from my
> > lyx-file with yellow notes (note-note)
> > to another lyx-file without notes-notes?
> 
> * Make a copy of your file.
> * In LyX, hit Alt+x, which opens a small input widget on the bottom
> (this is the "minibuffer")
> * Enter the follwowing command to this widget and hit return:
>   inset-forall Note:Note char-delete-forward
> 
> The minibuffer can be closed again by hitting Alt+x while the cursor is
> insice (if not, the command will bring the cursor in the minibuffer).
> 
Thanks, Jürgen

very good, and nice to watch all the notes disappear (except the last one - 
but never mind ..)

Learned again something useful and must dig into this feature!

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 15:17, Jürgen Spitzmüller a écrit :

Wolfgang Engelmann wrote:

Could somebody explain how to go from my
lyx-file with yellow notes (note-note)
to another lyx-file without notes-notes?


* Make a copy of your file.
* In LyX, hit Alt+x, which opens a small input widget on the bottom (this is
the "minibuffer")
* Enter the follwowing command to this widget and hit return:
   inset-forall Note:Note char-delete-forward


The explanation goes like
  * Note:Note means "all note inset of type LyX Note". You could use
Note:Comment or Footnote. These neames are the same that are used in 
layout files.
  * You can use inset type "*" to match all insets and simply "Note" to 
match all note insets.


JMarc



Re: search text without note-content

2013-01-11 Thread Wolfgang Engelmann
Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:
> inset-forall Note:Note char-delete-forward
p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.
By running the 
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!
Sorry, you have found a bug in LyX, hope you have not lost any data.
Please read the bug-reporting instructions in 'Help->Introduction' and send 
us a bug report, if necessary. Thanks!
Bye.

I could recover the (now note-free) lyx file. Good.

Might be a buffer issue? Its a long paper with a lot of notes

Thanks again

Wolfgang


Re: search text without note-content

2013-01-11 Thread Jean-Marc Lasgouttes

Le 11/01/2013 16:11, Wolfgang Engelmann a écrit :

Am Freitag, 11. Januar 2013, 15:17:25 schrieb Jürgen Spitzmüller:

inset-forall Note:Note char-delete-forward

p.s. to my last mail:
I noticed it wasn't just the last note-note, but many more.


Can you make a test case where a note is skipped?


By running the
inset-forall Note:Note char-delete-forward
several times I got rid of them, however it ended with

SIGSEGV signal caught!


That is even more embarrassing. I hope we can do something about it.

JMarc