Closed pritchett closed 8 months ago
Oh, ok, my directory picker is definitely a "best effort" thing. I'll try to make it a bit nicer so this works right.
Ahh, I use a different sorter in telescope, so this never showed up for me:
telescope_sorter = function()
return require("telescope").extensions.fzf.native_fzf_sorter()
end,
But out of the box it does.
Description
With telescope integration, a worktree cannot be checked out. A directory cannot be selected.
Neovim version
NVIM v0.9.5 Build type: Release LuaJIT 2.1.1703358377
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"
Run :checkhealth for more info
Operating system and version
macOS 14.2.1
Steps to reproduce
1.) nvim -nu minimal.lua 2.) open Neogit in a git repository 3.)
w
to open worktree popup 4.)w
to select a branch 5.) select a branch 6.) try to type in a name for the directory and hit enterExpected behavior
A directory is created with what was typed in in step 6. The worktree is checked out into that directory
Actual behavior
If no directory with the name you've typed in exists, it goes to the previous directory since what is left selected is "..". If there are still entries in the list (like if you wanted to checkout into a directory with the name "per", but a directory with the name "perf" exists), it will descend into that directory.
https://github.com/NeogitOrg/neogit/assets/35229419/24929c8e-2e08-455a-a5c8-52e0a460d4b1
Minimal config