<p>I haven't tested yet (on Windows ATM), but this is exactly what I was thinking to do.</p>
<p>The only question is whether the semantics make any sense, as in whether returning nothing in the Python function should default to returning <code>FALSE</code> to Geany. The <a href="https://www.geany.org/manual/reference/keybindings_8h.html#afb2861d240a298186fe4d84430e5066f" rel="nofollow">API Reference</a> makes it sound like this is not the normal case.</p>
<p>It may be useful in either case to improve <a href="https://github.com/geany/geany-plugins/pull/809/files#diff-8c19fc53e5ac665274c8ae6877c63a84L145">the doctstrings</a> to clarify this, as a separate change if need be.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/809#issuecomment-451620082">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ792VarpOCiRbnl0JemXrMa4O4gLks5vAAwQgaJpZM4ZuLmn">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ3eSWjhjner5SJ8fbvhjxbwsPNZOks5vAAwQgaJpZM4ZuLmn.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany-plugins","title":"geany/geany-plugins","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany-plugins"}},"updates":{"snippets":[{"icon":"PERSON","message":"@codebrainz in #809: I haven't tested yet (on Windows ATM), but this is exactly what I was thinking to do.\r\n\r\nThe only question is whether the semantics make any sense, as in whether returning nothing in the Python function should default to returning `FALSE` to Geany. The [API Reference](https://www.geany.org/manual/reference/keybindings_8h.html#afb2861d240a298186fe4d84430e5066f) makes it sound like this is not the normal case.\r\n\r\nIt may be useful in either case to improve [the doctstrings](https://github.com/geany/geany-plugins/pull/809/files#diff-8c19fc53e5ac665274c8ae6877c63a84L145) to clarify this, as a separate change if need be."}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany-plugins/pull/809#issuecomment-451620082"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/809#issuecomment-451620082",
"url": "https://github.com/geany/geany-plugins/pull/809#issuecomment-451620082",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>