bugGNU Octave - Bugs: bug #40551, Support user-configurable template...


bug #40551: Support user-configurable template files for new function and oct files

Submitted by:  Torsten <ttl>
Submitted on:  Mon Nov 11 21:29:08 2013  
Category: GUISeverity: 1 - Wish
Priority: 3 - LowItem Group: Feature Request
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Mon Jan 20 03:31:46 2014, comment #9:

sorry, it seems that bug #40502 is more appropriate for discussing comment #8.

Felipe G. Nievinski <fgnievinski>
Mon Jan 20 03:29:26 2014, comment #8:

the header part "This program is free software" must not be included -- it should not be suggested in any way that the user's code has to be licensed under the same terms as Octave.

Felipe G. Nievinski <fgnievinski>
Mon Jan 13 18:52:15 2014, comment #7:

@Mike: yes, your description is what I meant.

I'm copying your description into the original bug #41221.

Felipe G. Nievinski <fgnievinski>
Mon Jan 13 18:46:35 2014, comment #6:

So I think what you're asking for when you say "blank script by default" is you want the editor to have an unnamed document ready to start typing in, is that right? Currently if there are no files open the editor has a grayish background and the user has to click on the New button to create a new file and then begin editing. Not agreeing or disagreeing, just trying to clarify.

If that's so, that might be different than this bug which is about creating templates for new function files and C++ oct-files.

Mike Miller <mtmiller>
Project Administrator
Mon Jan 13 18:09:10 2014, comment #5:

a blank script is just that -- no template necessary.
it'd be always available upon startup, unless the preference
"Restore editor tabs from previous session on startup"
is set and indeed there was at least one tab left open from previous session.

Felipe G. Nievinski <fgnievinski>
Mon Jan 13 17:48:15 2014, comment #4:

from bug #41221:
What would a blank script template look like though? A script really is whatever the user wants to put there. A function has a more defined shape and so we offer a template for that.

Felipe G. Nievinski <fgnievinski>
Mon Jan 13 17:47:39 2014, comment #3:

from bug #41221:

GUI Editor could offer a blank script by default

currently the editor requires the user to create a new script to only then start typing

Felipe G. Nievinski <fgnievinski>
Thu Nov 21 22:18:59 2013, comment #2:

The original comment in the linked bug report was about allowing the user to create their own custom templates instead of using the hardcoded template that is in edit.m. This could be done with a particular file name in the user's path, in some ~/.config or ~/.octave "well-known" location, or with a hook function that returns the text to write into the new file. It was also mentioned to support keyword substitution for things like author name, date, copyright, license, etc, similar to what the hardcoded templates in edit.m do currently.

Retitling this bug report to reflect that.

Mike Miller <mtmiller>
Project Administrator
Thu Nov 21 21:34:07 2013, comment #1:

Isn't that what the function edit already does when the function to "edit" does not exist?

Carnë Draug <carandraug>
Project Member
Mon Nov 11 21:29:08 2013, original submission:

As posted by John in comment
of bug #40502:
It would be nice to have template files for the creation of new function files. Special keywords in the templates are replaced by user data when the new file is created.

Torsten <ttl>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by fgnievinski (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by ttl (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Jan 20 04:01:26 2014mtmillerDependenciesRemoved dependancy from bugs #41221=>-
    Mon Jan 13 17:41:49 2014rik5Dependencies-=>bugs #41221 is dependent
    Thu Nov 21 22:18:59 2013mtmillerSummaryProvide template files for new function files=>Support user-configurable template files for new function and oct files
    Thu Nov 21 19:46:00 2013ttlPriority5 - Normal=>3 - Low
    Thu Nov 21 19:45:03 2013ttlSeverity2 - Minor=>1 - Wish

    Back to the top

    Powered by Savane 3.1-cleanup1