Skip to content

Commit

Permalink
fix: Use non conflicting keymap for delete_worktree
Browse files Browse the repository at this point in the history
Other pickers already use <c-d> for scrolling preview and
telescope-file-browser.nvim use <m-d> for deleting files, so use that for
consistency.
  • Loading branch information
rbmarliere committed Sep 15, 2024
1 parent 0092aa5 commit a5b27a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/telescope/_extensions/git_worktree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ local telescope_git_worktree = function(opts)
map('n', '<m-c>', function()
telescope_create_worktree {}
end)
map('i', '<c-d>', delete_worktree)
map('n', '<c-d>', delete_worktree)
map('i', '<m-d>', delete_worktree)
map('n', '<m-d>', delete_worktree)
map('i', '<c-f>', toggle_forced_deletion)
map('n', '<c-f>', toggle_forced_deletion)

Expand Down

0 comments on commit a5b27a2

Please sign in to comment.