AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SaveFile plugin
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    AkelPad Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
drag0n



Joined: 07 Oct 2015
Posts: 5

PostPosted: Thu Jan 07, 2016 12:45 pm    Post subject: Reply with quote

Instructor wrote:
drag0n
Не воспроизводится. Сохраняются любые изменения.


Еще раз попробовал, работает. А тогда не работало, точно. Это странно. Будем надеяться что в нужный момент эта функция не подведет. Спасибо за программу!
Back to top
View user's profile Send private message
Lenchik



Joined: 10 Jan 2011
Posts: 366

PostPosted: Sat Jan 23, 2016 5:17 pm    Post subject: Reply with quote

У меня нет точной последовательности для воспроизведения, но опишу, что произошло.
Win7x64, Akel 4.9.7x86.
В MDI режиме открыто 10 вкладок с разными файлами. Самый правый редактируется, но Акель зависает так, что виндоус его убивает. Иду в папку с редактировавшимся файлом и двойным кликом его открываю (рядом лежал бэкапный тмп файл). Он (не тмп) открывается в последней сохранённой редакции и тут окошко от плагина - восстановить ли. Без задней мысли соглашаюсь. В итоге - 10 вкладка имеет последние сохранённые изменения и без бэкапных добавок. А 9 файл полностью заменён содержимым из бэкапа, стоит звёздочка, но откатить эти изменения нельзя. Помогает только обновить 9 файл с потерей изменений.
Даже не знаю, как бы крутился, если бы несохранённых изменений было несколько в разных файлах.
Back to top
View user's profile Send private message Visit poster's website
SaFeTyPe



Joined: 27 Jan 2016
Posts: 66
Location: Europe

PostPosted: Wed Feb 03, 2016 9:51 pm    Post subject: Reply with quote

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 Very Happy ), 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!
Back to top
View user's profile Send private message
year



Joined: 28 May 2015
Posts: 2

PostPosted: Wed Mar 09, 2016 11:25 pm    Post subject: Reply with quote

Instructor wrote:
year
Реализовано. Будет доступно после релиза AkelPad 4.9.7.
Круто, спасибо!
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 6223

PostPosted: Wed Jun 01, 2016 6:10 pm    Post subject: Reply with quote

Изменено: "Сохранять как обычно" игнорирует файлы открытые дважды. Требуется AkelPad 4.9.8 или выше.

Changed: "Save as usual" ignores files open twice. AkelPad 4.9.8 or higher required.


SaveFile plugin v3.5
Back to top
View user's profile Send private message Send e-mail
TheDutchJewel



Joined: 03 Jan 2011
Posts: 19

PostPosted: Mon Jun 13, 2016 3:55 am    Post subject: Autosave doesn't work anymore. Reply with quote

Autosave doesn't work anymore.

Tried with latest versions (AkelPad v4.9.7 and SaveFile.dll v3.5)
Back to top
View user's profile Send private message Visit poster's website
TheDutchJewel



Joined: 03 Jan 2011
Posts: 19

PostPosted: Fri Jun 17, 2016 4:51 am    Post subject: Reply with quote

Where can I download an old version of this plugin, to get auto saving of open files working again?
Back to top
View user's profile Send private message Visit poster's website
Skif_off



Joined: 20 Oct 2013
Posts: 1094

PostPosted: Fri Jun 17, 2016 7:52 am    Post subject: Reply with quote

TheDutchJewel
You can wait when Instructor fixes this or:
- https://sourceforge.net/projects/akelpad/files/AkelPad%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.
Back to top
View user's profile Send private message
DV



Joined: 16 Nov 2006
Posts: 989
Location: Kyiv, Ukraine

PostPosted: Fri Jun 17, 2016 11:22 am    Post subject: Reply with quote

Проверил простой режим авто-сохранения каждую 1 минуту, MDI.
Сейчас в функции MakeBackupFile не выполняется следующее условие:
Code:

if (SendMessage(hMainWnd, AKD_FRAMESTATS, FWS_COUNTFILE, (LPARAM)lpFrame->ei.wszFile) == 1)

и файл поэтому не сохраняется. А возвращается там 0 вместо ожидаемой 1.

Может, для совместимости с AkelPad 4.9.7 надо изменить так? -
Code:
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
Back to top
View user's profile Send private message
TheDutchJewel



Joined: 03 Jan 2011
Posts: 19

PostPosted: Fri Jun 17, 2016 2:30 pm    Post subject: Reply with quote

Skif_off wrote:
TheDutchJewel
https://sourceforge.net/projects/akelpad/files/AkelPad%204/4.9.7/ (7-zip can unpack setup-file).

Thanks. Version 3.4 works fine.
Back to top
View user's profile Send private message Visit poster's website
SaFeTyPe



Joined: 27 Jan 2016
Posts: 66
Location: Europe

PostPosted: Sun Jun 26, 2016 3:16 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Plugins All times are GMT
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group