summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyohei Uto <im@kyoheiu.dev>2023-08-25 05:11:35 +0900
committerKyohei Uto <im@kyoheiu.dev>2023-08-25 05:11:35 +0900
commit45521dc6ce5dd5f4281aba16782c1f5c142fe0b0 (patch)
treea4bf04313fbd089c7b1434b93a7f92e75a53b3ac
parentf53e12ef50c6c73088aab2c8b279604f423a3fa2 (diff)
Remove unused append mode
-rw-r--r--src/run.rs54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/run.rs b/src/run.rs
index 9cf0a06..44cbace 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -2209,60 +2209,6 @@ fn _run(mut state: State, session_path: PathBuf) -> Result<(), FxError> {
}
}
- //Add new temp file or directory.
- //It has to feel like more "modal", so I comment this out for now.
- // KeyCode::Char('a') => {
- // to_info_line();
- // clear_current_line();
- // print!("a");
- // show_cursor();
- // screen.flush()?;
-
- // if let Event::Key(KeyEvent { code, .. }) = event::read()? {
- // match code {
- // //Add new file
- // KeyCode::Char('f') => {
- // hide_cursor();
- // match state.create_temp(false) {
- // Err(e) => {
- // print_warning(e, state.layout.y);
- // continue;
- // }
- // Ok(p) => {
- // state.reload(state.layout.y)?;
- // print_info(
- // format!("New file {} added.", p.display()),
- // state.layout.y,
- // );
- // }
- // }
- // }
- // //Add new directory
- // KeyCode::Char('d') => {
- // hide_cursor();
- // match state.create_temp(true) {
- // Err(e) => {
- // print_warning(e, state.layout.y);
- // continue;
- // }
- // Ok(p) => {
- // state.reload(state.layout.y)?;
- // print_info(
- // format!("New dir {} added.", p.display()),
- // state.layout.y,
- // );
- // }
- // }
- // }
- // _ => {
- // go_to_and_rest_info();
- // hide_cursor();
- // state.move_cursor(state.layout.y);
- // }
- // }
- // }
- // }
-
//exit by ZZ
KeyCode::Char('Z') => {
//In visual mode, this is disabled.