This is a feature request. I'm not sure if it's the right place, but a user on bug #317799 suggested filing a report here with this info.
Kate doesn't always recognize that it's editing a file on a networked filesystem (on gnome, on autofs, custom fusefs, etc.). In these cases, there will be a network transaction for every character typed; and Kate UI will lag. Furthermore, on flash devices, this can wear down the device pretty quickly.
One seemingly easy solution would be to either add a user-configurable option to disable swap files completely, or have the swap file be saved somewhere local (like /tmp).
Steps to Reproduce:
1. Use sshfs to mount something on an oversea host
2. Use Kate to open a file on that mount
3. Try to type something
Kate lags on every character typed.
Kate UI should be smooth.
I'm choosing severity = Normal, since there is no "easy workaround" that I can find.
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:
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
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
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?