mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-29 08:34:50 +02:00
Merge pull request #10 from 45Drives/dev-josh
Set default value in rename prompt to current filename
This commit is contained in:
commit
98014fc863
10
README.md
10
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 <version>` (v0.2.1 is latest)
|
||||
1. `$ git checkout <version>` (v0.2.2 is latest)
|
||||
1. `# make install`
|
||||
## From 45Drives Repositories
|
||||
### Ubuntu
|
||||
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
cockpit-navigator (0.2.2-1focal) focal; urgency=low
|
||||
|
||||
* Set default value in rename prompt to current filename.
|
||||
|
||||
-- Josh Boudreau <jboudreau@45drives.com> 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.
|
||||
|
@ -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 <jboudreau@45drives.com> 0.2.2-1
|
||||
- Set default value in rename prompt to current filename.
|
||||
* Wed Jun 02 2021 Josh Boudreau <jboudreau@45drives.com> 0.2.1-1
|
||||
- Rename "Move" to "Cut" in right click context menu.
|
||||
- Improve pasting files after copying/cutting with a custom python
|
||||
|
@ -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("/")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user