Chat: Ctrl+K / Alt+K on Chat opens a quick switcher for the open chats
On Chat the chord now toggles a centred dialog (bottom sheet on a phone) with an autofocused filter over the open chats in list order; Ctrl+N/Down and Ctrl+P/Up move the wrapping selection, Enter opens the chat as Ctrl+Tab does (pane reused, composer focused), Esc or the chord closes it. From other destinations the chord still jumps to Chat. Ctrl+N/Ctrl+P are handled so the web page prevents their defaults (Ctrl+P no longer prints); a browser tab keeps Ctrl+N reserved, documented in the help and notes/chat-quick-switch.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import 'conversation/chat_row_widgets.dart';
|
||||
import 'conversation/chat_scroll.dart';
|
||||
import 'conversation/chat_transcript_cache.dart';
|
||||
import 'conversation/chat_composer_controller.dart';
|
||||
import 'conversation/chat_quick_switch_requests.dart';
|
||||
import 'conversation/composer_focus_request.dart';
|
||||
import 'data/chat_repository.dart';
|
||||
import 'ui/sessions/chat_sessions_body.dart';
|
||||
@@ -128,6 +129,9 @@ class ChatRuntime extends ChangeNotifier {
|
||||
/// Puts the keyboard in an opened chat's composer once it is built.
|
||||
final ChatComposerFocusRequests composerFocus = ChatComposerFocusRequests();
|
||||
|
||||
/// The Chat destination's quick switcher, toggled by Ctrl+K / Alt+K there.
|
||||
final ChatQuickSwitchRequests quickSwitch = ChatQuickSwitchRequests();
|
||||
|
||||
/// Mounted composers are registered so external actions can append without
|
||||
/// sending. A selection made before a pane mounts is queued here.
|
||||
final Map<String, ChatComposerController> composers = {};
|
||||
|
||||
Reference in New Issue
Block a user