how to start explorer rename (file/dir) in normal mode #2046
-
almost all the time, I (and I assume almost everyone) go into normal mode when renaming file/dir, jump around with b/B/w/W, make changes, and press enter. is there anyway to make the explorer rename start in normal mode? |
Beta Was this translation helpful? Give feedback.
Answered by
drowning-cat
Jul 12, 2025
Replies: 1 comment
-
opts = {
picker = {
sources = {
explorer = {
actions = {
explorer_rename = function(picker, item) --[[Override]]
require('snacks.explorer.actions').actions.explorer_rename(picker, item)
vim.api.nvim_input '<Esc>T/'
end, Note This code results in a recursive loop: picker:action 'explorer_rename' |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gaven140
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note
This code results in a recursive loop: