logiguard fork v3: full patch set on verified 8c74db0 tree

Includes prior-session patches (carry forward so the app compiles):
  - crates/gpui/build.rs: cross-compile manifest fix
  - crates/gpui/src/platform.rs: PlatformWindow::activate_with_token trait method
  - crates/gpui/src/window.rs: Window::activate_with_token public API
  - crates/gpui_linux/src/linux/wayland/window.rs: WaylandWindow::activate_with_token + activate() keyboard-serial fix

Plus the focus-serial fix:
  - serial.rs: SerialKind::KeyboardEnter
  - client.rs: store wl_keyboard.enter serial; latest_serial_of()

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mohamad Khani
2026-07-14 01:52:12 +03:30
commit b9819977a5
3984 changed files with 1487015 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
[package]
name = "markdown_preview"
version = "0.1.0"
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"
[lints]
workspace = true
[lib]
path = "src/markdown_preview.rs"
[features]
test-support = []
[dependencies]
anyhow.workspace = true
editor.workspace = true
gpui.workspace = true
language.workspace = true
log.workspace = true
markdown.workspace = true
project.workspace = true
settings.workspace = true
theme.workspace = true
theme_settings.workspace = true
ui.workspace = true
urlencoding.workspace = true
util.workspace = true
workspace.workspace = true
zed_actions.workspace = true
[dev-dependencies]
editor = { workspace = true, features = ["test-support"] }
fs.workspace = true
gpui = { workspace = true, features = ["test-support"] }
serde_json.workspace = true
tempfile.workspace = true
workspace = { workspace = true, features = ["test-support"] }

View File

@@ -0,0 +1 @@
../../LICENSE-GPL

View File

@@ -0,0 +1,42 @@
use gpui::{App, actions};
use workspace::Workspace;
pub mod markdown_preview_view;
pub use zed_actions::preview::markdown::{OpenPreview, OpenPreviewToTheSide};
actions!(
markdown,
[
/// Scrolls up by one page in the markdown preview.
#[action(deprecated_aliases = ["markdown::MovePageUp"])]
ScrollPageUp,
/// Scrolls down by one page in the markdown preview.
#[action(deprecated_aliases = ["markdown::MovePageDown"])]
ScrollPageDown,
/// Scrolls up by approximately one visual line.
ScrollUp,
/// Scrolls down by approximately one visual line.
ScrollDown,
/// Scrolls up by one markdown element in the markdown preview
ScrollUpByItem,
/// Scrolls down by one markdown element in the markdown preview
ScrollDownByItem,
/// Scrolls to the top of the markdown preview.
ScrollToTop,
/// Scrolls to the bottom of the markdown preview.
ScrollToBottom,
/// Opens a following markdown preview that syncs with the editor.
OpenFollowingPreview
]
);
pub fn init(cx: &mut App) {
cx.observe_new(|workspace: &mut Workspace, window, cx| {
let Some(window) = window else {
return;
};
markdown_preview_view::MarkdownPreviewView::register(workspace, window, cx);
})
.detach();
}

File diff suppressed because it is too large Load Diff