Еще раз попробовал, работает. А тогда не работало, точно. Это странно. Будем надеяться что в нужный момент эта функция не подведет. Спасибо за программу!Instructor wrote:drag0n
Не воспроизводится. Сохраняются любые изменения.
SaveFile plugin
- Author
- Message
-
Offline
- Posts: 366
- Joined: Mon Jan 10, 2011 5:28 pm
- Contact:
У меня нет точной последовательности для воспроизведения, но опишу, что произошло.
Win7x64, Akel 4.9.7x86.
В MDI режиме открыто 10 вкладок с разными файлами. Самый правый редактируется, но Акель зависает так, что виндоус его убивает. Иду в папку с редактировавшимся файлом и двойным кликом его открываю (рядом лежал бэкапный тмп файл). Он (не тмп) открывается в последней сохранённой редакции и тут окошко от плагина - восстановить ли. Без задней мысли соглашаюсь. В итоге - 10 вкладка имеет последние сохранённые изменения и без бэкапных добавок. А 9 файл полностью заменён содержимым из бэкапа, стоит звёздочка, но откатить эти изменения нельзя. Помогает только обновить 9 файл с потерей изменений.
Даже не знаю, как бы крутился, если бы несохранённых изменений было несколько в разных файлах.
Win7x64, Akel 4.9.7x86.
В MDI режиме открыто 10 вкладок с разными файлами. Самый правый редактируется, но Акель зависает так, что виндоус его убивает. Иду в папку с редактировавшимся файлом и двойным кликом его открываю (рядом лежал бэкапный тмп файл). Он (не тмп) открывается в последней сохранённой редакции и тут окошко от плагина - восстановить ли. Без задней мысли соглашаюсь. В итоге - 10 вкладка имеет последние сохранённые изменения и без бэкапных добавок. А 9 файл полностью заменён содержимым из бэкапа, стоит звёздочка, но откатить эти изменения нельзя. Помогает только обновить 9 файл с потерей изменений.
Даже не знаю, как бы крутился, если бы несохранённых изменений было несколько в разных файлах.
-
Offline
- Posts: 84
- Joined: Wed Jan 27, 2016 6:53 pm
- Location: Europe
Hello,
when a file has already been named, I would like to save it every 1 minute to itself (the original), just like hitting CTRL-S every minute -- and when text in akelpad has NOT yet been saved, I want it to be saved to .tmp. I do NOT want any NAMED file to be saved to .tmp, at any time. Also actually I would prefer not .tmp to be saved at all, but instead I would like to have Akelpad auto-save unnamed files to 2016-01-22 11-49-12.txt in a default directory (date, time (hr,min,sec). This would eliminated tmp files, and it would also eliminate saving as .tmp of already named files.
The idea would be that there are always two situations:
a) user creates and names a new txt file in file manager and then opens it (or user opens a pre-existing text file) => Akelpad auto-saves this file every minute to original. If the user wants backups, he can set up e.g. Second Copy 8 to do this.
b) user opens akelpad and types text into an UNNAMED document. -> akelpad auto-saves this immediately as 2016-01-22 11-49-12.txt (creation date) in pre-defined directory, and continues to save it every minute. The file name (creation date) remains constant, of course. If the user wants to manually save the file, then instead of saving he choses the RENAME function to get the desired result.
I don't know which of my suggestions you like (or even all ), but if anything, it would be great if there were at least an option to always exclude NAMED txt files from being saved as tmp altogether, wilst still saving unnamed files.
Thanks for considering!
when a file has already been named, I would like to save it every 1 minute to itself (the original), just like hitting CTRL-S every minute -- and when text in akelpad has NOT yet been saved, I want it to be saved to .tmp. I do NOT want any NAMED file to be saved to .tmp, at any time. Also actually I would prefer not .tmp to be saved at all, but instead I would like to have Akelpad auto-save unnamed files to 2016-01-22 11-49-12.txt in a default directory (date, time (hr,min,sec). This would eliminated tmp files, and it would also eliminate saving as .tmp of already named files.
The idea would be that there are always two situations:
a) user creates and names a new txt file in file manager and then opens it (or user opens a pre-existing text file) => Akelpad auto-saves this file every minute to original. If the user wants backups, he can set up e.g. Second Copy 8 to do this.
b) user opens akelpad and types text into an UNNAMED document. -> akelpad auto-saves this immediately as 2016-01-22 11-49-12.txt (creation date) in pre-defined directory, and continues to save it every minute. The file name (creation date) remains constant, of course. If the user wants to manually save the file, then instead of saving he choses the RENAME function to get the desired result.
I don't know which of my suggestions you like (or even all ), but if anything, it would be great if there were at least an option to always exclude NAMED txt files from being saved as tmp altogether, wilst still saving unnamed files.
Thanks for considering!
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
Изменено: "Сохранять как обычно" игнорирует файлы открытые дважды. Требуется AkelPad 4.9.8 или выше.
Changed: "Save as usual" ignores files open twice. AkelPad 4.9.8 or higher required.
SaveFile plugin v3.5
Changed: "Save as usual" ignores files open twice. AkelPad 4.9.8 or higher required.
SaveFile plugin v3.5
-
Offline
- Posts: 20
- Joined: Mon Jan 03, 2011 6:53 pm
- Contact:
Autosave doesn't work anymore.
Autosave doesn't work anymore.
Tried with latest versions (AkelPad v4.9.7 and SaveFile.dll v3.5)
Tried with latest versions (AkelPad v4.9.7 and SaveFile.dll v3.5)
-
Offline
- Posts: 20
- Joined: Mon Jan 03, 2011 6:53 pm
- Contact:
-
Offline
- Posts: 1161
- Joined: Sun Oct 20, 2013 11:44 am
TheDutchJewel
You can wait when Instructor fixes this or:
- https://sourceforge.net/projects/akelpa ... 204/4.9.7/ (7-zip can unpack setup-file)
- or compile necessary: you must find post with description necessary version (without login to forum), find commit with his date/description and compile previous.
You can wait when Instructor fixes this or:
- https://sourceforge.net/projects/akelpa ... 204/4.9.7/ (7-zip can unpack setup-file)
- or compile necessary: you must find post with description necessary version (without login to forum), find commit with his date/description and compile previous.
-
Offline
- Posts: 1250
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
Проверил простой режим авто-сохранения каждую 1 минуту, MDI.
Сейчас в функции MakeBackupFile не выполняется следующее условие:
и файл поэтому не сохраняется. А возвращается там 0 вместо ожидаемой 1.
Может, для совместимости с AkelPad 4.9.7 надо изменить так? -
Сейчас в функции MakeBackupFile не выполняется следующее условие:
Code: Select all
if (SendMessage(hMainWnd, AKD_FRAMESTATS, FWS_COUNTFILE, (LPARAM)lpFrame->ei.wszFile) == 1)
Может, для совместимости с AkelPad 4.9.7 надо изменить так? -
Code: Select all
if (SendMessage(hMainWnd, AKD_FRAMESTATS, FWS_COUNTFILE, (LPARAM)lpFrame->ei.wszFile) <= 1)
Last edited by DV on Fri Jun 24, 2016 12:19 pm, edited 2 times in total.
-
Offline
- Posts: 20
- Joined: Mon Jan 03, 2011 6:53 pm
- Contact:
Thanks. Version 3.4 works fine.Skif_off wrote:TheDutchJewel
https://sourceforge.net/projects/akelpa ... 204/4.9.7/ (7-zip can unpack setup-file).
-
Offline
- Posts: 84
- Joined: Wed Jan 27, 2016 6:53 pm
- Location: Europe
Hello! I would like to request that Autosave can save more often than every 60 seconds. And/or it might also be helpful to add a few more triggers such as "save every x keys pressed" or something like that.
As I mentioned, I experience occational crashes upon closing (issue still not resolved; I am waiting to upgrade from 8.1 U1 to Win 10 Anniversary before I look into this again). This has resulted in dataloss unless I press ctrl-s before closing. Crashes do and will occcur, so it might be wise to have a robust saving mechanism. In fact, I think today's SSDs don't have a problem with saving every 1second if one chooses to. This would essentiallyprevent any kind of dataloss.
Triggering an autosave as the VERY FIRST action taken before the closing sequence is started would also be a great option. By the way I am actionally wondering if the bug has to do with autosave, since there is a trigger "on frame loss".
Bottom line: please give us autosave per second! Thank you!
As I mentioned, I experience occational crashes upon closing (issue still not resolved; I am waiting to upgrade from 8.1 U1 to Win 10 Anniversary before I look into this again). This has resulted in dataloss unless I press ctrl-s before closing. Crashes do and will occcur, so it might be wise to have a robust saving mechanism. In fact, I think today's SSDs don't have a problem with saving every 1second if one chooses to. This would essentiallyprevent any kind of dataloss.
Triggering an autosave as the VERY FIRST action taken before the closing sequence is started would also be a great option. By the way I am actionally wondering if the bug has to do with autosave, since there is a trigger "on frame loss".
Bottom line: please give us autosave per second! Thank you!
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
Добавлено: возможность указывать интервал сохранения в секундах.
Исправлено: возможное переполнение буфера при работе с длинными именами файлов.
Added: possibility to specify save interval in seconds.
Fixed: possible buffer overflow with long file names.
SaveFile plugin v3.8
Исправлено: возможное переполнение буфера при работе с длинными именами файлов.
Added: possibility to specify save interval in seconds.
Fixed: possible buffer overflow with long file names.
SaveFile plugin v3.8
-
Offline
- Posts: 1
- Joined: Thu Aug 15, 2019 11:39 am
Instructor wrote:mad_bullfrog
В версии 2.2 можно сохранять файл обычным способом и одновременно во временную директорию или tmp файл. В случае сбоя где-нибудь да сохранится
Здравствуйте!
Спасибо за плагин автосохранения! Подскажите можно ли реализовать функцию / чекбокс: "удалять *.tmp ТОЛЬКО после закрытия файла"?
Как сейчас: автосохранение работает корректно, *.tmp создаются, (и рядом с файлом, и в указанной директории), все замечательно, но после сохранения в ручную, когда файл еще открыт (когда пользователь нажимает ctrl+s или F2) *.tmp удаляются.
Чем это плохо: Когда файл открыт в AkelPad и уже сохранен в ручном режиме (*.tmp уже отсутствуют) а ты работаешь вообще в другой программе, и к примеру происходит системный сбой или вырубается электричество, после перезагрузки файл, который был открыт в AkelPad и сохранен до сбоя, в ряде случаев становится бинарным (заполнен нулями) и не подлежит восстановлению, и резервной копии нет (повторюсь *.tmp после ручного сохранения уже отсутствуют). Что влияет на то, что иногда после сбоя ПК файл становится бинарным, к сожалению понять и объяснить не могу.
Если бы была возможность, для тех кому это нужно, в настройках указать: "удалять *.tmp ТОЛЬКО после корректного закрытия файла", а не после сохранения в ручном режиме, это была бы просто песня!
Очень нужно! Годами нечего не происходит, тут за пару месяцев три раза столкнулся с этой проблемой, когда файлы становятся бинарными.
Заранее благодарю за какое-либо решение, чтобы решить описанную проблему!
PS на скрине текущие настройки плагина:
AkelPad 4.9.8 (x86)
Версия плагина: SaveFile AkelPad plugin v3.8
WIN 7 Ultimate x64 SP1
-
Offline
- Posts: 330
- Joined: Mon Jun 03, 2019 2:33 am
Надоедает диалог "Строка содержит символы которые будут утеряны при сохранении в этой кодировке. Продолжить?".
Автосохранение как я понимаю проходит во временный файл. Есть ли возможность при автосохранении использовать UTF-8 или в формате, в котором текст хранится в окне.
Я могу переключить на создание нового файла не в 1251, а UTF-8, но тогда у меня много файлов увеличатся в 2 раза. Может действительно плюнуть на эту проблему.
Автосохранение как я понимаю проходит во временный файл. Есть ли возможность при автосохранении использовать UTF-8 или в формате, в котором текст хранится в окне.
Я могу переключить на создание нового файла не в 1251, а UTF-8, но тогда у меня много файлов увеличатся в 2 раза. Может действительно плюнуть на эту проблему.
-
Offline
- Posts: 3217
- Joined: Wed Nov 29, 2006 1:19 pm
- Location: Киев, Русь
- Contact: