From 1e43def95472d9c906cff50534b38be2864690f4 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 15 Dec 2025 10:05:21 +0800 Subject: Update help documentation and move command functionality - Redesign move command to modify upstream mappings with support for erase operations - Add erased items support to align command and status display - Update help text to reflect new move mapping semantics and add erased item instructions - Add auto-update timeout configuration via JV_OUTDATED_MINUTES environment variable - Improve status display with separate structural and content change modes - Add force flag to hold/throw commands to skip pre-checks - Update completion scripts to include erased items in align command --- src/bin/jvii.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/bin/jvii.rs') diff --git a/src/bin/jvii.rs b/src/bin/jvii.rs index 83d6162..168acac 100644 --- a/src/bin/jvii.rs +++ b/src/bin/jvii.rs @@ -2,13 +2,13 @@ use std::env; use std::fs; use std::io::{self, Write}; use std::path::PathBuf; -use std::time::{Duration, Instant}; +use std::time::Duration; use clap::{Parser, command}; use crossterm::{ QueueableCommand, cursor::MoveTo, - event::{self, Event, KeyCode, KeyEvent, KeyEventKind, KeyModifiers}, + event::{self, Event, KeyCode, KeyEvent, KeyModifiers}, execute, style::{self, Color, Print, SetForegroundColor}, terminal::{ @@ -470,11 +470,6 @@ impl Editor { false } - #[cfg(not(windows))] - fn is_duplicate_event(&mut self, _key_event: &KeyEvent) -> bool { - false - } - #[cfg(windows)] fn should_skip_ime_event(&mut self, key_event: &KeyEvent) -> bool { // Check for IME composition markers @@ -513,11 +508,6 @@ impl Editor { } } - #[cfg(not(windows))] - fn should_skip_ime_event(&mut self, _key_event: &KeyEvent) -> bool { - false - } - fn handle_key_event(&mut self, key_event: KeyEvent, stdout: &mut io::Stdout) -> io::Result<()> { match key_event.code { KeyCode::Char('s') if key_event.modifiers.contains(KeyModifiers::CONTROL) => { -- cgit