From 37e991b7eb1f57090b98ebc02a7fad6a4971e876 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 8 Dec 2025 20:11:22 +0800 Subject: Add jvii binary and set default text editor - Add jvii as a new binary target in Cargo configuration - Set JV_TEXT_EDITOR environment variable to "nano" in CLI scripts - Implement jvii binary with version command support - Add get_default_editor() utility that checks JV_TEXT_EDITOR, EDITOR, then defaults to "jvii" --- scripts/jv_cli.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/jv_cli.sh') diff --git a/scripts/jv_cli.sh b/scripts/jv_cli.sh index 1e382d7..eb7699a 100644 --- a/scripts/jv_cli.sh +++ b/scripts/jv_cli.sh @@ -14,6 +14,10 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" # Next `jv` command will auto-run `jv update` export JV_AUTO_UPDATE=yes +# Use JV_TEXT_EDITOR to set text editor for `jv track --work` `jv align --work` +# DEFAULT: $EDITOR environment variable, falling back to "jvii" if not set +export JV_TEXT_EDITOR=nano + ############### ### ALIASES ### ############### -- cgit