vith 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vith/__init__.py +25 -0
- vith/__main__.py +7 -0
- vith/commands/__init__.py +0 -0
- vith/commands/commands.py +811 -0
- vith/commands/completer.py +61 -0
- vith/commands/grammar.py +50 -0
- vith/commands/handler.py +60 -0
- vith/commands/lexer.py +21 -0
- vith/commands/preview.py +134 -0
- vith/completion.py +224 -0
- vith/editor.py +320 -0
- vith/editor_buffer.py +265 -0
- vith/entry_points/__init__.py +0 -0
- vith/entry_points/run_vith.py +53 -0
- vith/help.py +15 -0
- vith/io/__init__.py +10 -0
- vith/io/backends.py +169 -0
- vith/io/base.py +48 -0
- vith/key_bindings.py +323 -0
- vith/layout.py +805 -0
- vith/lexer.py +207 -0
- vith/rc_file.py +56 -0
- vith/reporting.py +134 -0
- vith/style.py +168 -0
- vith/thai.py +1461 -0
- vith/welcome_message.py +48 -0
- vith/window_arrangement.py +553 -0
- vith-0.9.0.dist-info/METADATA +180 -0
- vith-0.9.0.dist-info/RECORD +33 -0
- vith-0.9.0.dist-info/WHEEL +5 -0
- vith-0.9.0.dist-info/entry_points.txt +2 -0
- vith-0.9.0.dist-info/licenses/LICENSE +28 -0
- vith-0.9.0.dist-info/top_level.txt +1 -0
vith/__init__.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""
|
|
2
|
+
vith: A pure-Python Vi clone with Thai & Lao script support.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
import re
|
|
8
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
# In a development checkout (e.g. repo root), read directly from pyproject.toml
|
|
12
|
+
# so editing the version requires touching only pyproject.toml:
|
|
13
|
+
_pyproject = Path(__file__).resolve().parent.parent / "pyproject.toml"
|
|
14
|
+
if _pyproject.is_file():
|
|
15
|
+
_m = re.search(
|
|
16
|
+
r'(?m)^version\s*=\s*["\']([^"\']+)["\']', _pyproject.read_text(encoding="utf-8")
|
|
17
|
+
)
|
|
18
|
+
__version__ = _m.group(1) if _m else "0.9.0"
|
|
19
|
+
else:
|
|
20
|
+
try:
|
|
21
|
+
__version__ = version("vith")
|
|
22
|
+
except PackageNotFoundError:
|
|
23
|
+
__version__ = "0.9.0"
|
|
24
|
+
|
|
25
|
+
__all__ = ("__version__",)
|
vith/__main__.py
ADDED
|
File without changes
|