MCPcopy Create free account
hub / github.com/bajrangCoder/setu / toggle_request_response_layout

Method toggle_request_response_layout

src/views/main_view.rs:1676–1682  ·  view source on GitHub ↗
(&mut self, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

1674 } else {
1675 url.find('/').map(|i| &url[i..]).unwrap_or(url)
1676 };
1677
1678 let path = path.split('?').next().unwrap_or(path);
1679
1680 if path.len() > 32 {
1681 Some(path[..32].to_string())
1682 } else {
1683 Some(path.to_string())
1684 }
1685 }

Callers 3

execute_commandMethod · 0.80
renderMethod · 0.80
render_shortcutsMethod · 0.80

Calls 1

Tested by

no test coverage detected