Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hover floating terminal #3155

Closed
seongs1024 opened this issue Jul 22, 2022 · 1 comment
Closed

Hover floating terminal #3155

seongs1024 opened this issue Jul 22, 2022 · 1 comment
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue

Comments

@seongs1024
Copy link

seongs1024 commented Jul 22, 2022

Background to request the feature

When i wrote the rust code below by helix and excecuted :run-shell-command cargo run

use std::thread::sleep;
use std::time::Duration;

const CLEAR_TERMINAL: &str = "\x1B[2J\x1B[1;1H";

fn main() {
    let nums = (0..5).into_iter();
    nums.for_each(|n| {
        let progress = "*".repeat(n);
        println!("{}{}", CLEAR_TERMINAL, progress);
        sleep(Duration::from_secs(1));
    });
}

The result was that whole aggregated lines appeared after all the process had been done.

image

But actually what i expected was that, every second, the terminal cleared and the * was increasing up to ****.

The :run-shell-command is inconvenient in that:

  • it should wait until the command done
  • the output might be able to be different
  • if the command failed, the only Command failed phrase shows up at the bottom so cannot know what went wrong with it.

Request

Popup terminal like vim-floaterm plugin

@seongs1024 seongs1024 added the C-enhancement Category: Improvements label Jul 22, 2022
@sudormrfbin
Copy link
Member

Duplicate of #1976

@sudormrfbin sudormrfbin marked this as a duplicate of #1976 Jul 22, 2022
@sudormrfbin sudormrfbin closed this as not planned Won't fix, can't repro, duplicate, stale Jul 22, 2022
@sudormrfbin sudormrfbin added the R-duplicate Duplicated issue: please refer to the linked issue label Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

2 participants