To expand on #950 and #1069...
As a Python programmer, I find that the goto symbol popup is considerably more useful to me with a change like this:
```
- text = g_markup_printf_escaped(_("%s: %lu"), fname, tmtag->line);
+ text = g_markup_printf_escaped(
+ _("%s\n<small>%s: %lu</small>"),
+ tmtag->scope, fname, tmtag->line);
```
because then I can immediately see the name of the class containing the tag, which is useful when I have 10 different classes with an `execute` method in each of them.
But this doesn’t work in many other cases (even in Python).
Then of course, `TMTag` has a bunch of other fields that might also be very useful.
Maybe there’s a way to put this information to good use without breaking the current use cases? Maybe a preference?
--
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/1398
Usually when writing a plugin I like to have keep the the loading/hooks code in a single file (ex. `plugin.c`) and then having some kind of "context" object code in a separate file, often implemented in OO-style (ex. constructor, destructor, functions taking instance as first param, etc). The new plugin API has been designed specifically to make this possible.
To further improve the new plugin API, this PR adds changes that reduce the boilerplate needed to write an OO-style plugin (often GObject-based, but not necessarily) properly.
The [first change](https://github.com/codebrainz/geany/commit/cafa5a6513979523090e9b16… is to add a macro to make it simpler to register a GObject type of which an instance is bound to the module loading/unloading lifetime.
The [second change](https://github.com/codebrainz/geany/commit/16c487aa0db51e41c3902663… (which is leading to the 3rd change), simply adds typedefs and better documentation for the existing callback functions.
The [third change](https://github.com/codebrainz/geany/commit/ac66af8e2ff450dfa2e02b2f… is to add a second set of callback functions which get passed the instance data as the first parameter, in usual OO fashion. Typedefs are added to those from the 2nd change to allow casting functions to the right type. I'm not super fond of the `_swapped` prefix, but some kind of different name is required to avoid breaking backwards compatibility.
Overall the changes are pretty trivial. I tested them using the code [in this repo](https://github.com/codebrainz/geany-test-object-friendly). To see how this improves the plugin code a little, see https://github.com/codebrainz/geany-test-object-friendly/commit/87454f0c290… where I modified a normal plugin to use the changes in this PR.
The changes are completely backwards compatible.
Note: these changes are a result of my [brain dump in these comments](https://github.com/geany/geany/commit/437837d3a54367393c41d6c1e1f….
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1244
-- Commit Summary --
* Add helper macro to register module-scoped GObjects
* Add typedefs and more documentation for plugin funcs
* Add swapped plugin funcs, typedefs and documentation
-- File Changes --
M src/plugindata.h (185)
M src/plugins.c (39)
M src/pluginutils.c (11)
-- Patch Links --
https://github.com/geany/geany/pull/1244.patchhttps://github.com/geany/geany/pull/1244.diff
--
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/pull/1244
It would be very nice allow direct printing from Markdown preview
--
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-plugins/issues/537
@HybridDog nothing is locked, grep is patiently waiting for end of file on the fifo and Geany is patiently waiting for grep.
If its decided that only GNU grep is to be used then we could add `--devices=skip` to the grep command.
--
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/451#issuecomment-281211754
l get an error message on Ubuntu 16.10, geany 1.28.
Anyway, there's another problem: It searches everything, even if it's not a text file.
So e.g. when there's a fifo in the folder ($ mkfifo somefifo), the search becomes locked and doesn't finish.
--
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/451#issuecomment-281085593
Closes #526
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/527
-- Commit Summary --
* Sync with latest upstream
-- File Changes --
M geanypy/geany/Makefile.am (1)
M geanypy/geany/__init__.py (2)
A geanypy/geany/logger.py (74)
M geanypy/geany/plugin.py (4)
M geanypy/src/Makefile.am (7)
M geanypy/src/geanypy-app.c (1)
M geanypy/src/geanypy-document.c (4)
M geanypy/src/geanypy-editor.c (4)
A geanypy/src/geanypy-glog.c (45)
M geanypy/src/geanypy-plugin.c (2)
M geanypy/src/makefile.win32 (1)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/527.patchhttps://github.com/geany/geany-plugins/pull/527.diff
--
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-plugins/pull/527
The plugin seems to not collapse the directory containing the active document, but it collapses others in the tree view when reloading. It would be cool if it kept all directories that are expanded before the reload, expanded after, provided they still exist.
---
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-plugins/issues/415