Remove mirror code

This commit is contained in:
Greg Shuflin committed 2024-04-03 09:33:52 -07:00
1 parent 7963d61e4f
commit 3b479f3de7
3 files changed
-10

No files matched your search

-1
View File
@@ -24,7 +24,6 @@ impl Configuration {
Mode::Insert | Mode::Command => InsertCharacter(ch),
Mode::Normal if ch == 'i' => TransitionToMode(Mode::Insert),
Mode::Normal if ch == 'q' => Quit,
Mode::Normal if ch == 'm' => Mirror,
Mode::Normal if ch == 'h' => MoveCursor(CursorMovement::OppositeTextDirection),
Mode::Normal if ch == 'j' => MoveCursor(CursorMovement::NextLine),
Mode::Normal if ch == 'k' => MoveCursor(CursorMovement::PrevLine),
-6
View File
@@ -48,8 +48,6 @@ pub(crate) enum Mode {
}
pub(crate) struct EditorCore {
pub mirrored: bool,
// buffer-mgmt-related stuff - TODO move this into a substructure
buffers: HashMap<BufferId, TextBuffer>,
pane_layout: PaneLayout,
@@ -73,7 +71,6 @@ impl EditorCore {
let (command_tx, command_output_rx) = tokio::sync::mpsc::unbounded_channel();
let core = Self {
mirrored: true,
buffers,
pane_layout,
active_buffer,
@@ -168,9 +165,6 @@ impl EditorCore {
let mode = self.mode;
match action {
Mirror => {
self.mirrored = !self.mirrored;
}
Command(command) => match command {
CommandAction::Execute => self.commands.execute(),
CommandAction::Tab => self.commands.tab(),
-3
View File
@@ -26,9 +26,6 @@ pub(crate) enum EditorAction {
/// Quit the editor
Quit,
/// Toggle mirror
Mirror,
/// Show or hide the popup help
PopupHelp(bool),
}