From 78b798adbd9fc3b34d2a42c899685935af4f2869 Mon Sep 17 00:00:00 2001 From: joshuaboud Date: Wed, 2 Jun 2021 12:54:49 -0300 Subject: [PATCH 1/3] set default name in rename prompt to current name --- navigator/navigator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navigator/navigator.js b/navigator/navigator.js index 68818a9..1ee51d6 100644 --- a/navigator/navigator.js +++ b/navigator/navigator.js @@ -774,7 +774,7 @@ class NavContextMenu { rename() { this.hide(); - var new_name = window.prompt("New Name: "); + var new_name = window.prompt("New Name: ", this.target.filename()); if (new_name === null) return; if (new_name.includes("/")) { From 8955217c60ea31e3e5ac136e230e7871e27efb32 Mon Sep 17 00:00:00 2001 From: joshuaboud Date: Wed, 2 Jun 2021 12:55:55 -0300 Subject: [PATCH 2/3] update changelog --- debian/changelog | 6 ++++++ el/cockpit-navigator.spec | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 60a0a5b..aae5e86 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +cockpit-navigator (0.2.2-1focal) focal; urgency=low + + * Set default value in rename prompt to current filename. + + -- Josh Boudreau Wed, 02 Jun 2021 12:53:00 -0300 + cockpit-navigator (0.2.1-1focal) focal; urgency=medium * Rename "Move" to "Cut" in right click context menu. diff --git a/el/cockpit-navigator.spec b/el/cockpit-navigator.spec index cd04016..a3eddef 100644 --- a/el/cockpit-navigator.spec +++ b/el/cockpit-navigator.spec @@ -1,5 +1,5 @@ Name: cockpit-navigator -Version: 0.2.1 +Version: 0.2.2 Release: 1%{?dist} Summary: A File System Browser for Cockpit. License: GPL-3.0+ @@ -32,6 +32,8 @@ rm -rf %{buildroot} /usr/share/cockpit/navigator/* %changelog +* Wed Jun 02 2021 Josh Boudreau 0.2.2-1 +- Set default value in rename prompt to current filename. * Wed Jun 02 2021 Josh Boudreau 0.2.1-1 - Rename "Move" to "Cut" in right click context menu. - Improve pasting files after copying/cutting with a custom python From e387f77688bf1b2841c39d839fa6dffb3e3820a2 Mon Sep 17 00:00:00 2001 From: joshuaboud Date: Wed, 2 Jun 2021 12:57:14 -0300 Subject: [PATCH 3/3] update install URLs --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 54bb1e0..4be56b0 100644 --- a/README.md +++ b/README.md @@ -19,17 +19,17 @@ With no command line use needed, you can: # Installation ## From Github Release ### Ubuntu -1. `$ wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.2.1/cockpit-navigator_0.2.1-1focal_all.deb` -1. `# apt install ./cockpit-navigator_0.2.1-1focal_all.deb` +1. `$ wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.2.2/cockpit-navigator_0.2.2-1focal_all.deb` +1. `# apt install ./cockpit-navigator_0.2.2-1focal_all.deb` ### EL7 -1. `# yum install https://github.com/45Drives/cockpit-navigator/releases/download/v0.2.1/cockpit-navigator-0.2.1-1.el7.noarch.rpm` +1. `# yum install https://github.com/45Drives/cockpit-navigator/releases/download/v0.2.2/cockpit-navigator-0.2.2-1.el7.noarch.rpm` ### EL8 -1. `# dnf install https://github.com/45Drives/cockpit-navigator/releases/download/v0.2.1/cockpit-navigator-0.2.1-1.el8.noarch.rpm` +1. `# dnf install https://github.com/45Drives/cockpit-navigator/releases/download/v0.2.2/cockpit-navigator-0.2.2-1.el8.noarch.rpm` ## From Source 1. Ensure dependencies are installed: `cockpit`, `python3`, `rsync`. 1. `$ git clone https://github.com/45Drives/cockpit-navigator.git` 1. `$ cd cockpit-navigator` -1. `$ git checkout ` (v0.2.1 is latest) +1. `$ git checkout ` (v0.2.2 is latest) 1. `# make install` ## From 45Drives Repositories ### Ubuntu