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

 
 

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

Submitter:  Torsten Lilge <ttl>
Submitted:  Mon 11 Nov 2013 09:29:08 PM UTC
   
 
Category:  GUI Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

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

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

Felipe G. Nievinski <fgnievinski>
Mon 20 Jan 2014 03:29:26 AM UTC, 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 13 Jan 2014 06:52:15 PM UTC, 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 13 Jan 2014 06:46:35 PM UTC, 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>
Group Member
Mon 13 Jan 2014 06:09:10 PM UTC, 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 13 Jan 2014 05:48:15 PM UTC, 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 13 Jan 2014 05:47:39 PM UTC, 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 21 Nov 2013 10:18:59 PM UTC, 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>
Group Member
Thu 21 Nov 2013 09:34:07 PM UTC, comment #1: 

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

Carnë Draug <carandraug>
Group Member
Mon 11 Nov 2013 09:29:08 PM UTC, original submission:  

As posted by John in comment
https://savannah.gnu.org/bugs/index.php?40502#comment1
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 Lilge <ttl>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-20 mtmiller DependenciesRemoved dependency from bugs #41221 -
    2014-01-13 rik5 Dependencies- bugs #41221 is dependent
    2013-11-21 mtmiller SummaryProvide template files for new function files Support user-configurable template files for new function and oct files
    2013-11-21 ttl Priority5 - Normal 3 - Low
    2013-11-21 ttl Severity2 - Minor 1 - Wish

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code