mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 15:04:36 +03:00
removed deprecated Copy, Paste, PastePrimarySelection actions
These have been deprecated since early 2021; time to remove them and simplify a little.
This commit is contained in:
parent
72da5d161e
commit
6479df63b9
@ -437,10 +437,7 @@ pub enum KeyAssignment {
|
||||
SpawnTab(SpawnTabDomain),
|
||||
SpawnWindow,
|
||||
ToggleFullScreen,
|
||||
Copy,
|
||||
CopyTo(ClipboardCopyDestination),
|
||||
Paste,
|
||||
PastePrimarySelection,
|
||||
PasteFrom(ClipboardPasteSource),
|
||||
ActivateTabRelative(isize),
|
||||
ActivateTabRelativeNoWrap(isize),
|
||||
|
@ -32,6 +32,9 @@ As features stabilize some brief notes about them will accumulate here.
|
||||
* Withdraw DEC private SGR escapes that affect superscript and
|
||||
subscript due to xterm/vim conflict
|
||||
[mintty/#1189](https://github.com/mintty/mintty/issues/1189)
|
||||
* Removed deprecated `Copy`, `Paste` and `PastePrimarySelection` actions. Use
|
||||
[CopyTo](config/lua/keyassignment/CopyTo.md) and
|
||||
[PasteFrom](config/lua/keyassignment/PasteFrom.md) instead.
|
||||
|
||||
#### Updated
|
||||
* Bundled harfbuzz updated to version 6.0.0
|
||||
|
@ -7,6 +7,10 @@ Copy the selection to the clipboard.
|
||||
This action is considered to be deprecated and will be removed in
|
||||
a future release; please use [CopyTo](CopyTo.md) instead.
|
||||
|
||||
*Since: nightly builds only*
|
||||
|
||||
This action has been removed. Please use [CopyTo](CopyTo.md) instead.
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
|
@ -7,6 +7,10 @@ Paste the clipboard to the current pane.
|
||||
This action is considered to be deprecated and will be removed in
|
||||
a future release; please use [PasteFrom](PasteFrom.md) instead.
|
||||
|
||||
*Since: nightly builds only*
|
||||
|
||||
This action has been removed. Please use [PasteFrom](PasteFrom.md) instead.
|
||||
|
||||
## Example
|
||||
|
||||
```lua
|
||||
|
@ -8,6 +8,10 @@ On other systems, this behaves identically to [Paste](Paste.md).
|
||||
This action is considered to be deprecated and will be removed in
|
||||
a future release; please use [PasteFrom](PasteFrom.md) instead.
|
||||
|
||||
*Since: nightly builds only*
|
||||
|
||||
This action has been removed. Please use [PasteFrom](PasteFrom.md) instead.
|
||||
|
||||
## Example
|
||||
|
||||
```lua
|
||||
|
@ -280,13 +280,6 @@ pub fn derive_command_from_key_assignment(action: &KeyAssignment) -> Option<Comm
|
||||
args: &[ArgType::ActivePane],
|
||||
menubar: &["Edit"],
|
||||
},
|
||||
PastePrimarySelection => CommandDef {
|
||||
brief: "Paste primary selection".into(),
|
||||
doc: "Pastes text from the primary selection".into(),
|
||||
keys: vec![],
|
||||
args: &[ArgType::ActivePane],
|
||||
menubar: &[],
|
||||
},
|
||||
CopyTo(ClipboardCopyDestination::PrimarySelection) => CommandDef {
|
||||
brief: "Copy to primary selection".into(),
|
||||
doc: "Copies text to the primary selection".into(),
|
||||
@ -311,13 +304,6 @@ pub fn derive_command_from_key_assignment(action: &KeyAssignment) -> Option<Comm
|
||||
args: &[ArgType::ActivePane],
|
||||
menubar: &["Edit"],
|
||||
},
|
||||
Copy => CommandDef {
|
||||
brief: "Copy to clipboard and primary selection".into(),
|
||||
doc: "Copies text to the clipboard and the primary selection".into(),
|
||||
keys: vec![],
|
||||
args: &[ArgType::ActivePane],
|
||||
menubar: &[],
|
||||
},
|
||||
PasteFrom(ClipboardPasteSource::Clipboard) => CommandDef {
|
||||
brief: "Paste from clipboard".into(),
|
||||
doc: "Pastes text from the clipboard".into(),
|
||||
@ -328,13 +314,6 @@ pub fn derive_command_from_key_assignment(action: &KeyAssignment) -> Option<Comm
|
||||
args: &[ArgType::ActivePane],
|
||||
menubar: &["Edit"],
|
||||
},
|
||||
Paste => CommandDef {
|
||||
brief: "Paste from clipboard".into(),
|
||||
doc: "Pastes text from the clipboard".into(),
|
||||
keys: vec![],
|
||||
args: &[ArgType::ActivePane],
|
||||
menubar: &[],
|
||||
},
|
||||
ToggleFullScreen => CommandDef {
|
||||
brief: "Toggle full screen mode".into(),
|
||||
doc: "Switch between normal and full screen mode".into(),
|
||||
|
@ -28,8 +28,8 @@ use ::wezterm_term::input::{ClickPosition, MouseButton as TMB};
|
||||
use ::window::*;
|
||||
use anyhow::{anyhow, ensure, Context};
|
||||
use config::keyassignment::{
|
||||
ClipboardCopyDestination, ClipboardPasteSource, KeyAssignment, PaneDirection, Pattern,
|
||||
QuickSelectArguments, RotationDirection, SpawnCommand, SplitSize,
|
||||
KeyAssignment, PaneDirection, Pattern, QuickSelectArguments, RotationDirection, SpawnCommand,
|
||||
SplitSize,
|
||||
};
|
||||
use config::{
|
||||
configuration, AudibleBell, ConfigHandle, Dimension, DimensionContext, FrontEndSelection,
|
||||
@ -2328,23 +2328,10 @@ impl TermWindow {
|
||||
ToggleFullScreen => {
|
||||
self.window.as_ref().unwrap().toggle_fullscreen();
|
||||
}
|
||||
Copy => {
|
||||
let text = self.selection_text(pane);
|
||||
self.copy_to_clipboard(
|
||||
ClipboardCopyDestination::ClipboardAndPrimarySelection,
|
||||
text,
|
||||
);
|
||||
}
|
||||
CopyTo(dest) => {
|
||||
let text = self.selection_text(pane);
|
||||
self.copy_to_clipboard(*dest, text);
|
||||
}
|
||||
Paste => {
|
||||
self.paste_from_clipboard(pane, ClipboardPasteSource::Clipboard);
|
||||
}
|
||||
PastePrimarySelection => {
|
||||
self.paste_from_clipboard(pane, ClipboardPasteSource::PrimarySelection);
|
||||
}
|
||||
PasteFrom(source) => {
|
||||
self.paste_from_clipboard(pane, *source);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user