yujinyuz / gitpad.nvim

minimal neovim plugin for taking down notes for git projects, branch, etc.
https://yujinyuz.github.io/gitpad.nvim/
MIT License
43 stars 4 forks source link

Use lua to parse basename of git repo path instead of bash command #10

Closed GitMurf closed 1 month ago

GitMurf commented 1 month ago

fix: repo name basename uses bash command which is slow on windows

GitMurf commented 1 month ago

@yujinyuz Let me know if you have any questions or concerns?

GitMurf commented 1 month ago

The bash command was locking up neovim for several seconds each time I opened gitpad and then stayed locked for a couple seconds after the window loaded before neovim responded to let me type in the gitpad window. Calling bash commands through cmd / powershell often times is slow because Windows is basically spinning up wsl (I think), then running the command, passing it back and then closing down wsl, meanwhile it locks the neovim/terminal main process.