It’s not clear to me how you want the lower list (ego to equality) to fit into 
the upper list. Are the lower list items all at the same hierarchical level as 
email and embryo in the upper list? Did any hierarchy of the lower list get 
lost in the email translation?

Could you show the result you want from those two list segments once merged?

Is it only a matter of sorting while maintaining the whitespace indentation, or 
does merging need to shift some items' levels?

> On Oct 8, 2022, at 1:57 PM, Matthew Bender <[email protected]> 
> wrote:
> 
> Hi all,
> 
> I'm a photographer, and my experience sorting with GREP is incredibly 
> minimal. If this can't be done - apologies! 
> 
> I'm building a structured hierarchal keyword list for stock photography 
> purposes. I aquired two separate pre-assembled lists. Both did certain things 
> better than the other. I want to combine keyword groups across these two 
> lists into one large, alphabetized group that maintains the established 
> hierarchy.  
> 
> Most keywords are simply words, but a few involve numbers (#1, for example.). 
> Being hierarchal, it's been built out using tabs to communicate nested levels 
> and curly brackets to communicate synonyms. An example is below, the spaces 
> are all tabs.
> 
>         ambition
>             {ambitious}
>         ancient
>         train
>         ancient civilization
>         apex
>             {#1}
>             {number 1}
>         appetizing
>         apprehend
>         approach
>             {approaching}
>         approachable
>         approval
>             {approve}
>             {approving}elegant
>         email
>         embryonic
>         emotion
>             {emotional}
>             {emotions}
>             affection
>                 devotion
>                 fondness
>                 love
>                 passion
>                 sympathy
>                 tenderness
>                 warmth
>             agitated
>                 {agitation}
>                 flustered
>                 frantic
>             amusement
>                 {amused}
>                 {amusing}
>         ego
>         elegance
>         embarrassment
>         emergence
>         empathy
>         emphasis
>         enchantment
>         encouragement
>         ending
>         endurance
>         energy
>         enhancement
>         enjoyment
>         ennui
>         enthusiasm
>         envy
>         equality
> 
> This example shows what I'd like to do - I want to merge the bottom set (ego 
> to equality, this came from one list) into the top set (ambition to emotion, 
> this came from the other list) alphabetically while maintaining the synonyms 
> and nested structure. Is there a way to just sort data on the 'top layer' 
> alphabetically (and accounting for the 1% of kewords that are things like #1 
> and the special characters like the curly brackets) while maintaining the 
> established hierarchy? My attempts so far leave things alphabetically 
> ordered, but the nested layers and top layers get all jumbled together and 
> the structure is completely broken. It alphabetizes every single word, which 
> isn't what I want at all.
> 
> Any help or tips would be much appreciated. 
> 
> Thanks,
> -Matt
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "[email protected]" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/d43d48c6-3181-457c-a29b-53f7a8ca5f8fn%40googlegroups.com.


    — Bruce

_bruce__van_allen__santa_cruz_ca_
_831_429_1688_p_
_831_332_3649_c_






-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/8EABFA0E-B7E9-421E-B628-259F39525C8E%40cruzio.com.

Reply via email to