bhcli

A TUI for chatting on LE PHP Chats
git clone https://git.dasho.dev/bhcli.git
Log | Files | Refs | README

commit 012e5da2670300a43196c332e49e3b8b21c27d2c
parent fc85f0c5428d97604f8eccf8f326accdea1d9b45
Author: Dasho <git@dasho.dev>
Date:   Sat, 13 Sep 2025 03:57:17 +0100

Fix translate-shell with Shift+T

Restored Shift+T functionality for translating message (selected), and moved notes view to Shift+N.

Removed external editor keybindings [Ctrl+., Ctrl+o] (which is a feature that didn't work and broke app, and which was replaced with the awesome internal vim-like editor built in with Ctrl+x)...

Happy days.

Diffstat:
Msrc/main.rs | 27+++++++--------------------
1 file changed, 7 insertions(+), 20 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -2488,6 +2488,13 @@ Connection: modifiers: KeyModifiers::SHIFT, .. } => { + self.handle_normal_mode_key_event_translate(app, messages); + } + KeyEvent { + code: KeyCode::Char('N'), + modifiers: KeyModifiers::SHIFT, + .. + } => { app.enter_notes_mode(self); } KeyEvent { @@ -2589,11 +2596,6 @@ Connection: .. } => self.handle_editing_mode_key_event_ctrl_v(app), KeyEvent { - code: KeyCode::Char('.'), - modifiers: KeyModifiers::CONTROL, - .. - } => self.handle_editing_mode_key_event_external_editor(app, users)?, - KeyEvent { code: KeyCode::Char('x'), modifiers: KeyModifiers::CONTROL, .. @@ -2601,11 +2603,6 @@ Connection: app.enter_message_editor_mode(); } KeyEvent { - code: KeyCode::Char('o'), - modifiers: KeyModifiers::CONTROL, - .. - } => self.handle_editing_mode_key_event_external_editor(app, users)?, - KeyEvent { code: KeyCode::Char('l'), modifiers: KeyModifiers::CONTROL, .. @@ -4065,11 +4062,6 @@ Connection: .. } => self.handle_editing_mode_key_event_ctrl_v(app), KeyEvent { - code: KeyCode::Char('.'), - modifiers: KeyModifiers::CONTROL, - .. - } => self.handle_editing_mode_key_event_external_editor(app, users)?, - KeyEvent { code: KeyCode::Char('x'), modifiers: KeyModifiers::CONTROL, .. @@ -4077,11 +4069,6 @@ Connection: app.enter_message_editor_mode(); } KeyEvent { - code: KeyCode::Char('o'), - modifiers: KeyModifiers::CONTROL, - .. - } => self.handle_editing_mode_key_event_external_editor(app, users)?, - KeyEvent { code: KeyCode::Left, modifiers: KeyModifiers::NONE, ..