logiguard fork v2: patched GPUI on verified 8c74db0 tree

Rebuilt from the exact zed-industries/zed @ 8c74db00c4053d6c0a9037863d7bd048658da4ca
tree (previous orphan was based on a stale/wrong fetch). Same 3-file patch:
  - serial.rs: add SerialKind::KeyboardEnter
  - client.rs: store wl_keyboard.enter serial; add latest_serial_of()
  - window.rs: activate() uses keyboard-enter serial (Mutter focus gate)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mohamad Khani
2026-07-14 01:44:22 +03:30
co-authored by Claude Fable 5
commit 46c7879954
3984 changed files with 1487015 additions and 0 deletions
+40
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"] }
+1
View File
@@ -0,0 +1 @@
../../LICENSE-GPL
@@ -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