We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d52fdeb commit cbdaf69Copy full SHA for cbdaf69
lua/nvim-tree/marks/bulk-move.lua
@@ -3,6 +3,7 @@ local core = require "nvim-tree.core"
3
local utils = require "nvim-tree.utils"
4
local rename_file = require "nvim-tree.actions.fs.rename-file"
5
local notify = require "nvim-tree.notify"
6
+local lib = require "nvim-tree.lib"
7
8
local M = {
9
config = {},
@@ -14,9 +15,12 @@ function M.bulk_move()
14
15
return
16
end
17
18
+ local node_at_cursor = lib.get_node_at_cursor()
19
+ local default_path = node_at_cursor and node_at_cursor.absolute_path or core.get_cwd()
20
+
21
local input_opts = {
22
prompt = "Move to: ",
- default = core.get_cwd(),
23
+ default = default_path,
24
completion = "dir",
25
}
26
0 commit comments