mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat: different title for shell blocking mode
This commit is contained in:
parent
cb13de9574
commit
ec261a2708
1 changed files with 5 additions and 1 deletions
|
|
@ -366,7 +366,11 @@ impl Tab {
|
||||||
let mut exec = exec.to_owned();
|
let mut exec = exec.to_owned();
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
if !confirm || exec.is_empty() {
|
if !confirm || exec.is_empty() {
|
||||||
let mut result = emit!(Input(InputOpt::top("Shell:").with_value(&exec).with_highlight()));
|
let mut result = emit!(Input(
|
||||||
|
InputOpt::top(if block { "Shell (block):" } else { "Shell:" })
|
||||||
|
.with_value(&exec)
|
||||||
|
.with_highlight()
|
||||||
|
));
|
||||||
match result.recv().await {
|
match result.recv().await {
|
||||||
Some(Ok(e)) => exec = e,
|
Some(Ok(e)) => exec = e,
|
||||||
_ => return,
|
_ => return,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue