Viewing records with a specific TYPE

41 views
Skip to first unread message

Richard Blake

unread,
Apr 19, 2026, 4:39:09 AM (12 days ago) Apr 19
to GEDitCOM II Discussions
Hi

There are a number of structure types that can take a TYPE as a subordinate (e.g. REFN, FACT, EVEN). I would like to be able to select a particular TYPE for a structure in the display in GEDitCOM II. For example, I make extensive use of the REFN tag for individual details in other genealogy systems. Like this:

1 REFN YYYY-XXX

2 TYPE FamilySearch ID

1 REFN Blake-11111

2 TYPE WikiTree ID

1 REFN Keyword1; Keyword2

2 TYPE Keyword(s)


I would like to display a specific one of these in a column but if I use REFN, it will show the first one. I know I can use a .i suffix to choose another but I cannot guarantee the order.

Is there any way of achieving what I am looking for?

I hope that makes sense.

Thanks, Richard

John Nairn, Developer

unread,
Apr 24, 2026, 10:08:48 AM (7 days ago) Apr 24
to GEDitCOM II Discussions
I am not totally clear on what you want for the end result? Do you mean you want it in a column of the index window such as a column to show the REFN that has TYPE "WikiTree ID"? I can't think of method know, but write back if I get any ideas.

John Nairn 

Richard Blake

unread,
Apr 24, 2026, 12:50:34 PM (6 days ago) Apr 24
to geditcom-ii...@googlegroups.com
Hi John

That's what I am looking for but I'm also not sure of how it can be achieved. It's not critical, just checking that I wasn't missing a way of doing it that I hadn't seen.

Thanks

Richard

--
You received this message because you are subscribed to a topic in the Google Groups "GEDitCOM II Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geditcom-ii-discussions/QzKpml6pf3g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geditcom-ii-discu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/geditcom-ii-discussions/4ced74c7-e4e6-4afe-8a75-6be51335b6fen%40googlegroups.com.

John Nairn, Developer

unread,
Apr 25, 2026, 1:14:04 PM (5 days ago) Apr 25
to GEDitCOM II Discussions
You are not missing anything. Index columns can only use an "expression" and can modify that on some conditional. I think I considered a work around once, but can't find and notes and how it could be done.

Two options are

1. Write a script to insert REFN into each record and to sort them to a fixed order. You can  than using the .i suffix reliably

2. Instead of REFN, use custom tags (would take some work to make then usable in the "Default Format:, but not too hard)

John

Richard Blake

unread,
Apr 25, 2026, 1:50:34 PM (5 days ago) Apr 25
to geditcom-ii...@googlegroups.com
Hi John

I did think about the first option that you mentioned below, but that would only work for the REFN case as the various reference numbers would likely appear in most records. This would not work however for other cases where the TYPE is used for example as a sub-structure to IDNO. I use this for military IDs as below 

1 IDNO 99999

2 TYPE Military Service Number


Or the EVEN tag which I use for Arrival and Departure events.


1 EVEN

2 TYPE Arrival

1 EVEN

2 TYPE Departure


In either of these cases I would not want to these to every individual record.


I did start by going along the lines of your second suggestion but I have a personal goal to make my GEDCOM as standard as possible so I prefer not to create custom tags. Just my preference :-)

As I say, I'm not overly concerned about this so I wouldn't spend any more time investigating it unless you have a eureka moment :-)

Thanks

Richard

John Nairn, Developer

unread,
Apr 28, 2026, 12:19:27 PM (2 days ago) Apr 28
to GEDitCOM II Discussions
I put it on my list for future with idea to attach a mini script to a column that could do much more than can be done with an single expression.

The other TYPEs you mentioned however should not be a problem with hacks I suggested because that are at level 2 and therefore new column expression would need INDO.TYPE or EVEN.TYPE and the presence of those TYPES would confuse a column with REFN.TYPE or REFN.i.2.TYPE. These would find  TYPE line subordinate to first or second REFN line regardless of any other level 2 TYPE lines.

Also note that an change made in GEDCOM 5.5.1 allows generic events to move TYPE line to the EVEN line, so your file could be changed to

1 EVEN Arrival
1 EVEN Departure

If you have lots of generic events in records, you can use the "Copy TYPE lines to EVEN lines for GEDCOM 5.5.1" option in the "Miscellaneous Tasks" extension. If for some reason you need to export to GEDCOM 5.5, GEDitCOM II will automatically move the them back to TYPE lines for the export process only.

Finally, I agree good to keep things to standard GEDCOM tags. Custom tags, however, are actually standard GEDCOM provided the first character is an underscore (some annoying commercial software uses custom tags without an underscore and that violates the standard). The drawback of custom tags is that if you import to other software, they will not understand them (and most will just delete them). Custom tags are best for personal use. I used them in GEDitCOM II to create things like Log Records and Book Style records. These records only work in GEDitCOM II files.

John Nairn

Jim Eggert

unread,
Apr 28, 2026, 11:42:26 PM (2 days ago) Apr 28
to geditcom-ii...@googlegroups.com
I wonder if you can do this already with a search, at least kinda sorta. Try doing a search with terms
<GEDCOM Text> <matches regex> 1 REFN .*\n2 TYPE FamilySearch ID
or
<GEDCOM Text> <matches regex> 1 REFN .*\n2 TYPE WikiTree ID
or, if you want both,
<GEDCOM Text> <matches regex> 1 REFN .*\n2 TYPE (FamilySearch|WikiTree) ID

The First Match column here doesn’t show the whole regex match, as it would have two lines. But I think it does what you were asking for.


By the way, I’m of the opinion that the Search results window should be improved.

Currently, the Search results window has two columns, one of the found records, the second of the first match, meaning the match to the first criterion of the search.

I think the functionality could be generally improved by having the Search results window have one column for each of the search terms, plus of course the first column for the found records.

=Jim
> --
> You received this message because you are subscribed to the Google Groups "GEDitCOM II Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to geditcom-ii-discu...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/geditcom-ii-discussions/b2c6d5da-442e-4e7c-9cdf-81cc8815ab9fn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages