Re: Some filenames ending with tilde

2023-03-07 Thread José Matos
On Tue, 2023-03-07 at 07:38 +0100, Daniel CLEMENT via lyx-users wrote:
> Hmm... Makes sense. 
> 
> I used to do that by putting all the .lyx~ in my dedicated /backup
> directory, and emptying it periodically. But then, regular files from
> various directories happen to have the same name, so the
> corresponding .lyx~ files would get overwritten.

Without looking into the code I suspect that the backups are not
overwritten since if the name is already taken then a new file is
created appending the directory name (using ! as the directory
separator). At least that is my case after setting a backup directory
and nothing else.

-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Some filenames ending with tilde

2023-03-06 Thread Daniel CLEMENT via lyx-users

> Le 6 mars 2023 à 15:28, Maria Gouskova  a écrit :
> 
> If these .lyx~ files bother you, you could add the following to your .bashrc 
> file:
> 
> alias dellyx='find . -name "*.lyx~" -delete'
> 
> Then, with a Terminal window open, type "dellyx" at the $ prompt, and all the 
> .lyx~ files in that directory and all its subdirectories will be deleted. 
> (Obviously, only do this when you're sure that you won't need any of the 
> backups.)
> 
> Maria

Hmm... Makes sense. 

I used to do that by putting all the .lyx~ in my dedicated /backup directory, 
and emptying it periodically. But then, regular files from various directories 
happen to have the same name, so the corresponding .lyx~ files would get 
overwritten.

So, your advice is probably smarter. I’ll follow it!

> 
> On Mon, Mar 6, 2023 at 4:26 AM Jürgen Spitzmüller  wrote:
> Am Montag, dem 06.03.2023 um 10:20 +0100 schrieb Daniel CLEMENT via
> lyx-users:
> > My bad
> 
> Not at all. It is not very obvious which backup strategies LyX has and
> what all the diverse backup and emergency files are for.
> 
> We have thus added a bit of explanation in the User Guide for LyX 2.4.
> 
> Best,
> -- 
> Jürgen
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users

--
Daniel CLEMENT

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


Re: Some filenames ending with tilde

2023-03-06 Thread Maria Gouskova
If these .lyx~ files bother you, you could add the following to your .bashrc
 file:

alias dellyx='find . -name "*.lyx~" -delete'

Then, with a Terminal window open, type "dellyx" at the $ prompt, and all
the .lyx~ files in that directory and all its subdirectories will be
deleted. (Obviously, only do this when you're sure that you won't need any
of the backups.)

Maria



On Mon, Mar 6, 2023 at 4:26 AM Jürgen Spitzmüller  wrote:

> Am Montag, dem 06.03.2023 um 10:20 +0100 schrieb Daniel CLEMENT via
> lyx-users:
> > My bad
>
> Not at all. It is not very obvious which backup strategies LyX has and
> what all the diverse backup and emergency files are for.
>
> We have thus added a bit of explanation in the User Guide for LyX 2.4.
>
> Best,
> --
> Jürgen
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Some filenames ending with tilde

2023-03-06 Thread Jürgen Spitzmüller
Am Montag, dem 06.03.2023 um 10:20 +0100 schrieb Daniel CLEMENT via
lyx-users:
> My bad

Not at all. It is not very obvious which backup strategies LyX has and
what all the diverse backup and emergency files are for.

We have thus added a bit of explanation in the User Guide for LyX 2.4.

Best,
-- 
Jürgen
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Some filenames ending with tilde

2023-03-06 Thread Daniel CLEMENT via lyx-users

> Le 6 mars 2023 à 09:47, Jürgen Spitzmüller  a écrit :
> 
> Am Montag, dem 06.03.2023 um 09:26 +0100 schrieb Daniel CLEMENT via
> lyx-users:
>> I've just recently noticed that some .lyx~ files remain alongside my
>> regular LyX documents.
>> 
>> They are not hidden, but the Mac file browser adds a subtitle to
>> them: 
>> "non admissible" (in French...)
> 
> These are backup files. They are done and updated (by default) each
> time you safe the current document.

My bad, I was mistaking them for temporary files.
> 
>> Shouldn't they be erased automatically? 
> 
> No, they are meant as a permanent backup, should your original file get
> corrupted or lost.
> 
> In order to open them with LyX, you probably need to remove the
> trailing tilde.

Good to know. I guess I had only “used” them when LyX offered me to recover 
after a crash. 
> 
> (The trailing tilde is an established marker of backup files, coming
> from the Emacs text editor)
> 
>> Is there a setting that I'm missing?
> 
> In Tools > Preferences > Look & Feel > Document Handling, you can
> disable "Backup original documents when saving" if you really do not
> want these backups.
> 
> In Tools > Preferences > Paths, you can setup a "Backup directory"
> where all these backups are stored rather than alongside the original
> document.

That’s it, I had forgotten to adjust this setting when I did my new install (I 
do have a dedicated /backup directory). It’s done now.
> 
> HTH,
> -- 
> Jürgen

Thanks a lot Jürgen

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


Re: Some filenames ending with tilde

2023-03-06 Thread Jürgen Spitzmüller
Am Montag, dem 06.03.2023 um 09:26 +0100 schrieb Daniel CLEMENT via
lyx-users:
> I've just recently noticed that some .lyx~ files remain alongside my
> regular LyX documents.
> 
> They are not hidden, but the Mac file browser adds a subtitle to
> them: 
> "non admissible" (in French...)

These are backup files. They are done and updated (by default) each
time you safe the current document.

> Shouldn't they be erased automatically? 

No, they are meant as a permanent backup, should your original file get
corrupted or lost.

In order to open them with LyX, you probably need to remove the
trailing tilde.

(The trailing tilde is an established marker of backup files, coming
from the Emacs text editor)

> Is there a setting that I'm missing?

In Tools > Preferences > Look & Feel > Document Handling, you can
disable "Backup original documents when saving" if you really do not
want these backups.

In Tools > Preferences > Paths, you can setup a "Backup directory"
where all these backups are stored rather than alongside the original
document.

HTH,
-- 
Jürgen
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Some filenames ending with tilde

2023-03-06 Thread Daniel CLEMENT via lyx-users
Hello,

I'm still rather new to using LyX on a Mac, and I have a couple more
questions, here is the 1st:

I've just recently noticed that some .lyx~ files remain alongside my
regular LyX documents.

They are not hidden, but the Mac file browser adds a subtitle to them: 
"non admissible" (in French...)

Shouldn't they be erased automatically? Is there a setting that I'm
missing?

Thanks in advance - BR, Daniel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users