aboutsummaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-04-29 15:25:55 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:48:16 +0530
commit9110e444b8ef2f96a0386b7c5e65283a2b5456c0 (patch)
tree8ee2bd3e08f0b8a3594a9de6ac942056042e315d /src/server
parentRefactor CommandIsExecuting to have a single variant (diff)
downloadsl0ppij-9110e444b8ef2f96a0386b7c5e65283a2b5456c0.tar.gz
sl0ppij-9110e444b8ef2f96a0386b7c5e65283a2b5456c0.tar.xz
sl0ppij-9110e444b8ef2f96a0386b7c5e65283a2b5456c0.zip
remove Split, OpenFile and MoveFocus from CliArgs
Diffstat (limited to 'src/server')
-rw-r--r--src/server/mod.rs40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/server/mod.rs b/src/server/mod.rs
index 904093f0..ca34861b 100644
--- a/src/server/mod.rs
+++ b/src/server/mod.rs
@@ -35,10 +35,6 @@ use crate::utils::consts::ZELLIJ_IPC_PIPE;
/// ones sent by client to server
#[derive(Serialize, Deserialize, Debug, Clone)]
pub enum ServerInstruction {
- OpenFile(PathBuf),
- SplitHorizontally,
- SplitVertically,
- MoveFocus,
TerminalResize(PositionAndSize),
NewClient(PositionAndSize),
Action(Action),
@@ -164,42 +160,6 @@ fn handle_client(
send_server_instructions.send(instruction).unwrap();
break;
}
- ServerInstruction::OpenFile(file_name) => {
- rlocked_sessions
- .as_ref()
- .unwrap()
- .send_pty_instructions
- .send(PtyInstruction::SpawnTerminal(Some(file_name)))
- .unwrap();
- break;
- }
- ServerInstruction::SplitHorizontally => {
- rlocked_sessions
- .as_ref()
- .unwrap()
- .send_pty_instructions
- .send(PtyInstruction::SpawnTerminalHorizontally(None))
- .unwrap();
- break;
- }
- ServerInstruction::SplitVertically => {
- rlocked_sessions
- .as_ref()
- .unwrap()
- .send_pty_instructions
- .send(PtyInstruction::SpawnTerminalVertically(None))
- .unwrap();
- break;
- }
- ServerInstruction::MoveFocus => {
- rlocked_sessions
- .as_ref()
- .unwrap()
- .send_screen_instructions
- .send(ScreenInstruction::FocusNextPane)
- .unwrap();
- break;
- }
ServerInstruction::Action(action) => {
route_action(action, rlocked_sessions.as_ref().unwrap());
}