From 3b313855b820f060f05813cd1b3a58355edcff5d Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 5 Apr 2023 14:41:02 +0000 Subject: [PATCH] [release] --- .../io/xpipe/app/browser/OpenFileSystemComp.java | 6 +++++- .../io/xpipe/app/browser/OpenFileSystemModel.java | 4 ++-- dist/changelogs/0.5.33.md | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 dist/changelogs/0.5.33.md diff --git a/app/src/main/java/io/xpipe/app/browser/OpenFileSystemComp.java b/app/src/main/java/io/xpipe/app/browser/OpenFileSystemComp.java index cbeaaaad..4ee5252c 100644 --- a/app/src/main/java/io/xpipe/app/browser/OpenFileSystemComp.java +++ b/app/src/main/java/io/xpipe/app/browser/OpenFileSystemComp.java @@ -5,13 +5,15 @@ import io.xpipe.app.fxcomps.SimpleComp; import io.xpipe.app.fxcomps.impl.PrettyImageComp; import io.xpipe.app.fxcomps.impl.TextFieldComp; import io.xpipe.app.fxcomps.util.PlatformThread; -import io.xpipe.core.impl.FileNames; +import io.xpipe.app.fxcomps.util.Shortcuts; import javafx.beans.property.BooleanProperty; import javafx.beans.property.SimpleBooleanProperty; import javafx.beans.property.SimpleStringProperty; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.control.*; +import javafx.scene.input.KeyCode; +import javafx.scene.input.KeyCodeCombination; import javafx.scene.layout.*; import org.kordamp.ikonli.feather.Feather; import org.kordamp.ikonli.javafx.FontIcon; @@ -51,6 +53,7 @@ public class OpenFileSystemComp extends SimpleComp { var refreshBtn = new Button(null, new FontIcon("mdmz-refresh")); refreshBtn.setOnAction(e -> model.refresh()); + Shortcuts.addShortcut(refreshBtn, new KeyCodeCombination(KeyCode.F5)); var terminalBtn = new Button(null, new FontIcon("mdi2c-code-greater-than")); terminalBtn.setOnAction(e -> model.openTerminalAsync(model.getCurrentPath().get())); @@ -61,6 +64,7 @@ public class OpenFileSystemComp extends SimpleComp { creatingProperty.set(true); }); addBtn.disableProperty().bind(PlatformThread.sync(model.getNoDirectory())); + Shortcuts.addShortcut(addBtn, new KeyCodeCombination(KeyCode.PLUS)); var filter = new FileFilterComp(model.getFilter()).createRegion(); diff --git a/app/src/main/java/io/xpipe/app/browser/OpenFileSystemModel.java b/app/src/main/java/io/xpipe/app/browser/OpenFileSystemModel.java index 657db3e8..b63628cf 100644 --- a/app/src/main/java/io/xpipe/app/browser/OpenFileSystemModel.java +++ b/app/src/main/java/io/xpipe/app/browser/OpenFileSystemModel.java @@ -292,10 +292,10 @@ final class OpenFileSystemModel { } public void back() { - history.back().ifPresent(currentPath::set); + history.back().ifPresent(s -> cd(s)); } public void forth() { - history.forth().ifPresent(currentPath::set); + history.forth().ifPresent(s -> cd(s)); } } diff --git a/dist/changelogs/0.5.33.md b/dist/changelogs/0.5.33.md new file mode 100644 index 00000000..6e4643a4 --- /dev/null +++ b/dist/changelogs/0.5.33.md @@ -0,0 +1,14 @@ +## Changes in 0.5.33 +- Fix backward and forward buttons not working in file browser +- Add F5 shortcut to refresh file browser +- Add + shortcut to create a file/directory +- Add automated VirusTotal analysis to download page + +## Changes in 0.5.32 +- Add file type icons to file browser +- Add shift-select ability to select range of files to file browser +- Fix various file browser bugs +- Improve memory footprint +- Properly update last used time for connections +- Show changelog when prompting for an update installation +- Improve icon semantics in connection overview