geany icon indicating copy to clipboard operation
geany copied to clipboard

FR: Allow setting default filetype (or at least default file extension) for new Geany tabs

Open Gitoffthelawn opened this issue 1 year ago • 3 comments

After opening Geany, or after creating a new tab in Geany, the default filetype is None and the default extension is null.

It will be quite useful to allow the user to specify a default filetype, or at least a default file extension when saving content in new Geany tabs.

A possible simple implementation would be allow the user to create filetypes.None.conf in which they could specify something like:

[settings]
# default extension used when saving files
extension=txt

Gitoffthelawn avatar Apr 20 '24 10:04 Gitoffthelawn

Having the ability to set the filetype of new files is reasonable, just add a setting to Edit->Preferences->Files->New Files with a combo box to select the filetype. The semantics can simply be the same as Files->New then Document->Set filetype->[what the setting says].

elextr avatar Apr 20 '24 10:04 elextr

Having the ability to set the filetype of new files is reasonable, just add a setting to Edit->Preferences->Files->New Files with a combo box to select the filetype. The semantics can simply be the same as Files->New then Document->Set filetype->[what the setting says].

Yes, that will work quite well.

Gitoffthelawn avatar Apr 23 '24 09:04 Gitoffthelawn

Following this as it is a feature I would love to see.

blimeybloke avatar Jun 15 '24 17:06 blimeybloke