Replies: 1 comment
-
|
Unfortunately, I don't have a good answer for you. Most IDE actions are asynchronous to some degree, such as opening and updating the UI, or reformatting code, or launching a dialog to refactor, etc. which means it's very hard to know when an action is "done". This means we can't easily chain multiple actions together, and it means that the IdeaVim doesn't implement the I wonder if Macros would help? You can record a set of actions, save them with a name and then invoke this macro with an action, e.g. (*) If you're interested, I think it would be very hard to implement Another interesting idea might be possible if we had support for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm trying to implement a custom function in IdeaVim that opens the commit window and automatically triggers GitHub Copilot to generate a commit message. However, I'm running into an issue where the sleep command doesn't seem to work properly in my custom function.
When I execute this function, I consistently get the error message:
Commit field has not been initialized correctlyIt seems like the second action (copilot.git.commit.button) is being called before the commit window is fully loaded, even though I've added a sleep 1000m delay. The sleep command appears to have no effect in the custom function.
When I manually execute the actions step by step with a pause between them, everything works as expected:
Does IdeaVim support sleep in custom functions?
Is there a better way to wait for the commit window to initialize before executing the next action?
Are there any alternative approaches to achieve this workflow?
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions