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

"Reload Snippets" Button in Preferences (or menu item) please! #5882

Open
Grisgram opened this issue May 18, 2024 · 2 comments
Open

"Reload Snippets" Button in Preferences (or menu item) please! #5882

Grisgram opened this issue May 18, 2024 · 2 comments
Labels
feature request New feature (or a request for one)

Comments

@Grisgram
Copy link

Is your feature request related to a problem?

The problem is, that GMS loads the snippets.txt only at startup.
When you want to build some fancy snippets and you want to try them and modify them several times until they are perfect (line breaks, tabs, indentation, ...), you always have to restart GameMaker to get to see your changes.
And as (#5671) startup time of GMS is quite long currently, this makes creating snippets a pain.

Describe the solution you'd like

Please add an option in the general tab of the preferences (or wherever you see fit), which forces a reload of the snippets.txt.
As preferences (key bindings) are also built dynamically based on the contents of the snippets file, my first idea was to put that button somewhere into the preferences window, but maybe it can also become just a new menu item, above or below the Preferences item.
Any place you find ok will be ok, as long as we can reload the snippets in the same instance of GMS and can avoid the restarting.

Thanks for reading!
Cheers, Gris

Describe alternatives you've considered

No response

Additional context

No response

@Grisgram Grisgram added the feature request New feature (or a request for one) label May 18, 2024
@Grisgram
Copy link
Author

I'd like to add, that it would also be very possible, that you just add the file to the watch list of the "File Watcher" subsystem and auto-reload the snippets file, if it has changed.
This "auto-reload" could be enabled/disabled easily with a checkbox in the general settings -- then we don't need new menu items and other complicated stuff for a feature, that's not used very often, but is important, when you use it.

@ShaunJS
Copy link

ShaunJS commented Jun 19, 2024

This is a good feature request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature (or a request for one)
Projects
Status: Backlog
Development

No branches or pull requests

2 participants