typescript-tools.nvim
typescript-tools.nvim copied to clipboard
feat: implement `Move to file` code action
TODO:
- [ ] config option to pass other telescope builtin pickers (default
find_files) - [ ] config option to pass custom function as file picker(allow to use other things than telescope)
Hello! Is there any plan to merge this? I'm happy to help test if that would be useful.
Yes please! I had fun using this in VSCode
It works great! there is just one issue where if the target file does not have a newline at the end (or i guess, technically speaking, that would be, two newlines at the end), stuff you're moving doesnt land in there. That's the main big bug i found over the past couple months daily driving this (i use it in bursts once every few weeks).
@unphased I've might have fixed this problem. Can you check if the fix works for you?
Any update? Can we get this merged?
I think we should go ahead with this. I tried to look up the vim.lsp.util.apply_workspace_edit API but I can't find any more information about what a WorkspaceEdit is...
Would love to get this as well, thanks! 😍 Until then I'll just point to this branch and report back if there are any issues 🙌