diff --git a/CHANGELOG.md b/CHANGELOG.md
index e31fa27cad..a55d3a7e1f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,15 @@
## Unreleased
+### Features/Changes
+- Implement "Run in terminal"
+
+### Bug Fixes
+- Fix markdown syntax highlighting
+- Fix click issue on window error message
+
+## 0.4.1
+
### Features/Changes
- Add fedora builds
- Finish tree sitter dynamic libary support by downloading from https://github.com/lapce/tree-sitter-grammars
diff --git a/Cargo.lock b/Cargo.lock
index f08869645e..37b1dde3cb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1684,7 +1684,7 @@ checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4"
[[package]]
name = "floem"
version = "0.1.1"
-source = "git+https://github.com/lapce/floem?rev=54f0d1bcf0e1a91d82492ee7300a526adb60eb5c#54f0d1bcf0e1a91d82492ee7300a526adb60eb5c"
+source = "git+https://github.com/lapce/floem?rev=a207ef4bd463d41be1d06daeae3be7936b0dbb60#a207ef4bd463d41be1d06daeae3be7936b0dbb60"
dependencies = [
"bitflags 2.6.0",
"copypasta",
@@ -1722,7 +1722,7 @@ dependencies = [
[[package]]
name = "floem-editor-core"
version = "0.1.1"
-source = "git+https://github.com/lapce/floem?rev=54f0d1bcf0e1a91d82492ee7300a526adb60eb5c#54f0d1bcf0e1a91d82492ee7300a526adb60eb5c"
+source = "git+https://github.com/lapce/floem?rev=a207ef4bd463d41be1d06daeae3be7936b0dbb60#a207ef4bd463d41be1d06daeae3be7936b0dbb60"
dependencies = [
"bitflags 2.6.0",
"itertools 0.12.1",
@@ -1800,7 +1800,7 @@ dependencies = [
[[package]]
name = "floem_reactive"
version = "0.1.1"
-source = "git+https://github.com/lapce/floem?rev=54f0d1bcf0e1a91d82492ee7300a526adb60eb5c#54f0d1bcf0e1a91d82492ee7300a526adb60eb5c"
+source = "git+https://github.com/lapce/floem?rev=a207ef4bd463d41be1d06daeae3be7936b0dbb60#a207ef4bd463d41be1d06daeae3be7936b0dbb60"
dependencies = [
"smallvec",
]
@@ -1808,7 +1808,7 @@ dependencies = [
[[package]]
name = "floem_renderer"
version = "0.1.1"
-source = "git+https://github.com/lapce/floem?rev=54f0d1bcf0e1a91d82492ee7300a526adb60eb5c#54f0d1bcf0e1a91d82492ee7300a526adb60eb5c"
+source = "git+https://github.com/lapce/floem?rev=a207ef4bd463d41be1d06daeae3be7936b0dbb60#a207ef4bd463d41be1d06daeae3be7936b0dbb60"
dependencies = [
"cosmic-text",
"image",
@@ -1821,7 +1821,7 @@ dependencies = [
[[package]]
name = "floem_tiny_skia_renderer"
version = "0.1.1"
-source = "git+https://github.com/lapce/floem?rev=54f0d1bcf0e1a91d82492ee7300a526adb60eb5c#54f0d1bcf0e1a91d82492ee7300a526adb60eb5c"
+source = "git+https://github.com/lapce/floem?rev=a207ef4bd463d41be1d06daeae3be7936b0dbb60#a207ef4bd463d41be1d06daeae3be7936b0dbb60"
dependencies = [
"anyhow",
"bytemuck",
@@ -1838,7 +1838,7 @@ dependencies = [
[[package]]
name = "floem_vger_renderer"
version = "0.1.1"
-source = "git+https://github.com/lapce/floem?rev=54f0d1bcf0e1a91d82492ee7300a526adb60eb5c#54f0d1bcf0e1a91d82492ee7300a526adb60eb5c"
+source = "git+https://github.com/lapce/floem?rev=a207ef4bd463d41be1d06daeae3be7936b0dbb60#a207ef4bd463d41be1d06daeae3be7936b0dbb60"
dependencies = [
"anyhow",
"floem-vger",
@@ -2906,7 +2906,7 @@ dependencies = [
[[package]]
name = "lapce"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"lapce-app",
"lapce-proxy",
@@ -2914,7 +2914,7 @@ dependencies = [
[[package]]
name = "lapce-app"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"Inflector",
"alacritty_terminal",
@@ -2971,14 +2971,14 @@ dependencies = [
"tracing-subscriber",
"unicode-width",
"url",
- "windows-sys 0.52.0",
+ "windows-sys 0.36.1",
"zip",
"zstd",
]
[[package]]
name = "lapce-core"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"ahash",
"anyhow",
@@ -3006,7 +3006,7 @@ dependencies = [
[[package]]
name = "lapce-proxy"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"alacritty_terminal",
"anyhow",
@@ -3055,7 +3055,7 @@ dependencies = [
[[package]]
name = "lapce-rpc"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"anyhow",
"crossbeam-channel",
@@ -4510,9 +4510,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.122"
+version = "1.0.124"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "784b6203951c57ff748476b126ccb5e8e2959a5c19e5c617ab1956be3dbc68da"
+checksum = "66ad62847a56b3dba58cc891acd13884b9c61138d330c0d7b6181713d4fce38d"
dependencies = [
"itoa",
"memchr",
diff --git a/Cargo.toml b/Cargo.toml
index 658c97f93d..694595a460 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,7 +23,7 @@ path = "lapce-proxy/src/bin/lapce-proxy.rs"
members = ["lapce-app", "lapce-proxy", "lapce-rpc", "lapce-core"]
[workspace.package]
-version = "0.4.0"
+version = "0.4.1"
edition = "2021"
rust-version = "1.77.0"
license = "Apache-2.0"
@@ -76,9 +76,9 @@ lapce-core = { path = "./lapce-core" }
lapce-rpc = { path = "./lapce-rpc" }
lapce-proxy = { path = "./lapce-proxy" }
-floem = { git = "https://github.com/lapce/floem", rev = "54f0d1bcf0e1a91d82492ee7300a526adb60eb5c", features = ["editor", "serde", "default-image-formats", "rfd-async-std"] }
+floem = { git = "https://github.com/lapce/floem", rev = "a207ef4bd463d41be1d06daeae3be7936b0dbb60", features = ["editor", "serde", "default-image-formats", "rfd-async-std"] }
# floem = { path = "../floem", features = ["editor", "serde", "default-image-formats", "rfd-async-std"] }
-floem-editor-core = { git = "https://github.com/lapce/floem", rev = "54f0d1bcf0e1a91d82492ee7300a526adb60eb5c", features = ["serde"] }
+floem-editor-core = { git = "https://github.com/lapce/floem", rev = "a207ef4bd463d41be1d06daeae3be7936b0dbb60", features = ["serde"] }
# floem-editor-core = { path = "../floem/editor-core/", features = ["serde"] }
[patch.crates-io]
diff --git a/defaults/dark-theme.toml b/defaults/dark-theme.toml
index 478d501a64..8d3c6ce0c4 100644
--- a/defaults/dark-theme.toml
+++ b/defaults/dark-theme.toml
@@ -68,6 +68,14 @@ dim-text = "#5C6370"
"variable.other.member" = "$red"
"tag" = "$blue"
+"markup.heading" = "$red"
+"markup.bold" = "$orange"
+"markup.italic" = "$orange"
+"markup.list" = "$orange"
+"markup.link.url" = "$blue"
+"markup.link.label" = "$purple"
+"markup.link.text" = "$purple"
+
"bracket.color.1" = "$blue"
"bracket.color.2" = "$yellow"
"bracket.color.3" = "$purple"
diff --git a/defaults/light-theme.toml b/defaults/light-theme.toml
index 5cef4861b2..570e6f75b2 100644
--- a/defaults/light-theme.toml
+++ b/defaults/light-theme.toml
@@ -74,6 +74,14 @@ dim-text = "#A0A1A7"
"variable.other.member" = "$red"
"tag" = "$blue"
+"markup.heading" = "$red"
+"markup.bold" = "$orange"
+"markup.italic" = "$orange"
+"markup.list" = "$orange"
+"markup.link.url" = "$blue"
+"markup.link.label" = "$purple"
+"markup.link.text" = "$purple"
+
"bracket.color.1" = "$blue"
"bracket.color.2" = "$yellow"
"bracket.color.3" = "$purple"
diff --git a/extra/linux/dev.lapce.lapce.metainfo.xml b/extra/linux/dev.lapce.lapce.metainfo.xml
index 99d322aff3..3c6ad2db59 100644
--- a/extra/linux/dev.lapce.lapce.metainfo.xml
+++ b/extra/linux/dev.lapce.lapce.metainfo.xml
@@ -30,6 +30,6 @@
-
+
diff --git a/extra/macos/Lapce.app/Contents/Info.plist b/extra/macos/Lapce.app/Contents/Info.plist
index 2f6f78e208..5896e12833 100644
--- a/extra/macos/Lapce.app/Contents/Info.plist
+++ b/extra/macos/Lapce.app/Contents/Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 0.4.0
+ 0.4.1
CFBundleSupportedPlatforms
MacOSX
diff --git a/extra/windows/wix/lapce.wxs b/extra/windows/wix/lapce.wxs
index b2d0e4c600..305f835e22 100644
--- a/extra/windows/wix/lapce.wxs
+++ b/extra/windows/wix/lapce.wxs
@@ -1,6 +1,6 @@
-
+
diff --git a/lapce-app/src/app.rs b/lapce-app/src/app.rs
index 36a04eb11d..4008fed604 100644
--- a/lapce-app/src/app.rs
+++ b/lapce-app/src/app.rs
@@ -2795,10 +2795,10 @@ fn window_message_view(
}),
stack((
text(title.clone()).style(|s| {
- s.min_width(0.0).line_height(1.6).font_weight(Weight::BOLD)
+ s.min_width(0.0).line_height(1.8).font_weight(Weight::BOLD)
}),
text(message.message.clone()).style(|s| {
- s.min_width(0.0).line_height(1.6).margin_top(5.0)
+ s.min_width(0.0).line_height(1.8).margin_top(5.0)
}),
))
.style(move |s| {
@@ -2818,6 +2818,7 @@ fn window_message_view(
)
.style(|s| s.margin_left(6.0)),
))
+ .on_event_stop(EventListener::PointerDown, |_| {})
.style(move |s| {
let config = config.get();
s.width_full()
@@ -2846,7 +2847,11 @@ fn window_message_view(
.style(|s| s.flex_col().width_full()),
)
.style(|s| {
- s.absolute().width_full().min_height(0.0).max_height_full()
+ s.absolute()
+ .width_full()
+ .min_height(0.0)
+ .max_height_full()
+ .set(PropagatePointerWheel, false)
}),
)
.style(|s| s.size_full()),
@@ -2930,6 +2935,7 @@ fn hover(window_tab_data: Rc) -> impl View {
layout_rect.set(rect);
})
.on_event_stop(EventListener::PointerMove, |_| {})
+ .on_event_stop(EventListener::PointerDown, |_| {})
.style(move |s| {
let active = window_tab_data.common.hover.active.get();
if !active {
diff --git a/lapce-app/src/command.rs b/lapce-app/src/command.rs
index 1ea715861c..014e5d7e15 100644
--- a/lapce-app/src/command.rs
+++ b/lapce-app/src/command.rs
@@ -191,6 +191,10 @@ pub enum LapceWorkbenchCommand {
#[strum(message = "Reveal in File Tree")]
RevealInFileTree,
+ #[strum(serialize = "run_in_terminal")]
+ #[strum(message = "Run in Terminal")]
+ RunInTerminal,
+
#[strum(serialize = "reveal_active_file_in_file_explorer")]
#[strum(message = "Reveal Active File in File Explorer")]
RevealActiveFileInFileExplorer,
diff --git a/lapce-app/src/editor.rs b/lapce-app/src/editor.rs
index bf7655523e..012c0aa5c3 100644
--- a/lapce-app/src/editor.rs
+++ b/lapce-app/src/editor.rs
@@ -51,6 +51,7 @@ use lsp_types::{
HoverContents, InlayHint, InlayHintLabel, InlineCompletionTriggerKind, Location,
MarkedString, MarkupKind, Range, TextEdit,
};
+use nucleo::Utf32Str;
use serde::{Deserialize, Serialize};
use self::{
@@ -187,6 +188,13 @@ impl EditorViewKind {
}
}
+#[derive(Clone)]
+pub struct OnScreenFind {
+ pub active: bool,
+ pub pattern: String,
+ pub regions: Vec,
+}
+
pub type SnippetIndex = Vec<(usize, (usize, usize))>;
/// Shares data between cloned instances as long as the signals aren't swapped out.
@@ -198,6 +206,7 @@ pub struct EditorData {
pub confirmed: RwSignal,
pub snippet: RwSignal