Finish adding debugging command and ability to swap the orientation of a container

This commit is contained in:
Lucas Oskorep
2025-10-17 01:25:47 -04:00
parent c977c61714
commit 5a6c3ccd72
6 changed files with 141 additions and 9 deletions

View File

@@ -58,6 +58,11 @@ export default class aerospike extends Extension {
this.refreshKeybinding('print-tree');
});
this.settings.connect('changed::toggle-orientation', () => {
log(`Toggle orientation keybinding changed to: ${this.settings.get_strv('toggle-orientation')}`);
this.refreshKeybinding('toggle-orientation');
});
this.settings.connect('changed::dropdown-option', () => {
log(`Dropdown option changed to: ${this.settings.get_string('dropdown-option')}`);
});
@@ -98,6 +103,11 @@ export default class aerospike extends Extension {
this.windowManager.printTreeStructure();
});
break;
case 'toggle-orientation':
this.bindKeybinding('toggle-orientation', () => {
this.windowManager.toggleActiveContainerOrientation();
});
break;
}
}
@@ -128,6 +138,10 @@ export default class aerospike extends Extension {
this.bindKeybinding('print-tree', () => {
this.windowManager.printTreeStructure();
});
this.bindKeybinding('toggle-orientation', () => {
this.windowManager.toggleActiveContainerOrientation();
});
}
private bindKeybinding(settingName: string, callback: () => void) {