utils/cli: Add move-tab action (#3244)
* utils/cli: Add `move-tab` action which was previously only exposed through keybindings. * CHANGELOG: Add PR 3244.
This commit is contained in:
parent
d267948689
commit
cf18fb3867
3 changed files with 6 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||||
* fix(plugins): properly serialize remote urls (https://github.com/zellij-org/zellij/pull/3224)
|
* fix(plugins): properly serialize remote urls (https://github.com/zellij-org/zellij/pull/3224)
|
||||||
* feat(plugins): add close_self API to allow plugins to close their own instance (https://github.com/zellij-org/zellij/pull/3228)
|
* feat(plugins): add close_self API to allow plugins to close their own instance (https://github.com/zellij-org/zellij/pull/3228)
|
||||||
* feat(plugins): allow plugins to specify `zellij:OWN_URL` as a pipe destination (https://github.com/zellij-org/zellij/pull/3232)
|
* feat(plugins): allow plugins to specify `zellij:OWN_URL` as a pipe destination (https://github.com/zellij-org/zellij/pull/3232)
|
||||||
|
* feat(cli): Add `move-tab` action (https://github.com/zellij-org/zellij/pull/3244)
|
||||||
|
|
||||||
## [0.39.2] - 2023-11-29
|
## [0.39.2] - 2023-11-29
|
||||||
* fix(cli): typo in cli help (https://github.com/zellij-org/zellij/pull/2906)
|
* fix(cli): typo in cli help (https://github.com/zellij-org/zellij/pull/2906)
|
||||||
|
|
|
||||||
|
|
@ -617,6 +617,10 @@ pub enum CliAction {
|
||||||
#[clap(short, long, value_parser, requires("layout"))]
|
#[clap(short, long, value_parser, requires("layout"))]
|
||||||
cwd: Option<PathBuf>,
|
cwd: Option<PathBuf>,
|
||||||
},
|
},
|
||||||
|
/// Move the focused tab in the specified direction. [right|left]
|
||||||
|
MoveTab {
|
||||||
|
direction: Direction,
|
||||||
|
},
|
||||||
PreviousSwapLayout,
|
PreviousSwapLayout,
|
||||||
NextSwapLayout,
|
NextSwapLayout,
|
||||||
/// Query all tab names
|
/// Query all tab names
|
||||||
|
|
|
||||||
|
|
@ -325,6 +325,7 @@ impl Action {
|
||||||
CliAction::MoveFocusOrTab { direction } => Ok(vec![Action::MoveFocusOrTab(direction)]),
|
CliAction::MoveFocusOrTab { direction } => Ok(vec![Action::MoveFocusOrTab(direction)]),
|
||||||
CliAction::MovePane { direction } => Ok(vec![Action::MovePane(direction)]),
|
CliAction::MovePane { direction } => Ok(vec![Action::MovePane(direction)]),
|
||||||
CliAction::MovePaneBackwards => Ok(vec![Action::MovePaneBackwards]),
|
CliAction::MovePaneBackwards => Ok(vec![Action::MovePaneBackwards]),
|
||||||
|
CliAction::MoveTab { direction } => Ok(vec![Action::MoveTab(direction)]),
|
||||||
CliAction::Clear => Ok(vec![Action::ClearScreen]),
|
CliAction::Clear => Ok(vec![Action::ClearScreen]),
|
||||||
CliAction::DumpScreen { path, full } => Ok(vec![Action::DumpScreen(
|
CliAction::DumpScreen { path, full } => Ok(vec![Action::DumpScreen(
|
||||||
path.as_os_str().to_string_lossy().into(),
|
path.as_os_str().to_string_lossy().into(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue