124 """ the variablename must be followed by a ':' and one formatting""" |
124 """ the variablename must be followed by a ':' and one formatting""" |
125 """ specifier (e.g. $VAR:ml$). The supported specifiers are:""" |
125 """ specifier (e.g. $VAR:ml$). The supported specifiers are:""" |
126 """<table>""" |
126 """<table>""" |
127 """<tr><td>ml</td><td>Specifies a multiline formatting.""" |
127 """<tr><td>ml</td><td>Specifies a multiline formatting.""" |
128 """ The first line of the variable contents is prefixed with the string""" |
128 """ The first line of the variable contents is prefixed with the string""" |
129 """ occuring before the variable on the same line of the template.""" |
129 """ occurring before the variable on the same line of the template.""" |
130 """ All other lines are prefixed by the same amount of whitespace""" |
130 """ All other lines are prefixed by the same amount of whitespace""" |
131 """ as the line containing the variable.""" |
131 """ as the line containing the variable.""" |
132 """</td></tr>""" |
132 """</td></tr>""" |
133 """<tr><td>rl</td><td>Specifies a repeated line formatting.""" |
133 """<tr><td>rl</td><td>Specifies a repeated line formatting.""" |
134 """ Each line of the variable contents is prefixed with the string""" |
134 """ Each line of the variable contents is prefixed with the string""" |
141 """<td>today's date in ISO format (YYYY-MM-DD)</td></tr>""" |
141 """<td>today's date in ISO format (YYYY-MM-DD)</td></tr>""" |
142 """<tr><td>year</td>""" |
142 """<tr><td>year</td>""" |
143 """<td>the current year</td></tr>""" |
143 """<td>the current year</td></tr>""" |
144 """<tr><td>project_name</td>""" |
144 """<tr><td>project_name</td>""" |
145 """<td>the name of the project (if any)</td></tr>""" |
145 """<td>the name of the project (if any)</td></tr>""" |
|
146 """<tr><td>project_path</td>""" |
|
147 """<td>the path of the project (if any)</td></tr>""" |
146 """<tr><td>path_name</td>""" |
148 """<tr><td>path_name</td>""" |
147 """<td>full path of the current file</td></tr>""" |
149 """<td>full path of the current file</td></tr>""" |
148 """<tr><td>dir_name</td>""" |
150 """<tr><td>dir_name</td>""" |
149 """<td>full path of the parent directory</td></tr>""" |
151 """<td>full path of the parent directory</td></tr>""" |
150 """<tr><td>file_name</td>""" |
152 """<tr><td>file_name</td>""" |
151 """<td>the current file name (without directory)</td></tr>""" |
153 """<td>the current file name (without directory)</td></tr>""" |
152 """<tr><td>base_name</td>""" |
154 """<tr><td>base_name</td>""" |
153 """<td>like <i>file_name</i>, but without extension</td></tr>""" |
155 """<td>like <i>file_name</i>, but without extension</td></tr>""" |
154 """<tr><td>ext</td>""" |
156 """<tr><td>ext</td>""" |
155 """<td>the extension of the current file</td></tr>""" |
157 """<td>the extension of the current file</td></tr>""" |
|
158 """<tr><td>cur_select</td>""" |
|
159 """<td>the currently selected text</td></tr>""" |
|
160 """<tr><td>insertion</td>""" |
|
161 """<td>Sets insertion point for cursor after template is inserted.</td></tr>""" |
|
162 """<tr><td>select_start</td>""" |
|
163 """<td>Sets span of selected text in template after template is """ |
|
164 """inserted (used together with 'select_end').</td></tr>""" |
|
165 """<tr><td>select_end</td>""" |
|
166 """<td>Sets span of selected text in template after template is """ |
|
167 """inserted (used together with 'select_start').</td></tr>""" |
|
168 """<tr><td>clipboard</td>""" |
|
169 """<td>the text of the clipboard</td></tr>""" |
156 """</table></p>""" |
170 """</table></p>""" |
157 """<p>If you want to change the default delimiter to anything""" |
171 """<p>If you want to change the default delimiter to anything""" |
158 """ different, please use the configuration dialog to do so.</p>""")) |
172 """ different, please use the configuration dialog to do so.</p>""")) |
159 |
173 |
160 def setSelectedGroup(self, name): |
174 def setSelectedGroup(self, name): |