diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-12-15 10:05:21 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-12-15 10:05:21 +0800 |
| commit | 1e43def95472d9c906cff50534b38be2864690f4 (patch) | |
| tree | e7296275d74efb4e1545d657bc936759291b48fe /src/bin/jvii.rs | |
| parent | b8ac6982f9b81bd686c2c8deb34669e13efd5ba7 (diff) | |
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
Diffstat (limited to 'src/bin/jvii.rs')
| -rw-r--r-- | src/bin/jvii.rs | 14 |
1 files changed, 2 insertions, 12 deletions
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) => { |
