bettertree 1.0.0

An interactive terminal file tree driven like Helix
1
2
3
4
5
6
7
8
9
use std::io::{self, stdout};

use crossterm::clipboard::CopyToClipboard;
use crossterm::execute;

/// Copies through the terminal itself (OSC 52), which also works over SSH and inside tmux.
pub fn copy(text: &str) -> io::Result<()> {
    execute!(stdout(), CopyToClipboard::to_clipboard_from(text))
}