From 411abf2a745e3c8fc4a6dca87f3c38b8f0db4884 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net>
Date: Wed, 3 Aug 2022 17:02:48 +0200
Subject: [PATCH] good-enough(?) approx. of #55

---
 src/files.jl | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/files.jl b/src/files.jl
index 8896e04..8513f9c 100644
--- a/src/files.jl
+++ b/src/files.jl
@@ -147,14 +147,30 @@ function tryopenfile(controller, path; reload::Bool=false)
                             :stop => :stop_large,
                             :stop_weak => :stop_large,
                             :stop_strong => :stop_large,
+                            :bend => :cast_large,
+                            :crawl => :run_large,
+                            :BACK => :back_large,
+                            :BEND => :cast_large,
+                            :HUNCH => :hunch_large,
+                            :ROLL => :roll_large,
+                            :RUN => :run_large,
+                            :STOP => :stop_large,
                            )
         fallback_color = theme[:LarvaPlot][:fallback_color]
         existingtags = records.tags
+        apply_default_convention = false
         for tag in existingtags
-            active = tag in keys(default_convention)
-            tag′= active ? tag : get(related_tags, tag, tag)
+            if tag in keys(default_convention)
+                apply_default_convention = true
+                break
+            end
+        end
+        for tag in existingtags
+            active′= tag in keys(default_convention)
+            tag′= active′ ? tag : get(related_tags, tag, tag)
             color = get(default_convention, tag′, fallback_color)
             original = TagModel(tag)
+            active = !apply_default_convention || active′
             push!(tag_lut, ObservableTag(original; color=color, active=active))
         end
     end
-- 
GitLab