configure editor.
add install directions to readme.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# .plan: edit files
|
||||
|
||||
## install
|
||||
|
||||
```bash
|
||||
uv tool install --from https://git.publicmatt.com/public/plan.git plan
|
||||
```
|
||||
|
||||
|
||||
+5
-2
@@ -1,5 +1,7 @@
|
||||
from pathlib import Path
|
||||
import os
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
|
||||
from .templates import default
|
||||
|
||||
|
||||
@@ -16,4 +18,5 @@ def open(plan: Path):
|
||||
plan.touch()
|
||||
with plan.open("rw") as f:
|
||||
f.write(default())
|
||||
subprocess.run(["nvim", str(plan)])
|
||||
editor = os.getenv("EDITOR", "nvim")
|
||||
subprocess.run([editor, str(plan)])
|
||||
|
||||
Reference in New Issue
Block a user