Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions apps/desktop-gpui/src/app_windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5555,6 +5555,8 @@ async fn drive_auto_sidebar(handle: WindowHandle<EditorWindow>, cx: &mut gpui::A
let add_track = std::env::var("CAP_GPUI_AUTO_ADD_TRACK").ok();
let generate_zoom =
std::env::var("CAP_GPUI_AUTO_GENERATE_ZOOM").is_ok_and(|value| value == "1");
let remove_fillers =
std::env::var("CAP_GPUI_AUTO_REMOVE_FILLERS").is_ok_and(|value| value == "1");
if tab.is_none()
&& select.is_none()
&& canvas.is_none()
Expand All @@ -5563,6 +5565,7 @@ async fn drive_auto_sidebar(handle: WindowHandle<EditorWindow>, cx: &mut gpui::A
&& camera3d.is_none()
&& add_track.is_none()
&& !generate_zoom
&& !remove_fillers
{
return;
}
Expand Down Expand Up @@ -5597,6 +5600,17 @@ async fn drive_auto_sidebar(handle: WindowHandle<EditorWindow>, cx: &mut gpui::A
.ok();
}

if remove_fillers {
cx.background_executor()
.timer(std::time::Duration::from_millis(100))
.await;
handle
.update(cx, |view, window, cx| {
view.remove_filler_words_clicked(window, cx)
})
.ok();
}

if let Some(spec) = select {
handle
.update(cx, |view, _window, cx| view.auto_select_segments(&spec, cx))
Expand Down
Loading