Open jan-xyz opened 5 months ago
I started hacking a bit on this, as I think it would be really nice to have. My idea is to basically have a regular vim.ui.select
to pick the action to execute and on selection a Telescope window opens with the available edits in the picker which are all pre-selected and can be de-selected or with a shortcut also deselect all, on enter the code action gets executed but only with the selected edits.
Hmm, such an operation is not standard in vim and I don’t want it, so I won’t implement it. I understand the demand, so it might be a good idea to implement it as a separate plugin (which I won’t do) and connect it with this plugin.
Since you are implementing this feature, I will keep this issue open, but I won’t take any action.
I have a first version here. It is very heavily inspired by your work, and I would be totally up for donating this back to this repo and archiving mine. It is an almost complete rewrite. I am still trying to figure out a good way to select individual diffs, it is currently only able to select by file/uri. It also is implemented in a way that any change done via util.apply_workspace_edit
can do this, so it also automatically implements renaming (#31 )
Is it possible to deselect and select the diffs? Like this list from VS Code to select and deselect which hunks should be applied.