diff --git a/hackide.1 b/hackide.1 index 976cc1d..70f4bbe 100644 --- a/hackide.1 +++ b/hackide.1 @@ -32,7 +32,7 @@ to view the existing templates, as well as the template directory. .SH FILES .SS work-context description -This file contains three different types of lines : +This file contains four different types of lines : .PP context .PP @@ -45,6 +45,16 @@ This line declares a task. may be followed (without SPACES !) by a comma-delimited list of rc file definitions in the form "rc::". This will create an empty resource file by the name filename and this file can be mentioned in the command parameters by writing "%key%". .PP +embed +.PP +Embed another context inside this one. The contents of filename are expanded with a dictionary containing the alias name in +.I prefix +and positional arguments from +.B parameters +in +.I 1, 2, 3... +(this is unbounded, if you provide 999 words on the parameter line, %999% will be defined) and the result is read like a .hackide file. You can then use the alias directly in the layout definition. +.PP layout .PP A layout consists of either horizontal or vertical splits of the terminal window. The syntax for a split is @@ -91,14 +101,18 @@ RC (EMPTY|CONTENT) Declares a resource file. When a task is created using this template, the .I template_filename is expanded using the dictionary of the task, that is : + .nf + { 'T':task_name, 'P':context_name, 'PARAM':task_parameter_string, } + .fi + If the last word is CONTENT, the file will be initialized from the template expansion of all the following lines until the line "END CONTENT", where is still the same. .PP CMD ...