* * *

Author Topic: LazAutoSave - IDE Plugin  (Read 1386 times)

lainz

  • Hero Member
  • *****
  • Posts: 2828
    • Home
LazAutoSave - IDE Plugin
« on: April 26, 2018, 12:23:25 am »
If you're working and pressing Ctrl + S all the time, this is for you.

https://github.com/lainz/LazAutoSave

Made by @GetMem, @JuhaManninen and myself, it saves you  ;)

Features:
- AutoSave all files each 1 second (you can set the time in the file, no GUI for now..)

ToDo:
- Enable AutoSave on last opened project (when you open Lazarus for the first time). Currently you need to reopen it again in order to work.
Done! Thanks to @JuhaManninen.

This is not for everyone, I'm fine on using it because I use Git, and commit regularly. And I'm used to it from other IDE's (VS Code, IntelliJ Community).

And that's all =) Enjoy.
« Last Edit: April 26, 2018, 02:09:15 am by lainz »

GetMem

  • Hero Member
  • *****
  • Posts: 3186
Re: LazAutoSave - IDE Plugin
« Reply #1 on: April 26, 2018, 10:04:36 am »
I did a few improvement(tested on win32/64, gtk2, carbon):
   1. Replaced TTimer with a TThread(less interference with the IDE)
   2. The interval is configurable via the Options dialog. LazMenu-->File-->AutoSave options( [Ctrl] + [Shift] + A )
   3. Added resource strings to support other languages

lainz

  • Hero Member
  • *****
  • Posts: 2828
    • Home
Re: LazAutoSave - IDE Plugin
« Reply #2 on: April 26, 2018, 02:27:20 pm »
Thankyou GetMem, I've updated the repository.

GetMem

  • Hero Member
  • *****
  • Posts: 3186
Re: LazAutoSave - IDE Plugin
« Reply #3 on: April 26, 2018, 02:46:49 pm »
You're welcome. Please run a few test, I did not have enough time to test it thoroughly.

lainz

  • Hero Member
  • *****
  • Posts: 2828
    • Home
Re: LazAutoSave - IDE Plugin
« Reply #4 on: April 26, 2018, 02:52:13 pm »
Yes, I'm already using it to work, so It's being tested from now to all days I use Lazarus.

GetMem

  • Hero Member
  • *****
  • Posts: 3186
Re: LazAutoSave - IDE Plugin
« Reply #5 on: April 26, 2018, 02:54:23 pm »
OK thanks, if is stable I will add it to OPM, maybe other users will find it useful. Perhaps we can add more feature, though nothing comes to my mind now.

lainz

  • Hero Member
  • *****
  • Posts: 2828
    • Home
Re: LazAutoSave - IDE Plugin
« Reply #6 on: April 26, 2018, 03:47:34 pm »
I've tested it all the morning, and it's working fine.

Also I did tests like:
- Start lazarus and edit last project
- New project, new file, save file, edit file
- Open projects and edit

lainz

  • Hero Member
  • *****
  • Posts: 2828
    • Home
Re: LazAutoSave - IDE Plugin
« Reply #7 on: April 28, 2018, 04:56:04 pm »
Hi, I'm reporting the usage of this plugin over 3 days.

It's working fine. I had no problem, no crashes and nothing like that.

But, the difficult part was keeping myself out of pressing Ctrl + S. It was the hardest part.

Maybe the save moment is noticeable, I don't have an SSD, but is less than a second, but still noticeable.

GetMem

  • Hero Member
  • *****
  • Posts: 3186
Re: LazAutoSave - IDE Plugin
« Reply #8 on: April 30, 2018, 06:24:51 am »
Quote
Hi, I'm reporting the usage of this plugin over 3 days.
It's working fine. I had no problem, no crashes and nothing like that.
OK. I added to OPM.

Quote
But, the difficult part was keeping myself out of pressing Ctrl + S. It was the hardest part.
:D Old habits die hard.

Quote
Maybe the save moment is noticeable, I don't have an SSD, but is less than a second, but still noticeable.
With SSD is not noticeable at all.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus