A bit smarter cursor position (DRY version)#10
A bit smarter cursor position (DRY version)#10iamntz wants to merge 1 commit intotestNameGenerator:masterfrom
Conversation
|
Hi and thank you, I think the run_command is a nice improvement, but I'm having issues with multiple cursors. I'm thinking: sandboxing the run_command for each cursor or adjusting the cursor after each insert. |
|
Mmm, you're right. But I assume generating multiple tests at once is less common than the need of having the cursor placed in the right place :) |
|
For now I've made a temporary fix by adjusting the cursor; will revert and merge your fix when used in caret isolation (I've made some attempts using temporary regions but with no success so far). In my workflow, I first define specs/phrases and generate their test methods at the same time. Also, sometimes I'm replacing a term in existing test doc blocks and want to update them at the same time without going in each test method instance and using the shortcut. The other plugins (Eclipse and PHPStorm) add markTestIncomplete as the default method body. (ST version has some catching up to do, but after getting a proper virtual environment to test this plugin). Thanks |
see #9