Files
imeai-aKode/akode-rs/tui/src/bottom_pane/config_panel.rs
andrea.difonzo 7c1c6dfa8d Rinomina: crate akode-*, cartelle akode-rs/ e akode-cli/, binario akode, ~/.akode, AKODE_* (A)
Riapplica la fase 5 di aKode (86e7c72e) sulla base ripulita:
- crate codex-* -> akode-*, codex-rs -> akode-rs, codex-cli -> akode-cli, binario e ausiliari akode;
- ~/.codex -> ~/.akode, CODEX_HOME -> AKODE_HOME, variabili CODEX_* -> AKODE_*, .codex/ -> .akode/ di progetto;
  nessun fallback a ~/.codex o a CODEX_*;
- testi per l'utente "Codex" -> "aKode"; testi verso il modello e istruzioni di sistema invariati;
- snapshot insta rinominati (non ancora rigenerati).
I conflitti con la base ripulita sono stati risolti riapplicando la rinomina ai file senza le
funzioni di imeAI (script di mappa dei token per file).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 12:37:52 +01:00

48 lines
1.5 KiB
Rust

//! Refresh configuration panels and coordinate their editor handoffs.
use super::BottomPane;
use crate::config_panel::ConfigPanelUpdate;
use crate::key_hint::KeyBinding;
use crossterm::event::KeyEvent;
use crossterm::event::KeyEventKind;
impl BottomPane {
pub(crate) fn update_config_panel(&mut self, update: &ConfigPanelUpdate) -> bool {
let mut updated = false;
for view in &mut self.view_stack {
updated |= view.update_config_panel(update);
}
self.request_redraw();
updated
}
pub(crate) fn config_editor_opened(&mut self) {
for view in &mut self.view_stack {
view.config_editor_opened();
}
}
pub(crate) fn interrupt_config_editor_transition(&mut self) {
self.view_transition_key_guard = None;
for view in &mut self.view_stack {
view.interrupt_config_editor_transition();
}
}
pub(crate) fn observe_config_editor_transition_key_event(&mut self, key: KeyEvent) {
match key.kind {
KeyEventKind::Press | KeyEventKind::Repeat => {
let activation_key = KeyBinding::from_event(key);
for view in &mut self.view_stack {
view.observe_key_event_while_covered(key, activation_key);
}
}
KeyEventKind::Release => {
for view in &mut self.view_stack {
view.handle_key_release(key);
}
}
}
}
}