Status: Implemented
Created by bcammo 01 Jul 2010 01:47
**STE **
I would like the ability to create my own templates/code snippets that I can import straight into the editor just like the other modules. This would make it much easier when you need to add reusable complicated div structures / other bits of code.
I'm not sure if this is possible, but I imagine it working something like this:
- The user creates the template and saves it as my-template.ste, in a folder called templates.
- In the settings, you have an option called user templates, where the user needs to locate the templates folder.
- The user can then insert the template straight into their document from the menu insert » templates » my-template.
What do you think??
(Off-topic: Shane, do you think I could get a copy of the STE logo so that I can add it to the app locally? Oh, and how're the exams going??)
Cheers,
Bryce


leiger |
01 Jul 2010 04:16. Edited 1 times. (Edit, Permalink) The only major difference between the two is that you'd like to store the templates in an external file, whilst Franknarf is asking for the same thing stored within STE itself. I can do both, so I'm interested to know which one you'd prefer. Included page "inc:signature" does not exist (create it now) |
leiger |
01 Jul 2010 04:19. Edited 1 times. (Edit, Permalink) If you'd like to get a copy of the STE logo you can use the same one I am using in the application itself. I think I have a higher quality one on this computer, but the one you already have is probably big enough just for an icon? Just open the STE.jar file with any archive application (I recommend 7-Zip, though it's Windows only), and extract logo.gif. It's 95 x 61 pixels. Edit: It'd be awesome if you could add instructions for Mac OS X to this page: Adding STE to a taskbar or panel Included page "inc:signature" does not exist (create it now) |
bcammo |
01 Jul 2010 04:40. Edited 0 times. (Edit, Permalink) I had tried to get into the contents of the .jar file, not realising I needed to use an extractor - now I know! Good luck tomorrow :) Bryce Included page "inc:signature" does not exist (create it now) |
leiger |
01 Jul 2010 06:17. Edited 2 times. (Edit, Permalink) As for implementing one of them… integrating it into STE would be easier but I'm at the moment I'm only able to do it for a static number of templates. For example, I'd have to put a limit of 10 or something. I'll have to find a way to do it dynamically… If I was to store it on the file system I know of a way to allow a dynamic number of templates… but I only know the principle of it. Not 100% sure how to actually do it with code :) So either way I need to do some more research… Included page "inc:signature" does not exist (create it now) |
leiger |
13 Dec 2010 01:06. Edited 0 times. (Edit, Permalink)
For developers, extensions will be powered by a simple language that I create - designed to be simple and easy for anyone to learn. For example:1
That would attempt to import a page. Each command is separated by a line break so several things can be done at once. Included page "inc:signature" does not exist (create it now) |
bcammo |
13 Dec 2010 01:28. Edited 0 times. (Edit, Permalink) My only concern is having to download any updates when STE starts - especially if the gallery is filled with lots of extensions specific to an individual's site. Do you have an estimate of how big the download would be for say 20 extensions? Otherwise it sounds great. Included page "inc:signature" does not exist (create it now) |
leiger |
13 Dec 2010 01:39. Edited 1 times. (Edit, Permalink) I could also make extension updates done manually - no automatic updating at all. Going further… I could let you decide whether you want it done automatically or manually on a per-user basis. But as always… the more customisation I give, the longer it takes to build and the more complicated it is to maintain and to fix any bugs that might crop up. Edit: Running an extension will most likely be possible by clicking on an item in the menu, yes. Keyboard shortcuts are more complicated - because unlike the other menu items I have no idea what each will do … it depends on the extensions you have installed. Included page "inc:signature" does not exist (create it now) |
bcammo |
13 Dec 2010 01:48. Edited 0 times. (Edit, Permalink) And I think just menu commands would be sufficient. Included page "inc:signature" does not exist (create it now) |
leiger |
13 Dec 2010 01:53. Edited 0 times. (Edit, Permalink) You visit the website and decide what extensions you want, then install them to your copy of STE if you want them. At this stage you will need to provide a page name to install it, and STE will use the API to import that page (or "extension"). Included page "inc:signature" does not exist (create it now) |
leiger |
19 Dec 2010 19:06. Edited 1 times. (Edit, Permalink) The first version may require an Internet connection and re-download the extension every time you use it. That way, I can give you the functionality ASAP … then I'll spend some more time getting it to work offline and release that a bit later (probably after Christmas Day, but before the New Year). DEVELOPERS Anyone that wants to create an extension for STE should also think about creating a small image/icon to represent it. The image will not be used in STE, but it will be used for the extensions gallery. The image should be 100x100. To submit an extension, you'll need:
More info to come when I actually finish this and release it… but feel free to ask any questions and I'll answer them. Included page "inc:signature" does not exist (create it now) |
(user deleted) |
20 Dec 2010 00:37. Edited 0 times. (Edit, Permalink) Included page "inc:signature" does not exist (create it now) |
leiger |
20 Dec 2010 04:01. Edited 4 times. (Edit, Permalink) I still need to write the code for automatic updating of extensions, but I'll probably leave that for a future release… And… you will be able to give someone else your extension config file and they'll automatically have the same extensions installed as you, without the need to download them. So if you have a computer that isn't connected to the Internet, you can transfer extensions via a USB drive. Included page "inc:signature" does not exist (create it now) |