From 8c3e26d0d0328f1f578e679ffea0949ed86aa63e Mon Sep 17 00:00:00 2001 From: Jonatan Pettersson Date: Fri, 23 Jan 2026 14:31:28 +0100 Subject: [PATCH 1/2] feat: add just commands to build and install applet only --- justfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/justfile b/justfile index 59414c7..df6022e 100644 --- a/justfile +++ b/justfile @@ -48,6 +48,10 @@ build-debug *args: # Compiles with release profile build-release *args: (build-debug '--release' args) + +# Compiles applet with release profile +build-release-applet *args: + cargo build --package {{applet-name}} --release {{args}} # Compiles release profile with vendored dependencies build-vendored *args: vendor-extract (build-release '--frozen --offline' args) @@ -95,6 +99,10 @@ install: install -Dm0644 "{{icons-src}}/$size/apps/{{APPID}}.svg" "{{icons-dst}}/$size/apps/{{APPID}}.svg"; \ done +# Installs applet files +install-applet: + install -Dm0755 {{applet-src}} {{applet-dst}} + # Uninstalls installed files uninstall: rm -f {{bin-dst}} {{applet-dst}} From b793d025c2f6bb03047ef5a69f9572c55929a80d Mon Sep 17 00:00:00 2001 From: Jonatan Pettersson Date: Fri, 23 Jan 2026 14:25:03 +0100 Subject: [PATCH 2/2] fix: filter for items with paths in multi-preview --- src/tab.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/tab.rs b/src/tab.rs index dd1e7a4..cca0bc3 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -6042,7 +6042,20 @@ impl Tab { ); let selected_items: Vec<&Item> = self.items_opt().map_or(Vec::new(), |items| { - items.iter().filter(|item| item.selected).collect() + items + .iter() + .filter(|item| { + if item.selected { + item.location_opt + .as_ref() + .map(Location::path_opt) + .flatten() + .is_some() + } else { + false + } + }) + .collect() }); let mut details = widget::column().spacing(space_xxxs);