Significant progress. Performing cleanup now
This commit is contained in:
@@ -97,8 +97,8 @@ impl WarpifyBannerState {
|
||||
|
||||
pub fn title(&self) -> &str {
|
||||
match &self.mode {
|
||||
WarpificationMode::Ssh { .. } => "Warpify SSH session",
|
||||
WarpificationMode::Subshell { .. } => "Warpify subshell",
|
||||
WarpificationMode::Ssh { .. } => "Galaxify SSH session",
|
||||
WarpificationMode::Subshell { .. } => "Galaxify subshell",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -341,7 +341,7 @@ pub fn init(app: &mut AppContext) {
|
||||
),
|
||||
EditableBinding::new(
|
||||
"terminal:warpify_subshell",
|
||||
"Warpify subshell",
|
||||
"Galaxify subshell",
|
||||
TerminalAction::TriggerSubshellBootstrap,
|
||||
)
|
||||
.with_key_binding("ctrl-i")
|
||||
@@ -350,7 +350,7 @@ pub fn init(app: &mut AppContext) {
|
||||
),
|
||||
EditableBinding::new(
|
||||
"terminal:warpify_ssh_session",
|
||||
"Warpify ssh session",
|
||||
"Galaxify ssh session",
|
||||
TerminalAction::WarpifySSHSession,
|
||||
)
|
||||
.with_key_binding("ctrl-i")
|
||||
@@ -1073,35 +1073,7 @@ pub fn init(app: &mut AppContext) {
|
||||
.with_enabled(|| FeatureFlag::Projects.is_enabled())
|
||||
.with_context_predicate(id!("Workspace") & id!(flags::IS_ANY_AI_ENABLED))]);
|
||||
|
||||
// Register bindings for starting a new cloud agent conversation.
|
||||
{
|
||||
app.register_fixed_bindings([FixedBinding::new_per_platform(
|
||||
PerPlatformKeystroke {
|
||||
mac: "cmd-alt-enter",
|
||||
linux_and_windows: "ctrl-alt-enter",
|
||||
},
|
||||
TerminalAction::EnterCloudAgentView,
|
||||
id!("Terminal") & id!(flags::IS_ANY_AI_ENABLED),
|
||||
)
|
||||
.with_enabled(|| {
|
||||
FeatureFlag::AgentView.is_enabled()
|
||||
&& FeatureFlag::CloudMode.is_enabled()
|
||||
&& FeatureFlag::CloudModeFromLocalSession.is_enabled()
|
||||
})
|
||||
.with_group(bindings::BindingGroup::WarpAi.as_str())]);
|
||||
if cfg!(target_os = "macos") {
|
||||
// On MacOS, if the user has the 'Option as meta' setting enabled, the cmd-alt-enter
|
||||
// binding above will not match.
|
||||
//
|
||||
// TODO(zachbai): Consider if, for the purposes of fixed bindings, alt/meta should work
|
||||
// fungibly regardless of underlying setting.
|
||||
app.register_fixed_bindings([FixedBinding::new(
|
||||
"cmd-meta-enter",
|
||||
TerminalAction::EnterCloudAgentView,
|
||||
id!("Terminal") & id!(flags::IS_ANY_AI_ENABLED),
|
||||
)]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Registers bindings related to input modes.
|
||||
|
||||
@@ -33,10 +33,10 @@ impl WarpifyFooterView {
|
||||
let button_size = ButtonSize::XSmall;
|
||||
|
||||
let warpify_button = ctx.add_typed_action_view(|_ctx| {
|
||||
ActionButton::new("Warpify subshell", AgentFooterButtonTheme::new(None))
|
||||
ActionButton::new("Galaxify subshell", AgentFooterButtonTheme::new(None))
|
||||
.with_icon(Icon::Warp)
|
||||
.with_size(button_size)
|
||||
.with_tooltip("Enable Warp shell integration in this session")
|
||||
.with_tooltip("Enable Galaxy shell integration in this session")
|
||||
.with_tooltip_alignment(TooltipAlignment::Left)
|
||||
.on_click(|ctx| {
|
||||
ctx.dispatch_typed_action(WarpifyFooterViewAction::Warpify);
|
||||
@@ -48,7 +48,7 @@ impl WarpifyFooterView {
|
||||
.with_icon(Icon::Oz)
|
||||
.with_keybinding(KeystrokeSource::Fixed(USE_AGENT_KEYSTROKE.clone()), ctx)
|
||||
.with_size(button_size)
|
||||
.with_tooltip("Ask the Warp agent to assist")
|
||||
.with_tooltip("Ask the Galaxy agent to assist")
|
||||
.with_tooltip_alignment(TooltipAlignment::Left)
|
||||
.on_click(|ctx| {
|
||||
ctx.dispatch_typed_action(WarpifyFooterViewAction::UseAgent);
|
||||
@@ -76,9 +76,9 @@ impl WarpifyFooterView {
|
||||
pub fn set_mode(&mut self, mode: WarpificationMode, ctx: &mut ViewContext<Self>) {
|
||||
let (label, binding_name) = match mode {
|
||||
WarpificationMode::Ssh { .. } => {
|
||||
("Warpify SSH session", "terminal:warpify_ssh_session")
|
||||
("Galaxify SSH session", "terminal:warpify_ssh_session")
|
||||
}
|
||||
WarpificationMode::Subshell { .. } => ("Warpify subshell", "terminal:warpify_subshell"),
|
||||
WarpificationMode::Subshell { .. } => ("Galaxify subshell", "terminal:warpify_subshell"),
|
||||
};
|
||||
self.warpify_button.update(ctx, |button, ctx| {
|
||||
button.set_label(label, ctx);
|
||||
|
||||
@@ -19,7 +19,6 @@ use galaxyui::{
|
||||
use crate::{
|
||||
ai::blocklist::agent_view::{
|
||||
AgentViewController, AgentViewControllerEvent, ENTER_AGENT_VIEW_NEW_CONVERSATION_KEYSTROKE,
|
||||
ENTER_CLOUD_AGENT_VIEW_NEW_CONVERSATION_KEYSTROKE,
|
||||
},
|
||||
appearance::Appearance,
|
||||
settings::{AISettings, AISettingsChangedEvent, InputModeSettings},
|
||||
@@ -199,21 +198,6 @@ impl View for TerminalViewZeroStateBlock {
|
||||
)]),
|
||||
app,
|
||||
),
|
||||
render_standard_message(
|
||||
Message::new(vec![MessageItem::clickable(
|
||||
vec![
|
||||
MessageItem::keystroke(
|
||||
ENTER_CLOUD_AGENT_VIEW_NEW_CONVERSATION_KEYSTROKE.clone(),
|
||||
),
|
||||
MessageItem::text("start a new cloud agent conversation"),
|
||||
],
|
||||
|ctx| {
|
||||
ctx.dispatch_typed_action(TerminalAction::EnterCloudAgentView);
|
||||
},
|
||||
self.state_handles.start_cloud_conversation.clone(),
|
||||
)]),
|
||||
app,
|
||||
),
|
||||
render_standard_message(
|
||||
Message::new(vec![MessageItem::clickable(
|
||||
vec![
|
||||
|
||||
Reference in New Issue
Block a user