MCPcopy Create free account
hub / github.com/PerroEngine/Perro / rewrite_project_res_value

Function rewrite_project_res_value

perro_editor/res/scripts/ui/editor_ui.rs:3597–3614  ·  view source on GitHub ↗
(value: &mut SceneValue, project_root: &str)

Source from the content-addressed store, hash-verified

3595}
3596
3597fn filtered_file_cache_key(state: &EditorState) -> String {
3598 format!(
3599 "{}\n{}\n{}\n{}\n{}",
3600 state.activity_mode,
3601 state.file_filter,
3602 state.file_scope,
3603 state.file_expanded_paths.join("\n"),
3604 state.file_paths.join("\n")
3605 )
3606}
3607
3608pub fn file_row_label(path: &str) -> String {
3609 let name = file_base_name(path);
3610 editor_view::short_path(&name, 30)
3611}
3612
3613pub fn file_row_label_for_filter(path: &str, filtered: bool) -> String {
3614 if filtered {
3615 return editor_view::short_path(&editor_files::rel_label(path), 30);
3616 }
3617 file_row_label(path)

Callers 2

rewrite_project_res_dataFunction · 0.85

Calls 2

res_to_absFunction · 0.70
iter_mutMethod · 0.45

Tested by

no test coverage detected