mirror of
https://github.com/xpipe-io/xpipe.git
synced 2025-04-17 01:33:36 +00:00
Rework
This commit is contained in:
parent
85617ee01c
commit
9892fc7564
6 changed files with 19 additions and 8 deletions
|
@ -83,7 +83,8 @@ public final class BrowserConnectionListComp extends SimpleComp {
|
|||
busyEntries.remove(selectedAction);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
false);
|
||||
|
||||
var r = section.vgrow().createRegion();
|
||||
r.getStyleClass().add("bookmark-list");
|
||||
|
|
|
@ -94,6 +94,10 @@ public class StoreChoiceComp<T extends DataStore> extends SimpleComp {
|
|||
&& e.getValidity().isUsable()
|
||||
&& (applicableCheck == null || applicableCheck.test(e.ref()));
|
||||
};
|
||||
|
||||
var applicableCount = StoreViewState.get().getAllEntries().getList().stream().filter(applicable).count();
|
||||
var initialExpanded = applicableCount < 20;
|
||||
|
||||
var section = new StoreSectionMiniComp(
|
||||
StoreSection.createTopLevel(
|
||||
StoreViewState.get().getAllEntries(),
|
||||
|
@ -112,7 +116,8 @@ public class StoreChoiceComp<T extends DataStore> extends SimpleComp {
|
|||
this.selected.setValue(sec.getWrapper().getEntry().ref());
|
||||
popover.hide();
|
||||
}
|
||||
});
|
||||
},
|
||||
initialExpanded);
|
||||
var category = new DataStoreCategoryChoiceComp(
|
||||
initialCategory != null ? initialCategory.getRoot() : null,
|
||||
StoreViewState.get().getActiveCategory(),
|
||||
|
|
|
@ -21,16 +21,20 @@ public class StoreSectionMiniComp extends StoreSectionBaseComp {
|
|||
private final BooleanProperty expanded;
|
||||
private final BiConsumer<StoreSection, Comp<CompStructure<Button>>> augment;
|
||||
private final Consumer<StoreSection> action;
|
||||
private final boolean forceInitialExpand;
|
||||
|
||||
public StoreSectionMiniComp(
|
||||
StoreSection section,
|
||||
BiConsumer<StoreSection, Comp<CompStructure<Button>>> augment,
|
||||
Consumer<StoreSection> action) {
|
||||
Consumer<StoreSection> action,
|
||||
boolean forceInitialExpand
|
||||
) {
|
||||
super(section);
|
||||
this.augment = augment;
|
||||
this.action = action;
|
||||
this.forceInitialExpand = forceInitialExpand;
|
||||
this.expanded = new SimpleBooleanProperty(section.getWrapper() == null
|
||||
|| section.getWrapper().getExpanded().getValue());
|
||||
|| section.getWrapper().getExpanded().getValue() || forceInitialExpand);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -71,7 +75,7 @@ public class StoreSectionMiniComp extends StoreSectionBaseComp {
|
|||
}
|
||||
|
||||
var content =
|
||||
createChildrenList(c -> new StoreSectionMiniComp(c, this.augment, this.action), Bindings.not(expanded));
|
||||
createChildrenList(c -> new StoreSectionMiniComp(c, this.augment, this.action, this.forceInitialExpand), Bindings.not(expanded));
|
||||
list.add(content);
|
||||
|
||||
var full = new VerticalComp(list);
|
||||
|
|
|
@ -16,7 +16,7 @@ public class ZellijTerminalMultiplexer implements TerminalMultiplexer {
|
|||
|
||||
@Override
|
||||
public String getDocsLink() {
|
||||
return "https://zellij.dev/documentation/creating-a-layout.html#default-tab-template";
|
||||
return "https://zellij.dev/";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
2
dist/changelogs/16.0.md
vendored
2
dist/changelogs/16.0.md
vendored
|
@ -18,7 +18,7 @@ There is also now support for custom prompts with starship, oh-my-posh, and oh-m
|
|||
|
||||
You can now run custom init commands for the terminal session to configure the terminal appearance specific to XPipe.
|
||||
|
||||
On Windows, you now have the ability to use a WSL or Cygwin environment as the terminal environment, allowing you to use the new terminal multiplexer integration seamlessly on Windows as well.
|
||||
On Windows, you now have the ability to use a WSL environment as the terminal environment, allowing you to use the new terminal multiplexer integration seamlessly on Windows as well.
|
||||
|
||||
## Password managers
|
||||
|
||||
|
|
3
lang/strings/translations_en.properties
generated
3
lang/strings/translations_en.properties
generated
|
@ -1370,7 +1370,8 @@ passwordManagerCommandDescription=The custom command to execute to fetch passwor
|
|||
chooseTemplate=Choose template
|
||||
keePassXcPlaceholder=KeePassXC entry URL
|
||||
terminalEnvironment=Terminal environment
|
||||
terminalEnvironmentDescription=In case you want to use features of a local Linux-based environment for your terminal customization, e.g. WSL, or Cygwin, you can use them as the terminal environment.\n\nAny custom terminal init commands and terminal multiplexer configuration will then be run in this environment.
|
||||
#force
|
||||
terminalEnvironmentDescription=In case you want to use features of a local Linux-based WSL environment for your terminal customization, you can use them as the terminal environment.\n\nAny custom terminal init commands and terminal multiplexer configuration will then be run in this WSL distribution.
|
||||
terminalInitScript=Terminal init script
|
||||
terminalInitScriptDescription=Commands to run in the terminal environment prior to the connection being launched. You can use this to configure the terminal environment on startup.
|
||||
terminalMultiplexer=Terminal multiplexer
|
||||
|
|
Loading…
Add table
Reference in a new issue