mirror of
https://github.com/natelandau/obsidian-metadata.git
synced 2025-11-18 18:03:39 -05:00
feat: greatly improve capturing all formats of inline metadata (#41)
feat: greatly improve capturing metadata all formats of inline metadata
This commit is contained in:
@@ -3,16 +3,6 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class MetadataType(Enum):
|
||||
"""Enum class for the type of metadata."""
|
||||
|
||||
FRONTMATTER = "Frontmatter"
|
||||
INLINE = "Inline Metadata"
|
||||
TAGS = "Inline Tags"
|
||||
KEYS = "Metadata Keys Only"
|
||||
ALL = "All Metadata"
|
||||
|
||||
|
||||
class InsertLocation(Enum):
|
||||
"""Location to add metadata to notes.
|
||||
|
||||
@@ -25,3 +15,22 @@ class InsertLocation(Enum):
|
||||
TOP = "Top"
|
||||
AFTER_TITLE = "After title"
|
||||
BOTTOM = "Bottom"
|
||||
|
||||
|
||||
class MetadataType(Enum):
|
||||
"""Enum class for the type of metadata."""
|
||||
|
||||
ALL = "Inline, Frontmatter, and Tags"
|
||||
FRONTMATTER = "Frontmatter"
|
||||
INLINE = "Inline Metadata"
|
||||
KEYS = "Metadata Keys Only"
|
||||
META = "Inline and Frontmatter. No Tags"
|
||||
TAGS = "Inline Tags"
|
||||
|
||||
|
||||
class Wrapping(Enum):
|
||||
"""Wrapping for inline metadata within a block of text."""
|
||||
|
||||
BRACKETS = "Brackets"
|
||||
PARENS = "Parentheses"
|
||||
NONE = None
|
||||
|
||||
Reference in New Issue
Block a user