Summary: | [PATCH] Add option to disable swap files | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Duy Truong <jimreynold2nd> |
Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arthur, felixwalter92, michal.humpula, nortexoid, pacini409 |
Priority: | NOR | ||
Version: | 3.10.3 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kate/5bc16f7edf1fda6db33cdd8cbe96122f595c510b | Version Fixed In: | 5.0 |
Attachments: | Patch for KDE 4.11.4: Add ComboBox allowing swap files to be disabled completely |
Description
Duy Truong
2013-06-14 03:58:07 UTC
Though I don't use sshfs this is still _really_ annoying if the edited text files are in shared folders of cloud storage applications, e.g. Dropbox. Every time I edit a text file using KWrite, I have to disable cloud syncing or the swap file will be uploaded on each key press, which then shows a nice "file changed" notification to my coworkers... Maybe one could re-introduce the behaviour removed when fixing bug #309751 as an additional option or change the .swp file storage to /tmp as suggested in the above comment. This would be also nice to have when using a SSD to decrease disk writes. *** Bug 318452 has been marked as a duplicate of this bug. *** Status should be CONFIRMED. I'm observing this bug as well on KDE 4.11.3, Kubuntu 13.10. If you edit a text file you can see (e.g. in Dolphin with hidden files showing) the swp file being modified. Created attachment 83922 [details]
Patch for KDE 4.11.4: Add ComboBox allowing swap files to be disabled completely
This patch removes the option that the swap file is synced every 15 seconds. It should be an additional option. Michal currently works on this, too. See review request: https://git.reviewboard.kde.org/r/114229/ Thanks, didn't see that review request. Can you explain why it would remove the option to sync the swap file every 15 seconds? The ComboBox which I added has 3 options: - Sync every 15s - Disable syncing - Disable completely Oh right, I messed that up: Your patch still includes it, sorry :-) Michal, since this also touches the code of how swap files work: Can you take care of this? @Felix, best if you post your patches on reviewboard.kde.org :-) Btw, I like having these options in the combo box. I uploaded the patch to reviewboard, modified for the current git revision: https://git.reviewboard.kde.org/r/114305/ Hope I've done that right ;-) Git commit 5bc16f7edf1fda6db33cdd8cbe96122f595c510b by Michal Humpula. Committed on 23/12/2013 at 17:59. Pushed by michalhumpula into branch 'frameworks'. add posibility to change swap file location REVIEW: 114229 Related: bug 328244 M +67 -4 part/dialogs/katedialogs.cpp M +1 -0 part/dialogs/katedialogs.h M +132 -26 part/dialogs/opensaveconfigadvwidget.ui M +4 -3 part/document/katedocument.cpp M +21 -8 part/swapfile/kateswapfile.cpp M +73 -14 part/utils/kateconfig.cpp M +22 -4 part/utils/kateconfig.h http://commits.kde.org/kate/5bc16f7edf1fda6db33cdd8cbe96122f595c510b The option does nothing for me in Kate 3.14.1 on Kubuntu 14.10, KDE version 4.14.1. Whether I check or uncheck the option to disable the swap file, swap syncing is ALWAYS enabled. I tested this in Plasma 5/KF5 (Kubuntu 15.04) a couple months back and it still doesn't work. Whether or not the option is set to disable syncing, syncing takes place. This means constant dropbox activity even when I'm not saving a file, requiring that I constantly pause and resume syncing when I'm working on a text file. Can this bug be reopened, assuming nothing has changed in the last couple of months? |