Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/pieces/tui/views/copilot_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ class PiecesCopilot(BaseDualPaneView):
"""Copilot/chat interface with consistent dual-pane layout."""

BINDINGS = [
Binding("ctrl+n", "new_chat", "New Chat"),
# priority=True so these screen-level shortcuts fire even when
# the chat input has focus. Without it, common readline/terminal
# bindings inside the input (notably Ctrl+L = clear-line and
# Ctrl+N = next-line) silently swallow the keypress before it
# reaches the screen's action handler — the symptom is the
# action only firing after the user opens another modal that
# transfers focus away from the input.
Binding("ctrl+n", "new_chat", "New Chat", priority=True),
Binding("ctrl+shift+m", "change_model", "Change Model"),
Binding("ctrl+l", "toggle_ltm", "Toggle LTM"),
Binding("ctrl+l", "toggle_ltm", "Toggle LTM", priority=True),
Binding("ctrl+shift+w", "switch_to_workstream", "Switch to Workstream"),
Binding("ctrl+c", "stop_streaming", "Stop Streaming"),
]
Expand Down
Loading