-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add editable keybinding for toggling the conversation details panel. #9837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: oz-agent/APP-3595/conversation-details-panel-local
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,6 +60,7 @@ pub const INPUT_BOX_VISIBLE_KEY: &str = "InputVisible"; | |
| pub const KEYBOARD_PROTOCOL_ENABLED_KEY: &str = "KeyboardProtocolEnabled"; | ||
| pub const CLI_AGENT_SESSION_ACTIVE_KEY: &str = "CLIAgentSessionActive"; | ||
| pub const ROOT_CLOUD_MODE_PANE_KEY: &str = "RootCloudModePane"; | ||
| pub const CAN_SHOW_CONVERSATION_DETAILS_KEY: &str = "CanShowConversationDetails"; | ||
|
|
||
| /// Some keybindings will do different things in different contexts. We break | ||
| /// these into their own function to ensure we pay special attention to | ||
|
|
@@ -1073,6 +1074,14 @@ pub fn init(app: &mut AppContext) { | |
| .with_enabled(|| FeatureFlag::Projects.is_enabled()) | ||
| .with_context_predicate(id!("Workspace") & id!(flags::IS_ANY_AI_ENABLED))]); | ||
|
|
||
| app.register_editable_bindings([EditableBinding::new( | ||
| "terminal:toggle_conversation_details_panel", | ||
| "Toggle Conversation Details Panel", | ||
| TerminalAction::ToggleConversationDetailsPanel, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ) | ||
| .with_group(bindings::BindingGroup::WarpAi.as_str()) | ||
| .with_context_predicate(id!("Terminal") & id!(CAN_SHOW_CONVERSATION_DETAILS_KEY))]); | ||
|
|
||
| // Register bindings for starting a new cloud agent conversation. | ||
| { | ||
| app.register_fixed_bindings([FixedBinding::new_per_platform( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.