Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  1. # Sorting
  2.  
  3. *Assign a #[sort] tag at parent list to create a button that sorts top level child nodes*
  4.  
  5. *This does not sort child of child nodes*
  6.  
  7. ✓ Active - Shortcut for marked items: **ctrl+alt+e**
  8.  
  9. ✓ Enable autosorting - Automatically apply sort rules when dynalist reloads
  10.  
  11. ✗ Examples
  12.  
  13. *Sorts can be specified with ASC (ascension sort) or DES (descension sort)*
  14.  
  15. Sort children by tag
  16. `#[sort|by:tag(#test)|order:asc]`
  17. - Nodes ONLY with tag `#test` will go to the top of the list (tags like #test3 are not inclusive)
  18.  
  19. Sort children by multiple tags
  20. `#[sort|by:tag(#test)+tag(@office)|order:asc]`
  21. - Nodes ONLY with both #test AND @office will be sorted to top of list (tags like #test3 are not inclusive)
  22.  
  23. By tag with pattern matching
  24. `#[sort|by:tag(#week*)]`
  25. - Nodes with wildcard tags from week#* such as #week01, #week02, #week03 are sorted in alphabetical order at top of list
  26.  
  27. Sort children by multiple tags with pattern matching
  28. `#[sort|by:tag(#week*)+tag(#day*)|order:desc+desc]`
  29. - Sorts by #week* tag first descending, then by #day* in descending order.
  30. - Example after sorting:
  31. ✪ `#week22 #day12`
  32. ✪ `#week22 #day11`
  33. ✪ `#week10 #day24`
  34. ✪ `#week10 #day22`
  35.  
  36. Pattern matching with "*" can be applied in any position and even multiple times within tag
  37. `#[sort|by:tag(#a-*-b-*-c-*)|order:asc]`
  38.  
  39. Example after sorting:
  40. ✪ `#a-01-b-01-c-01`
  41. ✪ `#a-01-b-01-c-02`
  42. ✪ `#a-01-b-02-c-01`
  43. ✪ `#a-01-b-02-c-02`
  44. ✪ `#a-02-b-01-c-01`
  45. ✪ `#a-02-b-01-c-02`
  46. ✪ `#a-02-b-02-c-01`
  47. ✪ `#a-02-b-02-c-02`
  48.  
  49. Sort children by item "created" metadate and order ASC
  50. `#[sort|by:created|order:desc]`
  51. - When a bulletpoint node is created in dynalist, it is timestamped.
  52. - This sorts all children so the most recently created ones sit at top (ASC order)
  53.  
  54. Sort children by item "last-edited" metadate and order ASC
  55. `#[sort|by:edited]`
  56. - When a bulletpoint is edited in dynalist, it is timestamped
  57. - This sorts all children so most recently edited sits at top (ASC order)
  58. **@PIOTR, this is sorting the wrong way compared to one above (created-date), please check**
  59.  
  60. Sort children by A-Z and order ASC (these are default settings)
  61. `#[sort]`
  62. - A would sit at top, Z at bottom of list
  63.  
  64. Sort children by A-Z and order DESC
  65. `#[sort|order:desc]`
  66. - Z would sit at top, A at bottom of list
  67.  
  68. Sort children by numbers and order ASC
  69. `#[sort|by:number]`
  70. - 1 sits at top of list, 99 would sit lower
  71.  
  72. Sort children by numbers and order DESC
  73. `#[sort|by:number|order:desc]`
  74. - 99 sits at top of list, 1 would sit at bottom
  75.  
  76. Sort children by colors and order ASC
  77. `#[sort|by:color]`
  78. - Color tags order from top of list to bottom sort: RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE
  79.  
  80. Sort children by colors and order ASC
  81. `#[sort|by:color|order:desc]`
  82. - Color tags order from top of list to bottom sort: PURPLE, BLUE, GREEN, YELLOW, ORANGE, RED
  83.  
  84. Sort children by date and order ASC
  85. `#[sort|by:date]`
  86. - "!" date tags. Older dates sit at top, newer dates sit at bottom
  87.  
  88. Sort children by date and order DESC
  89. `#[sort|by:date|order:desc]`
  90. - "!" date tags. Newer dates sit at top, older dates sit at bottom
  91.  
  92. Sort children by date + A-Z and order ASC + DESC
  93. `#[sort|by:date+alpha|order:asc+desc]`
  94. - "!" Older dates sit near top, then sorted from Z to A order top to bottom.
  95. - "!" Newer dates sit at bottom
  96.  
  97. Sort children by date + A-Z and order DESC + ASC
  98. `#[sort|by:date+alpha|order:desc+asc]`
  99. - "!" Newer dates sit at top, then sorted A to Z order top to bottom
  100. - "!" Older dates sit at bottom
  101.  
  102. Sort children by colors + A-Z and order ASC + DESC
  103. `#[sort|by:color+alpha|order:asc+desc]`
  104. - Colors are sorted first top to bottom (Red, orange, yellow, green, blue, purple) then by Z to A order top to bottom.
  105.  
  106. Sort children by colors + dates and order ASC + DESC
  107. `#[sort|by:color+date|order:asc+desc]`
  108. - Colors are sorted first top to bottom (Red, orange, yellow, green, blue, purple) then by Newer-to-Older Dates top-to-bottom
  109.  
  110. Sort children by colors + dates + A-Z and order ASC + DESC + ASC
  111. `#[sort|by:color+date+alpha|order:asc+desc+asc]`
  112. - First, Colors are sorted first top to bottom (Red,orange, yellow, green, blue, purple)
  113. - Then, Newer-to-Older dates top-to-bottom
  114. - Finally, Z-to-A order top-to-bottom
  115.  
  116. Sort children by colors + dates + A-Z and order DESC + ASC + ASC
  117. `#[sort|by:date+color+alpha|order:desc+asc+asc]`
  118. - First, Newer-to-Older dates sorted top-to-bottom
  119. - Then, Colors are sorted top-to-bottom (Red,orange, yellow, green, blue, purple)
  120. - Finally, A-to-Z order top-to-bottom
  121.  
  122. Sort a fragment of a list
  123. - Inside of parent list with children nodes, apply a starting point `#[sort|start|by:color|order:desc]`
  124. - and an ending point `#[sort|start|by:color|order:desc]`
  125. - to selectively sort ONLY SOME of the children nodes
  126.  
  127. Example:
  128. ✪ Parent
  129. ✪✪ this will not be sorted
  130. ✪✪ this will not be sorted
  131. ✪✪ `#[sort|start|by:color|order:desc]`
  132. ✪✪ `<everything here is sorted by color (purple, blue, green, yellow, orange, red order)>`
  133. ✪✪ `#[sort|end]`
  134. ✪✪ this will not be sorted
  135. ✪✪ this will not be sorted
  136.  
  137. Auto sorting
  138. `#[sort|auto|by:date|order:desc] `
  139. - Apply the `sort` code to automatically sort when dynalist is refreshed.
  140. **PIOTR, does the system settings at autosort need to be applied here? or does this work individually per bulletpoint → didn't seem to work for me, needs clarification**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement