Revision: 1272 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1272&view=re... Author: frlan Date: 2010-04-21 21:29:59 +0000 (Wed, 21 Apr 2010)
Log Message: ----------- GeanyLaTeX: Automatic insert {} after typing ^ or _
Modified Paths: -------------- trunk/geanylatex/ChangeLog trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/ChangeLog =================================================================== --- trunk/geanylatex/ChangeLog 2010-04-21 17:38:27 UTC (rev 1271) +++ trunk/geanylatex/ChangeLog 2010-04-21 21:29:59 UTC (rev 1272) @@ -1,3 +1,8 @@ +2010-04-21 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> + + * Automatic insert {} after typing ^ or _ + + 2010-04-16 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* Fix indention on insert environment features.
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2010-04-21 17:38:27 UTC (rev 1271) +++ trunk/geanylatex/src/geanylatex.c 2010-04-21 21:29:59 UTC (rev 1272) @@ -527,6 +527,13 @@ } break; } /* Closing case \r or \n */ + case '_': + case '^': + { + sci_insert_text(sci, -1, "{}"); + sci_set_current_position(sci, pos + 1, TRUE); + break; + } } /* Closing switch */ /* later there could be some else ifs for other keywords */ }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org