I am actually working on issue/feature request https://github.com/geany/geany-plugins/issues/733.
I extended the workbench plugin and now it allows to create global and projects commands, to store the values in the projects and workbench file and to inherit global workbench commands to the projects. This are all workbench internal functions.
When it comes to actually execute a command I planned to use ```build_set_menu_item()```, ```build_activate_menu_item()``` and to introduce a new build source called ```GEANY_BCS_PLUGIN```. But just adding a new build source is not doing the job. I guess ```build_activate_menu_item()``` is simply ignoring a new value.
Also, the workbench plugin maintains several projects and that would mean to re-write the commands each time by calling ```build_activate_menu_item()```. And the functions doesn't seem to free old values by itself.
I came to the conclusion that for my approach (and maybe for other plugins) it might be more suitable to have a direct plugin call like
```
build_execute_command(BUILD_TARGET_COMPILER, command, workingdir);
```
The first parameter given should tell if the command output goes to the "Compiler" message window. An alternative value would be BUILD_TARGET_NEW_TERMINAL which means start a terminal and run the command in it. This seems to be what the groups ```GEANY_GBG_FT``` /```GEANY_GBG_NON_FT``` and ```GEANY_GBG_EXEC``` do today.
The API call should work in a Fire&Forget manner: parameters ```command``` and ```workingdir``` should be copied (if necessary). Then run the command as described above and once finished simply forget about ```command``` and ```workingdir```.
What do you think?
--
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/1897
I edited file in geany, on the moment my disk become full
I try to save file but geany erase my file and set to 0 size
--
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/1895
When drag-drop text inside Chrome (i.e. NOT leaving Chrome! Not really dragging into Geany), the text actually ends up in Geany at a random position. It happens silently, so my source code sometimes unnoticed gets into a company Git repository.
In fact I have `pref_editor_disable_dnd=true`
Steps to reproduce:
1. Open a file in Geany
2. Open Chrome
3. Select any piece of text in Chrome
4. Start dragging this text
5. Stop dragging few millimeters or an inch away fromt he starting point
6. Switch to Geany and get scared, the selected text is already inserted at the random position.
This only happens if Geany window was the previous active window prior to swtich to Chrome window.
Please see the screenshot, this is drastic.
![Screenshot][Screenshot]
[Screenshot]: https://s16.postimg.org/ddp04pkmd/geany_issue.jpg
--
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/1413
Hi....
I am getting a consistent
`Unable to read environment locale: exit now.`
error when trying to run context with this command (set in the create menu)
`mtxrun --autogenerate --script context --autopdf --purge --synctex=-1 "%d/%f"`
Executing the same command in a terminal works fine. From TextMate also no problems.
Replacing the actual command with a useless
`cat "%d/%f"`
produces no errors.
I am on MacOS 10.11.6, LANG=de_DE.UTF-8 shows in terminal, below is the debug info.
I do notice the Gtk warning about locale not supported. If I set LANG=en_US.UTF-8 in .profile the error remains the same. What to do?
`22:02:13: Gtk WARNING : Locale not supported by C library.
Using the fallback 'C' locale.
22:02:13: Geany INFO : Geany 1.33, C
22:02:13: Geany INFO : GTK 2.24.31, GLib 2.52.2
22:02:13: Geany INFO : System data dir: /Applications/Geany.app/Contents/Resources/share/geany
22:02:13: Geany INFO : User config dir: /Users/martin/.config/geany
22:02:13: Geany INFO : System plugin path: /Applications/Geany.app/Contents/Resources/lib/geany
22:02:13: Geany INFO : Added filetype Arduino (61).
22:02:13: Geany INFO : Added filetype Clojure (62).
22:02:13: Geany INFO : Added filetype CUDA (63).
22:02:13: Geany INFO : Added filetype Cython (64).
22:02:13: Geany INFO : Added filetype Genie (65).
22:02:13: Geany INFO : Added filetype Graphviz (66).
22:02:13: Geany INFO : Added filetype JSON (67).
22:02:13: Geany INFO : Added filetype Scala (68).
22:02:13: Geany INFO : Loaded libvte from libvte.9.dylib
22:02:13: Geany INFO : /Users/martin/Documents/daf-Kurse/ABS/Mathe/Schätzen/textaufgabenweg.tex : LaTeX (UTF-8)
`
--
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/1886