It was actually pretty easy to implement using `g_mkstemp()` as done in #2769.
The directory for instantly saved files can then be configured and if not configured, the default temporary directory is used, as before.
I added a note in the plugin's preferences that the user is responsible for cleaning up the created files.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/640#issuecomment-803855295
@ftrebien the "instant save" is intended for temporary files, if you want a file to be permanent it should be saved to a suitable location with a sensible name. Also no matter where it is saved, if the system crashes or is rebooted with Geany open there is no guarantee that the file is saved.
The plugin uses a portable Glib function to create the unique filename in the system temporary directory, so it works on Windows and macos. All this would have to be replicated in the plugin. Pull requests are welcome.
Also if the files are saved in some non-temporary location then they will not be deleted and will continue to accumulate. You would have to delete them manually, but since they have random names you won't know which ones to delete.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/640#issuecomment-803674545
I'm on Geany 1.33 on Debian Buster and I was looking for a way to save these files in `/var/tmp` so that they are preserved between reboots or system crashes. Defining `TMPDIR` really works, but setting it to anything other than '/tmp' for all applications is generally undesirable. The user would normally want to configure it only for Geany. This requires modifying the files that are managed by the system's package manager (the desktop shortcut or the executable, which must be replaced by a script that defines the variable and then calls the executable), which makes updating Geany and the entire system complicated and prone to errors. I would like to ask for these options in the Instant Save plug-in configuration panel:
- Default system temporary directory
- Custom directory: `[input field]`
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/640#issuecomment-803561008
-Most other fonts render underscores appropriately
-Changing font size/zoom will cause fonts to appear depending on the setting, even with Monospace Regular font
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2386
Hello,
When you type on Geany with onboard you get suggestions but when you click on one the caret just jump ahead some number of characters sometime it erase some.
onboard/focal,now 1.4.1-2ubuntu7 amd64 [installed]
I am attaching my onboard configuration files.
OS:
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.8.0-45-generic
OS Type: 64-bit
Processors: 6 × AMD FX(tm)-6120 Six-Core Processor
Memory: 9.7 GiB of RAM
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2766
Followed instruction to install plugins which appeared to run smoothly.
However the menu option under edit - plugin preferences is greyed out.
geany version 1.36.
geany.conf attached renamed geany.txt to enable upload
[geany.txt](https://github.com/geany/geany/files/6136831/geany.txt)
Please advise steps to correct position
Thanks in advance
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2762
Hi,
I have a problem with Geany 1.37.1 (on Windows 10 Pro 64 bits). I have a file that I can open but trying to save it gets me an error message:
"Error saving file. Error renaming temporary file: Permission denied
The file on disk may now be truncated!"
This occurs after years of using Geany seamlessly. Can this be related to the fact that I have tried to input Unicode characters like "É" just before (unsuccessfully, by the way...), which I think I had never done before? The "Alt-144" method I use in other Windows applications did not work, so I tried the Ctrl-Shift-u method described in the Geany Help, to no success. The file name does not contain any accented character (not even those that are directly on my French keyboard like é,à... that have never caused me any trouble in Geany).
At each attempt of file saving, I get a new file named .goutputstream-XXXXXX instead, with the content of the file I am trying to save.
Saving "file.txt" is not possible but saving as a new version like "file_v2.txt" works. However, after opening again "file_v2.txt", trying to save it fails again (only works if I save it as "file_v3.txt" and so on).
Creating, saving, reopening... new files works as expected. Opening, editing and saving the file in another editor works, but reopening it with Geany leads to the same problem.
Yours,
Maxime
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2758