Score:2

Open Geany Template with Shortcut

hm flag

To open the geany template file manually, we need to follow the following steps,

File -> New(with Template) -> main.c(or other programming language template)

Can I make a shortcut(possibly keybindings) to do the things automatically ? I am using ubuntu 20.04

Score:3
cn flag

Geany does not provide a command line interface to open new files bases on a template. Directly creating a shortcut that launches Geany that way therefore may not be possible

You could work around with the Template system of the standard Gnome desktop. Link the template of Geany you want to be easily accessible into your "~/Templates" directory. Create that directory if it does not exist.

Then you can create a new document based on the template using the "Templates" entry in the right-click menu (clicking on an empty part of the folder). You can also summon that right-click menu with the shortcut key Ctrl+F10.

Thus, Ctrl+F10, d will allow you to select the template. A new document, which is a copy of the template, is placed in your folder. You can then rename it and launch it in Geany.

hm flag
Can I do something with terminal ?
hm flag
Actually this is not what I am looking for.I want to do it directly from geany but as you have mentioned that this is not possible at all, I am accepting your answer
Score:0
kh flag

You cannot make a keybinding or add a sortcut, but the drop down arrow next to the "new" icon, takes you straight there.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.