disable plugins from context files
This commit is contained in:
parent
3a8aaddae1
commit
b593c18511
6 changed files with 16 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
|||
config:
|
||||
plugins:
|
||||
- id3
|
||||
id3:
|
||||
types:
|
||||
- .wav
|
||||
|
|
|
|||
3
TODO.md
3
TODO.md
|
|
@ -2,4 +2,5 @@
|
|||
tags:
|
||||
- frrr
|
||||
---
|
||||
+ plugin for xattr
|
||||
+ plugin for xattr
|
||||
+ plugin for pdf
|
||||
|
|
@ -5,6 +5,9 @@ NAME = 'frontmatter'
|
|||
TYPES = ['.md', '.txt', '.markdown', '.rst']
|
||||
|
||||
def reader(o):
|
||||
if 'plugins' in o.config:
|
||||
if NAME not in o.config['plugins']:
|
||||
return
|
||||
file = Path(o.path)
|
||||
suffixes = TYPES
|
||||
if NAME in o.config:
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ TYPES = ['.md', '.txt', '.py']
|
|||
REGEX = r'\s*([@+]\w+|#\w+(?<!#//))'
|
||||
|
||||
def reader(o):
|
||||
if 'plugins' in o.config:
|
||||
if NAME not in o.config['plugins']:
|
||||
return
|
||||
file = Path(o.path)
|
||||
suffixes = TYPES
|
||||
if NAME in o.config:
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ TYPES = ['.mp3', '.wav', '.flac', '.ogg']
|
|||
REGEX = r'\s*([@+]\w+|#\w+)'
|
||||
|
||||
def reader(o):
|
||||
if 'plugins' in o.config:
|
||||
if NAME not in o.config['plugins']:
|
||||
return
|
||||
file = Path(o.path)
|
||||
suffixes = TYPES
|
||||
if NAME in o.config:
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ def unzip_file(orig_file, tmp_dir):
|
|||
return type[0]
|
||||
|
||||
def reader(o):
|
||||
if 'plugins' in o.config:
|
||||
if NAME not in o.config['plugins']:
|
||||
return
|
||||
file = Path(o.path)
|
||||
suffixes = TYPES
|
||||
if NAME in o.config:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue