Skip to content

Commit

Permalink
Improve message when copying to system clipboard
Browse files Browse the repository at this point in the history
This is to avoid confusion: New users coming from tmux might expect
internal copy/paste buffers in zellij which are separate from the system
clipboard.
It may therefore be surprising where the copied text ends up and that
zellij has no dedicated "paste" functionality.

Related issues: zellij-org#1288 zellij-org#1018
  • Loading branch information
raphCode committed Apr 13, 2022
1 parent bf21442 commit 0550a51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions default-plugins/status-bar/src/second_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@ pub fn text_copied_hint(palette: &Palette, copy_destination: CopyDestination) ->
let hint = match copy_destination {
CopyDestination::Command => "Text piped to external command",
#[cfg(not(target_os = "macos"))]
CopyDestination::Primary => "Text copied to primary selection",
CopyDestination::Primary => "Text copied to system primary selection",
#[cfg(target_os = "macos")] // primary selection does not exist on macos
CopyDestination::Primary => "Text copied to clipboard",
CopyDestination::System => "Text copied to clipboard",
CopyDestination::Primary => "Text copied to system clipboard",
CopyDestination::System => "Text copied to system clipboard",
};
LinePart {
part: Style::new().fg(green_color).bold().paint(hint).to_string(),
Expand Down

0 comments on commit 0550a51

Please sign in to comment.