Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use regex::Regex;
|
||||
use settings::Setting as _;
|
||||
use warp_util::path::user_friendly_path;
|
||||
use warpui::{
|
||||
use galaxy_util::path::user_friendly_path;
|
||||
use galaxyui::{
|
||||
async_assert, async_assert_eq,
|
||||
integration::{AssertionCallback, AssertionOutcome},
|
||||
units::Lines,
|
||||
@@ -772,8 +772,8 @@ pub fn assert_scroll_position(
|
||||
pub fn validate_git_branch(
|
||||
expected_git_branch: Option<String>,
|
||||
tab_idx: usize,
|
||||
window_id: warpui::WindowId,
|
||||
app: &warpui::App,
|
||||
window_id: galaxyui::WindowId,
|
||||
app: &galaxyui::App,
|
||||
) -> AssertionOutcome {
|
||||
let terminal_view = single_terminal_view_for_tab(app, window_id, tab_idx);
|
||||
terminal_view.read(app, |view, _ctx| {
|
||||
|
||||
@@ -2,7 +2,7 @@ use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use warpui::{
|
||||
use galaxyui::{
|
||||
async_assert,
|
||||
integration::{AssertionOutcome, TestStep},
|
||||
Event, SingletonEntity,
|
||||
@@ -235,7 +235,7 @@ fn switch_to_terminal_mode_and_type_command(
|
||||
pane_idx: usize,
|
||||
was_ai_mode: Arc<AtomicBool>,
|
||||
command: String,
|
||||
) -> impl Fn(&mut warpui::App, warpui::WindowId) -> Event + 'static {
|
||||
) -> impl Fn(&mut galaxyui::App, galaxyui::WindowId) -> Event + 'static {
|
||||
move |app, window_id| {
|
||||
let tv = terminal_view(app, window_id, tab_idx, pane_idx);
|
||||
let is_ai = tv.read(app, |view, ctx| {
|
||||
@@ -264,7 +264,7 @@ fn restore_ai_mode_if_needed(
|
||||
tab_idx: usize,
|
||||
pane_idx: usize,
|
||||
was_ai_mode: Arc<AtomicBool>,
|
||||
) -> impl Fn(&mut warpui::App, warpui::WindowId) + 'static {
|
||||
) -> impl Fn(&mut galaxyui::App, galaxyui::WindowId) + 'static {
|
||||
move |app, window_id| {
|
||||
if was_ai_mode.load(Ordering::SeqCst) {
|
||||
let tv = terminal_view(app, window_id, tab_idx, pane_idx);
|
||||
@@ -286,7 +286,7 @@ fn execute_command_step(
|
||||
tab_idx: usize,
|
||||
pane_idx: usize,
|
||||
command: String,
|
||||
validate_output_fn: impl FnMut(&mut warpui::App, warpui::WindowId) -> AssertionOutcome + 'static,
|
||||
validate_output_fn: impl FnMut(&mut galaxyui::App, galaxyui::WindowId) -> AssertionOutcome + 'static,
|
||||
) -> TestStep {
|
||||
let was_ai_mode = Arc::new(AtomicBool::new(false));
|
||||
let was_ai_mode_for_restore = was_ai_mode.clone();
|
||||
|
||||
@@ -3,9 +3,9 @@ use command::blocking::Command;
|
||||
use std::borrow::Cow;
|
||||
use std::iter;
|
||||
use std::path::{Path, PathBuf};
|
||||
use warp_core::command::ExitCode;
|
||||
use galaxy_core::command::ExitCode;
|
||||
#[cfg(windows)]
|
||||
use warp_core::paths::base_config_dir;
|
||||
use galaxy_core::paths::base_config_dir;
|
||||
|
||||
use rand::Rng;
|
||||
use rand::{distributions::Alphanumeric, thread_rng};
|
||||
|
||||
Reference in New Issue
Block a user