Re: "Open Recent". How to extend the limit from 50 to 100?

2020-06-20 Thread typist
OK, and thank you Stephan.

To be clearer about #4 below. A file does not need to be re-opened to populate 
the list I require. For the list has already been populated by the most recent 
files that were opened. And those — the most recently opened — are the files I 
require.

PS: I’ve gotten what I require by also accessing the “Open Recent” list on my 
prior computer.

My thanks again.

> On 20 Jun 2020, at 10:47 pm, Stephan Witt  wrote:
> 
> Am 20.06.2020 um 08:29 schrieb typ...@mac.com:
>> 
>> Thanks JMarc,
>> 
>> 1. Using LyX Version 2.3.5-1 (2 June 2020), I see that the “Maximum last 
>> files” is 50. (Via Preferences -> Look @ Feel -> User Interface.)
> 
> Yes, that’s true. It was changed from 20 to 50 on 2016-01-13.
> 
>> 2. Where do I find that "there is a hardcoded bound at 100”?
> 
> The first hard coded bound is 50 indeed. It’s in the source code in header 
> file src/LyXRC.h line 547 for LyX 2.3.5.
> 
> The 2nd upper limit of 100 is in source code file src/Session.cpp line 47 the 
> assignment of absolute_max_last_files.
> 
> This is the limit JMarc had in mind, AFAICS.
> 
>> 3. Can I access that limit?
> 
> You can’t change it without recompile the complete application.
> 
>> 4. PS: I do not see why a file needs to be opened to populate the list that 
>> I require??
> 
> In fact it’s the list of last accessed files. What do you expect? What is the 
> list that you requires? In your first mail you wrote:
> 
>> I’d like to review the last 100 files that I’ve opened.
> 
> Indeed this list is stored in the file "~/Library/Application 
> Support/LyX-2.3/session“
> 
> You may fill it yourself if you know how to do it. The first two lines of 
> this file are:
> 
> ## Automatically generated lyx session file 
> ## Editing this file manually may cause lyx to crash.
> 
> So, you’re warned …
> 
> Stephan

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: "Open Recent". How to extend the limit from 50 to 100?

2020-06-20 Thread Stephan Witt
Am 20.06.2020 um 08:29 schrieb typ...@mac.com:
> 
> Thanks JMarc,
> 
> 1. Using LyX Version 2.3.5-1 (2 June 2020), I see that the “Maximum last 
> files” is 50. (Via Preferences -> Look @ Feel -> User Interface.)

Yes, that’s true. It was changed from 20 to 50 on 2016-01-13.

> 2. Where do I find that "there is a hardcoded bound at 100”?

The first hard coded bound is 50 indeed. It’s in the source code in header file 
src/LyXRC.h line 547 for LyX 2.3.5.

The 2nd upper limit of 100 is in source code file src/Session.cpp line 47 the 
assignment of absolute_max_last_files.

This is the limit JMarc had in mind, AFAICS.

> 3. Can I access that limit?

You can’t change it without recompile the complete application.

> 4. PS: I do not see why a file needs to be opened to populate the list that I 
> require??

In fact it’s the list of last accessed files. What do you expect? What is the 
list that you requires? In your first mail you wrote:

> I’d like to review the last 100 files that I’ve opened.

Indeed this list is stored in the file "~/Library/Application 
Support/LyX-2.3/session“

You may fill it yourself if you know how to do it. The first two lines of this 
file are:

## Automatically generated lyx session file 
## Editing this file manually may cause lyx to crash.

So, you’re warned …

Stephan
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


"Open Recent". How to extend the limit from 50 to 100?

2020-06-20 Thread typist
Thanks JMarc,

1. Using LyX Version 2.3.5-1 (2 June 2020), I see that the “Maximum last files” 
is 50. (Via Preferences -> Look @ Feel -> User Interface.)

2. Where do I find that "there is a hardcoded bound at 100”?

3. Can I access that limit?

4. PS: I do not see why a file needs to be opened to populate the list that I 
require??
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


"Open Recent". How to extend the limit from 50 to 100?

2020-06-18 Thread typist
I’d like to review the last 100 files that I’ve opened. The current LyX limit 
is 50. How might I do this?

Thanks. lyx101
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: "Open Recent". How to extend the limit from 50 to 100?

2020-06-18 Thread Kornel Benko
Am Thu, 18 Jun 2020 23:28:54 +1000
schrieb typ...@mac.com:

> I’d like to review the last 100 files that I’ve opened. The current LyX limit 
> is 50.
> How might I do this?
> 
> Thanks. lyx101

You have to recompile lyx. This value is hardcoded in src/LyXRC.h.
const long maxlastfiles = 50;

Kornel


pgpZXlEcmXouE.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: "Open Recent". How to extend the limit from 50 to 100?

2020-06-18 Thread Jean-Marc Lasgouttes

Le 18/06/2020 à 15:28, typ...@mac.com a écrit :

I’d like to review the last 100 files that I’ve opened. The current LyX limit 
is 50. How might I do this?


Hello,

As far as I can see in the sources, the default is 20 and there is a 
hardcoded bound at 100. I am surprised by your numbers, but I have not 
checked in LyX, it takes time to open 100 files to populate the list.


JMarc
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users