Wrapping up bedrock implementation
This commit is contained in:
@@ -5,13 +5,6 @@ use fuzzy_match::match_indices_case_insensitive;
|
||||
use itertools::Itertools;
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
use regex::Regex;
|
||||
use std::borrow::Cow;
|
||||
use std::{
|
||||
cmp::Ordering,
|
||||
collections::{HashMap, HashSet},
|
||||
sync::Arc,
|
||||
};
|
||||
use galaxyui::keymap::{BindingId, IsBindingValid};
|
||||
use galaxyui::platform::OperatingSystem;
|
||||
use galaxyui::{
|
||||
@@ -23,6 +16,13 @@ use galaxyui::{
|
||||
Action,
|
||||
};
|
||||
use galaxyui::{AppContext, SingletonEntity};
|
||||
use regex::Regex;
|
||||
use std::borrow::Cow;
|
||||
use std::{
|
||||
cmp::Ordering,
|
||||
collections::{HashMap, HashSet},
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
pub const MAC_MENUS_CONTEXT: DescriptionContext = DescriptionContext::Custom("mac_menus");
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use std::borrow::Cow;
|
||||
|
||||
use itertools::Itertools;
|
||||
use galaxy_util::path::ShellFamily;
|
||||
use galaxyui::clipboard::ClipboardContent;
|
||||
use itertools::Itertools;
|
||||
|
||||
/// Returns a string representation of the ClipboardContent with any paths properly escaped if there is a known shell. If not, do not escape the paths.
|
||||
pub fn clipboard_content_with_escaped_paths(
|
||||
|
||||
@@ -8,10 +8,10 @@ mod windows;
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use settings::EditorChoice;
|
||||
use galaxy_util::path::LineAndColumnArg;
|
||||
use galaxyui::{AppContext, SingletonEntity};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use settings::EditorChoice;
|
||||
|
||||
pub use self::settings::{EditorLayout, EditorSettings};
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
use command::r#async::Command;
|
||||
use enum_iterator::{all, cardinality};
|
||||
use galaxy_util::path::LineAndColumnArg;
|
||||
use galaxyui::AppContext;
|
||||
use std::collections::HashMap;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::OnceLock;
|
||||
use galaxy_util::path::LineAndColumnArg;
|
||||
use galaxyui::AppContext;
|
||||
use winreg::enums::{HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE};
|
||||
use winreg::RegKey;
|
||||
use winreg::HKEY;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use galaxyui::elements::PartialClickableElement;
|
||||
use std::collections::HashMap;
|
||||
use std::ops::Range;
|
||||
use urlocator::{UrlLocation, UrlLocator};
|
||||
use galaxyui::elements::PartialClickableElement;
|
||||
|
||||
use galaxyui::platform::Cursor;
|
||||
|
||||
@@ -373,9 +373,9 @@ pub(crate) fn detect_file_paths(
|
||||
file_paths
|
||||
}
|
||||
|
||||
use string_offset::CharOffset;
|
||||
use galaxy_editor::content::buffer::Buffer;
|
||||
use galaxyui::text::word_boundaries::WordBoundariesPolicy;
|
||||
use string_offset::CharOffset;
|
||||
|
||||
/// Returns the range of the word surrounding the given offset.
|
||||
pub(crate) fn get_word_range_at_offset(
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
#[cfg(feature = "local_fs")]
|
||||
use crate::util::file::external_editor::{settings::EditorChoice, Editor, EditorSettings};
|
||||
pub use galaxy_util::file_type::{is_binary_file, is_file_content_binary, is_markdown_file};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::path::Path;
|
||||
pub use galaxy_util::file_type::{is_binary_file, is_file_content_binary, is_markdown_file};
|
||||
|
||||
#[derive(
|
||||
Debug,
|
||||
|
||||
@@ -10,13 +10,13 @@ pub mod windows;
|
||||
#[cfg(target_os = "linux")]
|
||||
mod linux_only {
|
||||
pub(super) use crate::workspace::TOTAL_TAB_BAR_HEIGHT;
|
||||
pub(super) use pathfinder_color::ColorU;
|
||||
pub(super) use pathfinder_geometry::vector::vec2f;
|
||||
pub(super) use std::sync::Arc;
|
||||
pub(super) use galaxyui::elements::{
|
||||
Align, Border, ChildAnchor, ConstrainedBox, Container, CornerRadius, Flex, Hoverable, Icon,
|
||||
OffsetPositioning, ParentAnchor, ParentElement, ParentOffsetBounds, Radius, Rect, Stack,
|
||||
};
|
||||
pub(super) use pathfinder_color::ColorU;
|
||||
pub(super) use pathfinder_geometry::vector::vec2f;
|
||||
pub(super) use std::sync::Arc;
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
@@ -25,13 +25,13 @@ use linux_only::*;
|
||||
#[cfg(target_os = "windows")]
|
||||
mod windows_only {
|
||||
pub(super) use crate::ui_components::icons::Icon as IconComponent;
|
||||
pub(super) use pathfinder_color::ColorU;
|
||||
pub(super) use pathfinder_geometry::vector::vec2f;
|
||||
pub(super) use galaxy_core::ui::theme;
|
||||
pub(super) use galaxyui::elements::{
|
||||
Align, Border, ChildAnchor, ConstrainedBox, Container, CornerRadius, Hoverable,
|
||||
OffsetPositioning, ParentAnchor, ParentOffsetBounds, Radius, Rect, Stack,
|
||||
};
|
||||
pub(super) use pathfinder_color::ColorU;
|
||||
pub(super) use pathfinder_geometry::vector::vec2f;
|
||||
pub(super) const WINDOWS_BRIGHT_RED: ColorU = ColorU {
|
||||
r: 232,
|
||||
g: 17,
|
||||
|
||||
@@ -4,8 +4,6 @@ use crate::util::traffic_lights::windows::RendererState;
|
||||
use crate::util::traffic_lights::windows_only::WINDOWS_BRIGHT_RED;
|
||||
use crate::util::traffic_lights::{TrafficLightData, TrafficLightMouseStates};
|
||||
use crate::workspace::TOTAL_TAB_BAR_HEIGHT;
|
||||
use pathfinder_color::ColorU;
|
||||
use std::sync::Arc;
|
||||
use galaxy_core::ui::theme::{Fill, WarpTheme};
|
||||
use galaxyui::elements::{
|
||||
Align, ConstrainedBox, Container, CrossAxisAlignment, Flex, Hoverable, MainAxisAlignment,
|
||||
@@ -14,6 +12,8 @@ use galaxyui::elements::{
|
||||
use galaxyui::fonts::FamilyId;
|
||||
use galaxyui::platform::FullscreenState;
|
||||
use galaxyui::{AppContext, Element, SingletonEntity};
|
||||
use pathfinder_color::ColorU;
|
||||
use std::sync::Arc;
|
||||
|
||||
/// Possible window traffic light icons.
|
||||
#[derive(Copy, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user