-
-
Notifications
You must be signed in to change notification settings - Fork 638
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When I map "r" to either one of the three options I mentioned in the title what happens is that upon pressing "r" when the cursor is over a file the file opens in a new tab instead of a renaming option being prompted to me. I use the dressing.nvim plugin too by the way.
Neovim version
NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3
Operating system and version
Linux ubuntu 20.04 lts
nvim-tree version
latest as updated by Lazy.nvim
Clean room replication
view = {
width = 30,
side = "left",
mappings = {
list = {
{ key = { "l", "<CR>", "o" }, cb = tree_cb("edit") },
{ key = "h", cb = tree_cb("close_node") },
{ key = "v", cb = tree_cb("vsplit") },
{ key = "r", action = "rename_relative" },
},
},
}
### Steps to reproduce
1 -> open nvim-tree
2 -> press the key "r" with the cursor over a filename
### Expected behavior
Being prompted to fill the new filename in order for it to be renamed.
Specifically, only the basename should show with the rename_root or rename_basename or rename_relative (was't clear for me which of them to use so I tried all of them) instead of the full path file name.
### Actual behavior
All that happens is the file under the cursor opens in a new tab, just like as if I was pressing enter or "o".
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working