~skuzzymiglet/anchor

Find a good working directory for a file
readme and license
initial commit

clone

read-only
https://git.sr.ht/~skuzzymiglet/anchor
read/write
git@git.sr.ht:~skuzzymiglet/anchor

You can also use your local clone with git send-email.

#anchor

anchor finds a good working directory for a file, based on the presence of Makefiles, .git and other files/directories found in project roots (rootlist).

Install: go get -v git.sr.ht/~skuzzymiglet/anchor

Use: anchor [file]

Once installed, anchor.lua can be used to run anchor inside Neovim. From my init.vim:

autocmd BufEnter * nnoremap <c-a> :luafile ~/code/anchor/anchor.lua<cr>

#Roadmap

Currently, the rootlist is quite short. If you want to add a file to the rootlist, contact me - you don't have to send a patch