(text: &str)
| 3510 | out.push("res"); |
| 3511 | } |
| 3512 | if out.is_empty() { |
| 3513 | String::new() |
| 3514 | } else { |
| 3515 | format!(" {}", out.join(" ")) |
| 3516 | } |
| 3517 | } |
| 3518 | |
| 3519 | pub fn picker_rows(state: &EditorState, filter: &str, offset: usize) -> Vec<String> { |
| 3520 | picker_node_types(state, filter) |
| 3521 | .into_iter() |
| 3522 | .skip(offset) |
| 3523 | .take(MAX_NODE_PICKER_ROWS) |
| 3524 | .map(|node_type| picker_node_row(state, node_type)) |
| 3525 | .collect() |
| 3526 | } |
| 3527 | |
| 3528 | pub fn filtered_file_paths(state: &EditorState) -> Vec<String> { |