<p><strong>Problem</strong><br>
Whenever I create a new project, the <code>Set Build Commands</code> dialogue is populated with the standard Geany build commands. For example <code>Compile: g++ -Wall -c "%f"</code>.</p>
<p>All my projects use the same build tools, which are more elaborate than the standard ones. I use explicit <code>make</code> commands for compiling single files as well as building the entire project.  Configuring the dialogue in exactly the same way for each new project is time-consuming.</p>
<p><strong>Geany manual</strong><br>
The <a href="https://www.geany.org/manual/current/index.html#id154" rel="nofollow">Build menu configuration</a> section in the manual seems to suggest that by placing a <code>[build-menu]</code> section in<code>filetypes.cpp</code>, then custom entries for the <code>Set Build Commands</code> dialogue can be configured to be the same for all new projects. However, this does not happen.</p>
<p><strong>My Current Workaround</strong><br>
I have made a template for the <code>[build-menu]</code> section.  When I create a new project, I copy the<code>[build-menu]</code> section to the <code>newproject.geany</code> file.</p>
<p><strong>Request</strong><br>
It would be convenient if there was a way to use a template to populate the build commands dialogue  at the point of project creation.</p>
<p><strong>My System</strong></p>
<pre><code>~$ geany -V
geany 1.29 (built on 2016-11-16 with GTK 2.24.31, GLib 2.50.2)

~$ uname -a
Linux debian-deskside 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u5 (2018-09-30) x86_64 GNU/
</code></pre>

<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/1975">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ5qZ9lGOUSgGPROpGmT-atDKIUGwks5ukdhtgaJpZM4XambX">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ5ilZMOOPZuibIaGmdbHXw4vLnvVks5ukdhtgaJpZM4XambX.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":"DESCRIPTION","message":"Custom Build Menu for all projects (#1975)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1975"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1975",
"url": "https://github.com/geany/geany/issues/1975",
"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": "Custom Build Menu for all projects (#1975)",
"sections": [
{
"text": "",
"activityTitle": "**Geoff**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@Blue-Whales",
"facts": [
{
"name": "Repository: ",
"value": "geany/geany"
},
{
"name": "Issue #: ",
"value": 1975
}
]
}
],
"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\": 1975,\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\": 1975\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1975"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 392849111\n}"
}
],
"themeColor": "26292E"
}
]</script>