Extensions for sorting, filtering, and manipulating lines of text.
Version 2.0.3
Sort lines in your document alphabetically or numerically.
::sort_lines_alpha (replaceAll) — Sort lines alphabetically. Options for reverse and skip lines. Example: ::sort_lines_alpha or ::sort_lines_alpha(true) for reverse::sort_lines_number (replaceAll) — Sort lines by the first number in each line. Example: ::sort_lines_number::sort_lines_number_last (replaceAll) — Sort lines by the last number in each line. Example: ::sort_lines_number_last::sort_lines_reverse (replaceAll) — Reverse the order of all lines. Example: ::sort_lines_reverseVersion 1.0.2
Filter, remove, and manipulate lines based on content or position.
::remove_lines_with (replaceAll) — Remove all lines containing specific text. Example: ::remove_lines_with(TODO)::remove_lines_without (replaceAll) — Remove all lines NOT containing specific text. Example: ::remove_lines_without(important)::remove_lines_empty (replaceAll) — Remove all empty lines from the document. Example: ::remove_lines_empty::keep_lines_with (replaceAll) — Keep only lines containing specific text. Example: ::keep_lines_with(@mention)::keep_lines_without (replaceAll) — Keep only lines NOT containing specific text. Example: ::keep_lines_without(draft)::trim_each_whitespace (replaceAll) — Remove leading/trailing whitespace from all lines. Example: ::trim_each_whitespace::remove_each_after (replaceAll) — Remove content after a delimiter on each line. Example: ::remove_each_after(:)::remove_each_before (replaceAll) — Remove content before a delimiter on each line. Example: ::remove_each_before(:)::keep_between (replaceAll) — Keep only content between two delimiters on each line. Example: ::keep_between([, ])::remove_between (replaceAll) — Remove content between two delimiters on each line. Example: ::remove_between((, ))::dedupe_lines (replaceAll) — Remove duplicate lines, keeping first occurrence. Example: ::dedupe_lines or ::dedupe_lines(false) to keep last::get_dupes (insert) — Find and display duplicate lines grouped together. Example: ::get_dupesVersion 1.0.1
Convert between different list formats.
::commas_to_list (replaceAll) — Convert comma-separated items to lines. Example: ::commas_to_list::commas_to (replaceAll) — Convert comma-separated items to a custom delimiter. Example: ::commas_to(|)::lines_to_commas (replaceAll) — Convert lines to comma-separated. Example: ::lines_to_commas::lines_to (replaceAll) — Convert lines to a custom delimiter. Example: ::lines_to(;)Version 1.0.1
Manage markdown checklists in your notes.
::checked_to_bottom (replaceAll) — Move all checked items to the bottom of the list. Example: ::checked_to_bottom::remove_checked (replaceAll) — Remove all checked items from the document. Example: ::remove_checked