no next floating pane keyboard shortcut
This commit is contained in:
@@ -37,7 +37,6 @@ public record AppConfig(
|
||||
"navigate_right",
|
||||
"toggle_floating",
|
||||
"new_pane",
|
||||
"next_floating",
|
||||
"close_pane",
|
||||
"new_tab",
|
||||
"previous_tab",
|
||||
@@ -96,7 +95,6 @@ public record AppConfig(
|
||||
Map.entry("navigate_right", KeyBinding.parse("ALT+L")),
|
||||
Map.entry("toggle_floating", KeyBinding.parse("ALT+F")),
|
||||
Map.entry("new_pane", KeyBinding.parse("ALT+N")),
|
||||
Map.entry("next_floating", KeyBinding.parse("ALT+F12")),
|
||||
Map.entry("close_pane", KeyBinding.parse("ALT+X")),
|
||||
Map.entry("new_tab", KeyBinding.parse("ALT+A")),
|
||||
Map.entry("previous_tab", KeyBinding.parse("ALT+SHIFT+H")),
|
||||
|
||||
@@ -111,14 +111,6 @@ public final class Compositor {
|
||||
markSceneDirty();
|
||||
}
|
||||
|
||||
public void nextFloatingPane() {
|
||||
if (isEmpty()) {
|
||||
return;
|
||||
}
|
||||
currentTab().nextFloatingPane();
|
||||
markSceneDirty();
|
||||
}
|
||||
|
||||
public void closeActivePane() {
|
||||
if (isEmpty()) {
|
||||
return;
|
||||
|
||||
@@ -70,9 +70,6 @@ public final class Main extends Application {
|
||||
} else if (config.keybindings().get("new_pane").matches(event)) {
|
||||
compositor.createPane();
|
||||
event.consume();
|
||||
} else if (config.keybindings().get("next_floating").matches(event)) {
|
||||
compositor.nextFloatingPane();
|
||||
event.consume();
|
||||
} else if (config.keybindings().get("close_pane").matches(event)) {
|
||||
compositor.closeActivePane();
|
||||
event.consume();
|
||||
|
||||
@@ -153,16 +153,6 @@ final class Tab implements AutoCloseable {
|
||||
}
|
||||
}
|
||||
|
||||
void nextFloatingPane() {
|
||||
if (floating.isEmpty()) {
|
||||
createFloatingPane();
|
||||
return;
|
||||
}
|
||||
floatingVisible = true;
|
||||
int current = floating.indexOf(active); // -1 when the active pane is tiled
|
||||
setActive(floating.get((current + 1 + floating.size()) % floating.size()));
|
||||
}
|
||||
|
||||
void closeActivePane() {
|
||||
TerminalPane closing = active;
|
||||
boolean wasFloating = floating.remove(closing);
|
||||
|
||||
Reference in New Issue
Block a user