mirror of
https://github.com/nvim-tree/nvim-tree.lua.git
synced 2026-07-28 07:49:46 +05:30
Compare commits
46 Commits
v1.18
...
feat/add-d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee173eb666 | ||
|
|
9cad29b466 | ||
|
|
91a288ca57 | ||
|
|
582bc35ce2 | ||
|
|
cb58a0721c | ||
|
|
4b13775b45 | ||
|
|
4fcbafea04 | ||
|
|
1b6737155a | ||
|
|
30c5036368 | ||
|
|
f10f779baf | ||
|
|
062a2d2800 | ||
|
|
4bd13ec53b | ||
|
|
fa2b18661c | ||
|
|
5eba88e119 | ||
|
|
0522defa11 | ||
|
|
9c782a19ae | ||
|
|
f8fa340acc | ||
|
|
8d1adf0e1d | ||
|
|
b1662a5d06 | ||
|
|
859f733ea3 | ||
|
|
887e6c129e | ||
|
|
6f1b818356 | ||
|
|
356c083687 | ||
|
|
f79cdcb708 | ||
|
|
ba8e7a1c56 | ||
|
|
a7e647bf83 | ||
|
|
4f787e0db3 | ||
|
|
43f01b5281 | ||
|
|
b5750c8c86 | ||
|
|
27f5254cab | ||
|
|
073fac1056 | ||
|
|
0fd8cfadf5 | ||
|
|
a9253ded6f | ||
|
|
77325e556c | ||
|
|
2c56cc6a1a | ||
|
|
885b4d9ec3 | ||
|
|
877e726a77 | ||
|
|
b9e9b7a67c | ||
|
|
38ada46881 | ||
|
|
cdc7b28c76 | ||
|
|
f2269a1be7 | ||
|
|
b98e0c4ba4 | ||
|
|
89edce64c1 | ||
|
|
058e5081cd | ||
|
|
c842a086a3 | ||
|
|
ddbc033b90 |
@@ -1,3 +1,3 @@
|
||||
{
|
||||
".": "1.18.0"
|
||||
".": "1.17.0"
|
||||
}
|
||||
|
||||
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,20 +1,5 @@
|
||||
# Changelog
|
||||
|
||||
## [1.18.0](https://github.com/nvim-tree/nvim-tree.lua/compare/nvim-tree-v1.17.0...nvim-tree-v1.18.0) (2026-07-01)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **#1549:** p will paste files from another nvim-tree instance, gp will cut/paste ([#3336](https://github.com/nvim-tree/nvim-tree.lua/issues/3336)) ([c760c92](https://github.com/nvim-tree/nvim-tree.lua/commit/c760c92667fe5febf99e2a5bb8a543b0208c743b))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **#3312:** correct cursor when full name shown, requires nvim 0.12.2+ ([#3316](https://github.com/nvim-tree/nvim-tree.lua/issues/3316)) ([d277467](https://github.com/nvim-tree/nvim-tree.lua/commit/d277467fc0d1d0e2bca88165a1de6b526f9f6fe8))
|
||||
* **#3324:** deprecated BufModifiedSet event replaced by OptionSet event for Nvim 0.13+ ([#3325](https://github.com/nvim-tree/nvim-tree.lua/issues/3325)) ([f9bfc00](https://github.com/nvim-tree/nvim-tree.lua/commit/f9bfc0059eca24546b69a7006110463da4808f8f))
|
||||
* **#3327:** pass nvim_tree.api.node.open.Opts to all applicable nvim_tree.api.node.open function ([#3329](https://github.com/nvim-tree/nvim-tree.lua/issues/3329)) ([07f541f](https://github.com/nvim-tree/nvim-tree.lua/commit/07f541fcaa4a5ae019598240362449ab7e9812b3))
|
||||
* **full-name:** lower `zindex` to get consistent cursor shape ([d277467](https://github.com/nvim-tree/nvim-tree.lua/commit/d277467fc0d1d0e2bca88165a1de6b526f9f6fe8))
|
||||
|
||||
## [1.17.0](https://github.com/nvim-tree/nvim-tree.lua/compare/nvim-tree-v1.16.0...nvim-tree-v1.17.0) (2026-04-07)
|
||||
|
||||
|
||||
|
||||
@@ -181,10 +181,7 @@ end
|
||||
---@param node_or_nodes Node|Node[]
|
||||
---@return boolean
|
||||
function Clipboard:is_nodes_array(node_or_nodes)
|
||||
if type(node_or_nodes) == "table" and node_or_nodes.is and node_or_nodes:is(Node) then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
return type(node_or_nodes) == "table" and node_or_nodes.is and node_or_nodes:is(Node)
|
||||
end
|
||||
|
||||
---Copy one or more nodes
|
||||
@@ -377,7 +374,7 @@ function Clipboard:do_paste(node, action, action_fn)
|
||||
if not stats and err_name ~= "ENOENT" then
|
||||
log.line("copy_paste", "do_paste fs_stat '%s' failed '%s'", destination, err)
|
||||
notify.error("Could not " .. action .. " " .. notify.render_path(destination) .. " - " .. (err or "???"))
|
||||
if is_local == false then
|
||||
if ~is_local then
|
||||
self:destroy_nodes(clip)
|
||||
end
|
||||
return
|
||||
@@ -402,7 +399,18 @@ function Clipboard:do_paste(node, action, action_fn)
|
||||
|
||||
-- Paste non-conflicting items immediately
|
||||
for _, item in ipairs(no_conflict) do
|
||||
do_paste_one(item.node.absolute_path, item.dest, action, action_fn)
|
||||
local absolute_path = item.node.absolute_path
|
||||
if absolute_path:sub(1, #"http") == "http" then
|
||||
notify.info("Downloading " .. absolute_path .. " to " .. item.dest .. "...")
|
||||
local result = vim.fn.system({ "curl", "-sL", absolute_path, "-o", item.dest })
|
||||
if vim.v.shell_error == 0 then
|
||||
notify.info("Downloaded " .. absolute_path .. " successfully at " .. item.dest)
|
||||
else
|
||||
notify.error("Error downloading " .. absolute_path .. ": " .. result)
|
||||
end
|
||||
else
|
||||
do_paste_one(absolute_path, item.dest, action, action_fn)
|
||||
end
|
||||
end
|
||||
|
||||
-- Resolve conflicts in batch
|
||||
@@ -412,7 +420,7 @@ function Clipboard:do_paste(node, action, action_fn)
|
||||
self:finish_paste(action)
|
||||
end
|
||||
|
||||
if is_local == false then
|
||||
if ~is_local then
|
||||
self:destroy_nodes(clip)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user