Closed SimonRask closed 3 months ago
Yeah, that might be better. I don't have much experience with the vscode API, but my thought was that it would potentially be better to have a single call to TextEditor.edit()
. I would be glad to add the replace functionality for the helix keymap according your suggestion. Whatever you prefer :)
It might be slightly better in performance to have one call, but unless it's a significant improvement (with evidence provided), I think the complexity outweighs the benefit. I think you can go ahead with the delete
command.
This should work :)
Merged into main branch with squashing
Hi, thanks for you contribution. However, I don't think it's necessary to add another option as you can run
modalEditor.delete
first and thenmodalEditor.paste