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.ps1 | 4 ++++ scripts/jv_cli.sh | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'scripts') diff --git a/scripts/jv_cli.ps1 b/scripts/jv_cli.ps1 index e8d3674..123e28d 100644 --- a/scripts/jv_cli.ps1 +++ b/scripts/jv_cli.ps1 @@ -13,6 +13,10 @@ $SCRIPT_DIR = Split-Path -Parent $MyInvocation.MyCommand.Definition # Next `jv` command will auto-run `jv update` $env: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 +$env:JV_TEXT_EDITOR = "nano" + ############### ### ALIASES ### ############### 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