This commit is contained in:
2026-05-10 18:41:48 -04:00
parent fca9392f65
commit 6f4f281b4c
+15 -1
View File
@@ -895,7 +895,7 @@ class App:
imgui.table_set_column_index(0)
clicked, f_item.selected = imgui.checkbox(f"##{i}", f_item.selected)
if clicked:
if imgui.is_key_down(imgui.Key.shift) and self.files_last_selected >= 0:
if (imgui.is_key_down(imgui.Key.left_shift) or imgui.is_key_down(imgui.Key.right_shift)) and self.files_last_selected >= 0:
start_i = min(self.files_last_selected, i)
end_i = max(self.files_last_selected, i)
for j in range(start_i, end_i + 1):
@@ -918,6 +918,20 @@ class App:
if p not in [f.path if hasattr(f, 'path') else f for f in self.files]:
self.files.append(models.FileItem(path=p))
imgui.same_line()
if imgui.button("Sel All##selall"):
for f in self.files:
f.selected = True
imgui.same_line()
if imgui.button("Agg Selected##aggsel"):
for f in self.files:
if f.selected and hasattr(f, 'auto_aggregate'):
f.auto_aggregate = True
imgui.same_line()
if imgui.button("Full Selected##fullsel"):
for f in self.files:
if f.selected and hasattr(f, 'force_full'):
f.force_full = True
imgui.same_line()
if imgui.button("Del Selected##dels"):
self.files = [f for f in self.files if not f.selected]
imgui.end_child()