Skip to content

Commit

Permalink
Fix error when deleting files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolai Søborg committed Feb 14, 2017
1 parent 982ecbe commit d3c8c54
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

A simple plugin that allows for easy navigation of a file tree.

Place this folder in `~/.config/micro/plugins/` and restart micro.
Place this folder in `~/.config/micro/plugins/` and restart micro:
> git clone https://github.com/NicolaiSoeborg/filetree-plugin.git ~/.config/micro/plugins/filetree
Now it will be possible to open a navigation panel by running the command `tree` (ctrl + e).

Expand All @@ -11,8 +12,12 @@ Now it will be possible to open a navigation panel by running the command `tree`

![filetree cli](https://i.imgur.com/MBou7Hb.png "Filetree CLI")

## Issues

## Known Issues
Please use the issue tracker to fill issues or feature requests!


### Known Issues

* Limited Windows support (also; can only read files from `C:`)

5 changes: 3 additions & 2 deletions filetree.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "1.3.0"
VERSION = "1.3.1"

treeView = nil
cwd = DirectoryName(".")
Expand Down Expand Up @@ -84,9 +84,10 @@ function preDelete(view)
command = isWin and "del" or "rm -I"
end
command = command .. " " .. (isWin and driveLetter or "") .. JoinPaths(cwd, selected)

local yes, cancel = messenger:YesNoPrompt(question)
if not cancel and yes then
io.popen(command .. " " .. selected):close()
os.execute(command)
RefreshTree()
end
return false
Expand Down
4 changes: 2 additions & 2 deletions repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"Tags": ["filetree", "file", "manager"],
"Versions": [
{
"Version": "1.3.0",
"Url": "https://github.com/NicolaiSoeborg/filetree-plugin/archive/v1.3.0.zip",
"Version": "1.3.1",
"Url": "https://github.com/NicolaiSoeborg/filetree-plugin/archive/v1.3.1.zip",
"Require": {
"micro": ">=1.0.0"
}
Expand Down

0 comments on commit d3c8c54

Please sign in to comment.