Create file on disk on new buffer creation

José Tomás Atria jtatria at
Thu Jan 24 21:09:00 GMT 2019

Hi Kåre,

Thanks for your quick response.

I am aware of the swap file feature and the backup options for buffers that
have been saved on disk, but this still requires me to save a new buffer to
a file at least once. I was asking if it would be possible to automate
this. The use case I have in mind is that sometimes I open a kate buffer to
copy some snippet or jot down some notes and then would carelessly close
kate without saving any of the new buffers, which prevents any of the
backup features from kicking in.

I guess what I was thinking of was a "Save new buffers to temp file on
creation" option. Do you think this would be a reasonable change?


On Thu, Jan 24, 2019 at 4:16 AM Kåre Särs <kare.sars at> wrote:

> Hi José,
>  On onsdag 23 januari 2019 kl. 23:18:53 EET José Tomás Atria wrote:
> > Dear Kate developers,
> >
> > Thanks for your awesome text editor, it's the best I've found by far and
> I
> > use it for everything from note taking to development in several
> languages.
> > Love it.
> That is nice to hear! :)
> >
> > I wanted to know if it would be possible or sensible to add an optional
> > feature to backup every new buffer on a tmp file on disk in order to
> > protect unsaved data from system crashes or even user carelessness. Is
> > there a good reason not to add this as an option? I haven;t thought about
> > the details, but anything that would allow me to save all buffers by
> > default, even using a ring file, would be greatly appreciated.
> By default there is a backup file created and updated every 15s if the
> file
> has been edited. When the file is saved this "backup" file is removed. The
> terminology used in the settings is "Swap file".  (The exception to this
> is a
> new still unsaved document.)
> When you open the original file after a system/kate crash you get a
> question
> if you want to load the unsaved changes from the swap file.
> There is also the an option to always create backups when saving a file.
> With
> this option enabled Kate will save the original data in the backup before
> writing the new data to the file.
> These two option scan be found under:
>  Settings->Configure Kate...->Open/save->Advanced
> Regards,
>   Kåre

entia non sunt multiplicanda praeter necessitatem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KWrite-Devel mailing list