Kungsgeten / yankpad

Paste snippets from an org-mode file
MIT License
216 stars 18 forks source link

Categorizing snippets in descriptive list #41

Closed haqle closed 6 years ago

haqle commented 6 years ago

Hi As far as I know, only descriptive list items under the top level headings are considered snippets. I think it'd be great to be able to divide the descriptive list snippets into sub-categories. One way to achieve this is to define a new tag that tells yankpad to ignore headings and only look for descriptive list items.

Kungsgeten commented 6 years ago

Hi! I've commited a change to how descriptive list snippets work. If the descriptive list is in a "snippet" (a headline without any subheadings), then you need the :snippetlist: tag if you want to fetch snippets from it. If it is higher up in the hierarchy (not only top level, like before) you do not need that tag.

Thanks for the suggestion!