Editing a Single Item
Editing a Single Item
In any scalar (single item) editing panel you can use the button to generate a mini-keyword deck containing just this keyword. It is generated from the scratch data currently populating the editing panel, and will contain any comments embedded in the card. (It is also possible to edit multiple items using Text edit on the keyword editor, this is described in Editing Multiple Items Using the Keyword Editor) Note also that there is a general button in the panel that can be used to edit any keyword, not just one in an editing panel or the keyword editor. This is described in An example is given below for a PART, and the default output is split into three sections as annotated here | ![]() |
| Section | File Contents (continuous text in an actual file) | ||||||||||||||||
|
(1)Header |
$ Edit/view data and comments.
$ ---------------------------- $ $ Only lines after *keyword below will be reread by PRIMER. See RULES $ at the end of this file for details on data and comment editing. $ |
||||||||||||||||
| (2) Data | *PART
sill_swan_neck
|
||||||||||||||||
|
(3) Rules
|
$ RULES for editing data and comments in this file.
$ ------------------------------------------------- $ $ Make any changes you wish to the data and/or comments and then save $ the file under its existing name to update the PRIMER definition. $ $ Rules when saving changes: $ $ If you simply 'quit' from this edit this file will be deleted and $ no changes will be imported back into PRIMER. $ $ If you make changes to either data or comments then save this file $ under its current name your changes will be imported back into the $ current edit panel in PRIMER, and the file will then be deleted. $ $ If you save this file under a different name, with or without any $ edits, that new file will remain on disk. Any changes will only be $ imported back into PRIMER if you also saved them to the original $ filename, and that original file will be deleted as above. $ $ $ Rules when editing comments for import back into PRIMER: $ $ Only comments inserted between the *keyword header and data rows, $ or in between multiple data rows, will be 'remembered'. Comments $ before *keyword, and 'trailing' comments below data rows (such as $ these rules) will be ignored. $ $ Comment lines (anywhere) starting '$:' will be ignored. $ $ $ To suppress the initial explanation and these RULES set the preference $ $ primer*text_edit_show_rules: FALSE $ $ To turn off data field headers in the file to be edited (setting does $ not affect the output of headers in normal keyout files) use $ $ primer*text_edit_show_names: FALSE |
Associated *COMMENT data in text editing files.If *COMMENT cards are associated with keywords then they generally contain meta-data that is related to those keywords. To make this easier to visualise and edit any *COMMENTs associated with a keyword will also be written to the "mini file" used for editing via Text Edit. This topic is covered in more detail under the *COMMENT documentation. |
Controlling the output in the file
This default output is verbose and is intended for a 1st-time user. You
can control the output using the following preferences:
|
||
| primer*text_edit_show_rules: | true or false | Whether or not to show sections (1) and (3) above. Most users who have become accustomed to the rules explaining how this works will wish to use this preference to cut output down to just section (2) only. |
| primer*text_edit_show_names: | true or false | Whether or not the field headers (here pid, secid , etc) are shown above each row of data. |
|
Controlling which text editor is used.By default PRIMER will attempt to use the default system editor.
On any operating system you can override these defaults by setting the
following preference:
|
||
| primer*text_editor: | < pathname of editor > for example C:\Program Files\Vim\Vim70\gvim.exe | |
|
Rules for using the text editorThe text editor operates as follows:
|
||
