<p>You probably know, toggling case (lower vs. upper case) can already be done with <code>Ctrl</code>-<code>Alt</code>-<code>u</code> and this shortcut can also be configured.</p>
<p>For CamelCase conversion, ages ago I wrote a simple little Python script to just do that:<br>
<a href="https://gist.github.com/eht16/52067a31f2d8cfc3c0fac87d2ab70e28">https://gist.github.com/eht16/52067a31f2d8cfc3c0fac87d2ab70e28</a></p>
<p>Configure this script in Geany as command in the "Send selection to" settings, like in the screenshot.<br>
Then select some text and use <code>Edit->Send Selection to->CamelCase</code>. The script also tries to detect if it is CamelCase to convert to lower_case and vice versa.<br>
For me this works fine since a couple of years.</p>
<p>If I find time, I'll put it in the wiki.<br>
HTH.<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/617017/44619652-9eebb200-a88a-11e8-9b04-76e57a8a6779.png"><img src="https://user-images.githubusercontent.com/617017/44619652-9eebb200-a88a-11e8-9b04-76e57a8a6779.png" alt="geany_camel_case" style="max-width:100%;"></a></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/issues/1929#issuecomment-415976173">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ3kOvOn8CZIRYDizkK5HXdTCoP1pks5uUWpbgaJpZM4WI7ay">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ3hFygrLk6wNDK-CeHjeyoyx4IWkks5uUWpbgaJpZM4WI7ay.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","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@eht16 in #1929: You probably know, toggling case (lower vs. upper case) can already be done with `Ctrl`-`Alt`-`u` and this shortcut can also be configured.\r\n\r\nFor CamelCase conversion, ages ago I wrote a simple little Python script to just do that:\r\nhttps://gist.github.com/eht16/52067a31f2d8cfc3c0fac87d2ab70e28\r\n\r\nConfigure this script in Geany as command in the \"Send selection to\" settings, like in the screenshot.\r\nThen select some text and use `Edit-\u003eSend Selection to-\u003eCamelCase`. The script also tries to detect if it is CamelCase to convert to lower_case and vice versa.\r\nFor me this works fine since a couple of years.\r\n\r\nIf I find time, I'll put it in the wiki.\r\nHTH.\r\n![geany_camel_case](https://user-images.githubusercontent.com/617017/44619652-9eebb200-a88a-11e8-9b04-76e57a8a6779.png)\r\n"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1929#issuecomment-415976173"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1929#issuecomment-415976173",
"url": "https://github.com/geany/geany/issues/1929#issuecomment-415976173",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [geany/geany] Shortcut suggestions (#1929)",
"sections": [
{
"text": "",
"activityTitle": "**Enrico Tröger**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@eht16",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1929,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1929\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1929#issuecomment-415976173"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 371439282\n}"
}
],
"themeColor": "26292E"
}
]</script>