Skip to main content

nu_experimental/options/
native_clip.rs

1use crate::*;
2
3/// Enable `clip copy` and `clip paste` commands that use native API.
4///
5/// These commands do not use the OSC52 code to tell the terminal to copy data but rather implement
6/// them directly in Rust.
7pub static NATIVE_CLIP: ExperimentalOption = ExperimentalOption::new(&NativeClip);
8
9// No documentation needed here since this type isn't public.
10// The static above provides all necessary details.
11struct NativeClip;
12
13impl ExperimentalOptionMarker for NativeClip {
14    const IDENTIFIER: &'static str = "native-clip";
15    const DESCRIPTION: &'static str = "Adds clipboard commands that implement copy and pasting via native APIs instead of OSC52 codes.";
16    const STATUS: Status = Status::OptIn;
17    const SINCE: Version = (0, 110, 1);
18    const ISSUE: u32 = 17665;
19}