Small fixes to task modal & long commands (#8974)
* Show the entire task tooltip on terminal tab hover: <img width="979" alt="Screenshot 2024-03-07 at 01 40 56" src="https://github.com/zed-industries/zed/assets/2690773/bc274a5c-70f6-4f3d-87b4-04aff3594089"> * Scroll to the end of the query when a menu label is reused as a query: <img width="658" alt="Screenshot 2024-03-07 at 01 41 03" src="https://github.com/zed-industries/zed/assets/2690773/972857f4-36db-49dc-8fa1-dd15e0470660"> Release Notes: - Improved task modal UX with long bash-like commands
This commit is contained in:
parent
ca37d39109
commit
ae5ec9224c
2 changed files with 15 additions and 4 deletions
|
@ -1365,7 +1365,13 @@ impl Terminal {
|
|||
pub fn title(&self, truncate: bool) -> String {
|
||||
const MAX_CHARS: usize = 25;
|
||||
match &self.task {
|
||||
Some(task_state) => truncate_and_trailoff(&task_state.label, MAX_CHARS),
|
||||
Some(task_state) => {
|
||||
if truncate {
|
||||
truncate_and_trailoff(&task_state.label, MAX_CHARS)
|
||||
} else {
|
||||
task_state.label.clone()
|
||||
}
|
||||
}
|
||||
None => self
|
||||
.foreground_process_info
|
||||
.as_ref()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue