librelist archives

« back to archive

Temp files when using external text editor

Temp files when using external text editor

From:
iago
Date:
2011-04-26 @ 10:48
Hi,

I'm very pleased with the new feature in ß5 to use an external text-editor.

As I can see NV creates a temporary folder at /var each session and
stores there the txt file as you are working on it but it's removed
once you close your text editor. But, are they fully removed or can we
find them someplace just in case something goes wrong?

May be I'm asking in a wrong place...

Regards.
iago

Re: [develop.notational.velocity] Temp files when using external text editor

From:
Zachary Schneirov
Date:
2011-04-26 @ 14:14
Iago,

They are fully removed, because their purpose is temporary in nature — 
they aren't backup files. And NV reads any changes following each save in 
the external editor, so you won't be able to remove them "accidentally" 
without first having that information committed to NV's database.

But if you'd like to maintain backup text-files specifically, you can 
simply instruct NV to store its notes on disk as separate documents under
	Preferences > Notes > Storage > "Store and read notes on disk as:"

Zach

On Apr 26, 2011, at 5:48 AM, iago wrote:

> Hi,
> 
> I'm very pleased with the new feature in ß5 to use an external text-editor.
> 
> As I can see NV creates a temporary folder at /var each session and
> stores there the txt file as you are working on it but it's removed
> once you close your text editor. But, are they fully removed or can we
> find them someplace just in case something goes wrong?
> 
> May be I'm asking in a wrong place...
> 
> Regards.
> iago

Re: [develop.notational.velocity] Temp files when using external text editor

From:
iago
Date:
2011-04-26 @ 18:01
> They are fully removed, because their purpose is temporary in nature — 
they aren't backup files. And NV reads any changes following each save in 
the external editor, so you won't be able to remove them "accidentally" 
without first having that information committed to NV's database.

But I've done it. I can't remember how I get it but I lose some
changes (nothing important) and it's why I'm asking. May be it's
TextMate which remember an nonexistent file but I was editing a NV's
note and after saving the changes were lost.

I won't say I found a bug because I can't reproduce it and I asked
just in case I do it again accidentally.

Re: [develop.notational.velocity] Temp files when using external text editor

From:
Matthew Behrens
Date:
2011-04-26 @ 19:43
Do you have atomic saves enabled in TM? TM's atomic save method using
save/delete might be breaking things.

On Tue, Apr 26, 2011 at 2:01 PM, iago <iago@laconada.com> wrote:
>> They are fully removed, because their purpose is temporary in nature — 
they aren't backup files. And NV reads any changes following each save in 
the external editor, so you won't be able to remove them "accidentally" 
without first having that information committed to NV's database.
>
> But I've done it. I can't remember how I get it but I lose some
> changes (nothing important) and it's why I'm asking. May be it's
> TextMate which remember an nonexistent file but I was editing a NV's
> note and after saving the changes were lost.
>
> I won't say I found a bug because I can't reproduce it and I asked
> just in case I do it again accidentally.
>

Re: [develop.notational.velocity] Temp files when using external text editor

From:
iago
Date:
2011-04-27 @ 06:05
2011/4/26 Matthew Behrens <askedrelic@gmail.com>:
> Do you have atomic saves enabled in TM? TM's atomic save method using
> save/delete might be breaking things.

No, I don't use atomic saves but I use saving when focus is lost.

The error was after the 10.6.7 upgrade reboot  and I created a new
note with the same name plus "recortes" (may be is a magic word!)
while writing in TextMate. I was just trying to create and read
different notes at the same time I was writing in the external editor.
But as I've said, I can't reproduce it or I'm forgetting some step.

Also I use SimpleNote to sync notes and the SN's Dropbox connection...