Files
gists/config/visidata/plugins/__init__.py
2026-02-21 23:20:42 +01:00

20 lines
560 B
Python

"""
Local VisiData plugins.
VisiData (v3.3) imports the top-level `plugins` package early (before config.py)
when `options.imports` contains "plugins" (default). Import submodules here so
their commands/types are registered on startup.
"""
# Keep imports resilient: a missing optional plugin shouldn't prevent VisiData from starting.
for _mod in (
"hidecol",
"iptype",
):
try:
__import__(f"{__name__}.{_mod}")
except Exception:
# VisiData will show exceptions in its error sheet if needed; don't hard-fail here.
pass