Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Gitoffthelawn opened this issue Apr 20, 2024 · 2 comments

Comments

@Gitoffthelawn
Copy link

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
@elextr
Copy link
Member

elextr commented Apr 20, 2024

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].

@Gitoffthelawn
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants