Skip to content

Latest commit

 

History

History
77 lines (63 loc) · 2.06 KB

select-notes.md

File metadata and controls

77 lines (63 loc) · 2.06 KB

Node names

a           anchor
c           code
C           codeblock
#           hash
L           list (any)
ol          orderedlist
ul          unorderedlist
li          listitem (any)
uli         unorderedlistitem (any)
oli         orderedlistitem (any)
r           ref (aka "link")
s           section
t           text-content

Examples (revised 2)

; all top-level objects
/*

; the second top-level section
/section/2

; all objects at all levels
/**

; all top-level sections
/section

; all sections at all levels
/**/section
/**/section

; all sections at all levels with 'test' in the name
/**/section/search/test
/**/section/~test

; all level 2 sections at all levels.
/**/section/level/2

; all lists containing checklist items at any level
/**/list/contains/**/checklist_item

; all lists containing checklist items with the 'shopping' hashtag
/**/checklist_item/#shopping

; all hashtags
/**/#

; all refs
/**/@

Examples (revised)

/                       -> all top level objects
                        -> all top level objects
//                      -> all objects at all levels
/s                      -> all top-level sections
s                       -> all top-level sections
//s                     -> all sections at all levels.
//s{test}               -> all sections at all levels with 'test' in the name.
//s2                    -> all level 2 sections at all levels. 
//l<c>                  -> all lists containing checklist items.
//l<c/#shopping>        -> all lists contianing checklist items with the 'shopping' hashtag.
//#                     -> all hashtags at all levels.
//ul<c>                 -> all unordered lists with checklist items.
//ul<*c><!*c{X}>        -> all unordered lists who's direct children are all checklist items
                           and who's direct children are not all completed checklist items.
//c/^                   -> select all direct parents of all checklist items.
//c/^/^                 -> select all grandparents of all checklist items.
//uli1                  -> select all level-1 unordered list items.