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

User definable starting template #10

Closed
Sembazuru opened this issue Jun 10, 2013 · 5 comments
Closed

User definable starting template #10

Sembazuru opened this issue Jun 10, 2013 · 5 comments

Comments

@Sembazuru
Copy link

First mentioned (that I saw) in forum reply#491 http://forum.arduino.cc/index.php?topic=118440.msg1257835#msg1257835

I was thinking of requesting the same thing. I'd like to have the IDE load a user supplied file as the new sketch template. If the user supplied file doesn't exist then use the hard-coded template. I know this can be fudged by having a sketch that one uses as their template, but it would be nice to have it automagic.

@eried
Copy link
Owner

eried commented Jun 10, 2013

Any suggestion for the path? I was thinking on using a example file, like 0. Startup sketches / Default.ino ....

@Sembazuru
Copy link
Author

Well, I'm not sure if it should be just a simple .ino file that it loads from somewhere, or a full sketch folder that it loads from somewhere. (Using a full sketch folder allows loading multiple tabs as the default starting point for advanced users.) As far as locations, I can think of two valid possibilities: Either in the configured sketch folder, or in the preferences folder (i.e. where idesettings_v104.txt resides). Hiding it in the preferences folder could be taken as more annoying to update. But, really, how often would one want to change this? It should be an intentional action to update it, instead of accidental as might happen in the sketches folder.

@eried
Copy link
Owner

eried commented Jun 10, 2013

Yes I know, I was thinking just to not break the current directory schema a lot, or just to place the template where it makes sense. Right now the template is the same of one of the arduino samples, so it makes sense to have a "live" example that can be modified. But it might be a bit confusing

@Sembazuru
Copy link
Author

I agree that having it a "live" example might be a bit confusing. That is why I was suggesting the preferences path. It's out of the way, but still an existing path that the IDE knows about. Stretching the scope of a preferences setting to include the default sketch doesn't seem to me that far of a stretch. I will, however, stand by not having it in the distribution path, for the same reasons that one shouldn't install user/3d-party libraries in the distribution path...

Almost seems to be a question of what type of support you want to provide to this. Help pointing people to the correct location for changing the default sketch in the preference folder, or helping people who break this by some how fudging up the default in the sketch folder. Choice of evils. ;-)

I wonder if the forum thread would be a good place to get multiple points of view (or if that would just muddy the already murky waters)...

@eried
Copy link
Owner

eried commented Oct 31, 2013

I added this as a new "Example" fc526ac

If is not present, it loads the default one :)

@eried eried closed this as completed Oct 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants