9.6 Fields for Sequencing and Outlining ↑
9.6.1 Seq
The word seq
can be used as both a label and a type.
In addition to seq
itself, this field type will be inferred for field labels matching any of the following:
- sequence
- rev
- revision
- version
- Anything beginning with
seq
A Collection is not expected to have more than one field of type seq
.
A seq field is meant to contain some sort of sequence number, revision letter, version number or priority that can be used to put the Notes of a Collection into some meaningful order.
A Seq field may contain letters, digits and one or more periods (aka decimal points, or dots) or hyphens or a dollar sign (‘$’).
You may wish to assign a unique Seq value to each Note in a Collection, but Notenik does not require this (in other words, it does allow duplicate Seq values to be assigned to different Notes).
When editing, the seq field will appear as a single line of editable text.
When displayed, the seq field will be displayed as entered.
When used as a sort field, seq values will be padded to cause them to sort into a natural order, rather than a strict character-by-character alphanumeric order. In other words, a value of 2
will sort before a value of 10
, a value of b
will sort before aa
, etc. Each segment of this field, when separated by a dot or a dash, will be padded separately.
A seq field can also be used to store a time of day. In this case, colons and spaces will be recognized as separator characters, and a final segment containing a value of ‘AM’ or ‘PM’ (in either upper- or lowercase) will be placed at the beginning of the derived sort key, after converting to lowercase, for purposes of normalization. The result should be that these values sort into a natural order, and are displayed in a natural format.
If you’d like to see your Notes listed in sequence by their assigned number, you can use the Sort Menu to change the sequence of the displayed list from Title
to Seq + Title
. Use the Reverse
option to see them in descending sequence.
When adding a new Note, if the currently selected Note has a seq value, then the new Note’s seq will be initialized by incrementing the selected Note’s seq value. In other words, if you have your list sorted by Seq, then a new Note will be inserted immediately following the selected Note.
If you want to insert a new note with a Seq Value already assigned to another Note, then first select the other Note, then use the Increment
command under the Note
menu to increment the Seq field of the existing note, as well as following notes that might otherwise cause duplicate Seq values.
If your Notes have a two-part Seq field (i.e., 1.00), then use the Increment Major Seq
command beneath the Note
menu to force the numbers to the left of the decimal point to be incremented, rather than incrementing the numbers on the right.
You can perform some basic resequencing by dragging and dropping a Note from one position to another on the List tab. Note that you must move the Drop indicator to a line above and/or below existing Notes in order to indicate a desired new position for an existing Note (in other words, not on top of an existing Note). Only the Note being dragged and dropped will have its Seq value changed.
Starting with Version 7.9.0, you can also modify the Seq values for an entire range of Notes. The first step is to select the range to be renumbered on the List tab. Then use Ctrl-Click, or right-click, to obtain the contextual menu, then select Modify Seq…
from the menu. You will be presented with a new window showing the range you have selected, and then allowing you to enter a new Seq value for the first Note in the range. Once you’ve entered that new value, and hit the OK
button, the entire range will be renumbered. This command doesn’t make use of, or modify, the Level values, if present, but the structure of the range, as represented by the levels of numbering for each Note, will be preserved. The Seq value for following Notes will not be modified, so if you’re moving a block of Notes into an existing sequence, then you may wish to increment the Seq value for the new following Notes, before initiating the Modify Seq
operation.
Starting with Version 8.7.0, you may edit the Collection Template file and add codes to control the formatting of Seq values in secondary displays.
Primary displays of Seq values occur on the display of the Note in question. Primary displays always carry the full, unformatted Seq value.
Secondary displays of Seq values may arise when showing the contents of a higher-level Note. These are the sorts of displays that will be affected by formatting codes specified in the Collection template file.
Here is an example of such formatting codes:
Seq: <seq: x|n.|x|x >
In this example…
- The first
Seq
is the field label; - The next
seq
is the field type; - The
<
and>
enclose the field type and its formatting codes; - The
:
separates the type from the following codes; - The pipe characters (
|
) separate the levels of a Seq field; - The
x
character indicates that the level should be excluded from the formatted display; - The
n
character represents a Seq level to be displayed; - The
.
is a suffix to be added to the Seq level.
So, given the formatting codes in the example above, a Seq value of ‘7.3’ would appear in a secondary display as ‘3.’.
Next: Level