gEdit Template plugin
Monday, November 19, 2007 5:14:40 PM
How it works:
* Copy the files of the Template plugin into ~/.gnome2/gedit/plugins
* create a folder "templates" in ~/.gnome2/gedit
* copy your templates files into it (example default.html)
* Start gEdit and enable the plugin "New File From a Template" in the preferences
* After a restart the plugin appears in the File menu
* Assign the typical shortcut "Shift+Ctrl+N" to it
* the new created files will get the mimetype of the template files
Download:
http://files.myopera.com/area42/files/gedit_template_plugin.zip
gEdit plugins i wrote too:
http://my.opera.com/area42/blog/gedit-language-reference-plugin
http://my.opera.com/area42/blog/gedit-browser-preview-plugin
A lot of other gEdit plugins can be found here.








Unregistered user # Wednesday, November 28, 2007 4:02:42 AM
Eckhard M. Jägerarea42 # Wednesday, November 28, 2007 7:47:42 AM
very cool, i will check it out!
Unregistered user # Wednesday, November 28, 2007 1:37:10 PM
Eckhard M. Jägerarea42 # Wednesday, November 28, 2007 6:10:45 PM
Unregistered user # Saturday, July 26, 2008 7:49:16 AM
Eckhard M. Jägerarea42 # Saturday, July 26, 2008 10:20:20 AM
Can i download it and take a look? Or drop me a line: bart neeeneenee de
Unregistered user # Friday, August 1, 2008 9:12:21 AM
Eckhard M. Jägerarea42 # Friday, August 1, 2008 10:36:10 AM
Unregistered user # Saturday, August 2, 2008 7:37:18 AM
Unregistered user # Saturday, August 2, 2008 8:31:12 AM
Unregistered user # Saturday, August 2, 2008 8:40:17 AM
Eckhard M. Jägerarea42 # Saturday, August 2, 2008 9:04:21 AM
Unregistered user # Saturday, August 2, 2008 9:31:05 AM
Alexsalexs # Tuesday, October 21, 2008 5:10:26 PM
Jetzt muss ich nur noch schauen dass ich den Color-Picker (nicht das ganze Paket) zum laufen bekomme.
Grüsse Alexs
Eckhard M. Jägerarea42 # Tuesday, October 21, 2008 8:38:27 PM
Hier gibt es noch mehr Plugins für gEdit:
http://live.gnome.org/Gedit/Plugins#third_party
Und unbedingt die Snippet-Sammlung für das Externe Werkzeuge-Plugin ansehen:
http://live.gnome.org/Gedit/ExternalToolsPluginSnippets
Unregistered user # Saturday, May 2, 2009 10:03:47 AM
Eckhard M. Jägerarea42 # Wednesday, May 6, 2009 9:22:43 PM
you are right, i got a brand new Dell Studio 17 and will install Jaunty on it, then i will fix this problem.
Unregistered user # Thursday, May 7, 2009 6:36:35 AM
Eckhard M. Jägerarea42 # Thursday, May 7, 2009 7:33:54 PM
this sound great. Did it working on Ubuntu 9.04?
Alexsalexs # Monday, May 11, 2009 4:19:32 PM
Wenn ich eine HTML-Vorlage mit gedit 2.26.1 öffnen will (sidux), steht folgendes in der Konsole:
Traceback (most recent call last): File "/home/alex/.gnome2/gedit/plugins/template.py", line 145, in on_open_from_template_activate language = gedit.language_manager_get_language_from_mime_type(language_manager, mimes[0]) AttributeError: 'module' object has no attribute 'language_manager_get_language_from_mime_type'Grüße Alexs
Eckhard M. Jägerarea42 # Monday, May 11, 2009 8:43:45 PM
yes i know there is a problem with the gEdit Template plugin. I switched now to Ubuntu 9.04 that ships with Gnome 2.26 and will fix this problem soon.
Thanks for your reply.
Unregistered user # Monday, May 11, 2009 10:43:42 PM
th3pr0ph3t # Tuesday, May 19, 2009 8:03:43 PM
Anyway, I want to share it and the modifications I did include:
- the language thing where the template is not loaded because it tries to call a method that does not exist anymore.
- the plugin now ASKS now asks for the NEW DOCUMENT's name (starting in the currently open file's directory). It copies the file, then opens it.
- it does not fail (showing an empty document) when the template uses an encoding different than UTF-8 (I needed ISO-8859-1).
- the following expressions are resolved if found in the template text:
$USER $USERNAME, $LOGNAME
$HOME
...and all vars replaced by os.path.expandvars()
$DATE
$TIME
$DATETIME
$GEDIT_CURRENT_DOCUMENT_URI
$GEDIT_CURRENT_DOCUMENT_NAME
$GEDIT_CURRENT_DOCUMENT_PATH
$GEDIT_CURRENT_DOCUMENT_DIR
Well that's the way I like it, maybe somebody else does.
Here's the file, regards.
http://files.myopera.com/th3pr0ph3t/files/template.zip
Eckhard M. Jägerarea42 # Wednesday, May 20, 2009 7:34:56 AM
Unregistered user # Monday, July 6, 2009 7:15:58 PM
Unregistered user # Monday, July 6, 2009 7:18:59 PM
Unregistered user # Wednesday, July 15, 2009 6:33:14 AM
Eckhard M. Jägerarea42 # Wednesday, July 15, 2009 9:24:36 PM
http://blogs.gnome.org/thos/files/2007/05/Screenshot-Appearance%20Preferences-4.png
Well if dynamic shortcuts enabled on your gnome desktop than hover over the menu entry and press the keyys you like to use
Unregistered user # Monday, August 10, 2009 12:12:25 PM
Unregistered user # Thursday, September 10, 2009 4:20:03 PM
Unregistered user # Wednesday, November 18, 2009 8:52:00 PM
Unregistered user # Monday, January 4, 2010 3:39:49 PM
Unregistered user # Tuesday, March 2, 2010 8:15:13 PM
Eckhard M. Jägerarea42 # Wednesday, March 3, 2010 3:44:36 PM
Alexsalexs # Wednesday, March 3, 2010 4:12:06 PM
When start gedit from console:
gedit 2.28.3 / python 2.5.5 / sidux
th3pr0ph3t # Sunday, March 7, 2010 3:33:16 AM
Unregistered user # Monday, April 5, 2010 2:41:59 PM
Unregistered user # Wednesday, April 14, 2010 6:26:31 AM
Alexsalexs # Wednesday, April 14, 2010 5:19:10 PM
Originally posted by anonymous:
Yeah, thanks
Unregistered user # Tuesday, April 26, 2011 6:36:21 PM
Unregistered user # Monday, June 27, 2011 6:51:42 AM
Unregistered user # Saturday, July 23, 2011 5:39:32 AM
Eckhard M. Jägerarea42 # Saturday, July 23, 2011 3:01:53 PM
Alexsalexs # Monday, November 7, 2011 4:00:07 PM
I have gedit hold on gtk2.
Alexsalexs # Saturday, December 3, 2011 8:11:44 PM
Thank you for the gedit2 plugin, Eckhard.