-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation "Save Document" do not work anymore #222
Comments
It looks like the save actions only trigger when the 'Save All' action is triggered. It looks like 'Save All' is standard save action on ctrl+s (it is also the only save action in the file menu), so it is fine for most users, but 'Save Document' can be mapped to ctrl+s or any other binding using the keymap, and if a user has done this, the actions in this plugin won't trigger. This is also the case for the vim plugin (see #220). I'm guessing the solution is as simple as overriding the method That being said I have only really glanced at this code and definitely haven't tested it. Just a thought. |
Hey @bborchard, overriding |
Ah, that makes sense. I suppose I shouldn't be surprised that this is more complicated than it looks. If I have some time later this week, maybe I'll try to set up a dev environment for this and see if there is some non-disruptive way to get this to work for 'Save Document' as well as 'Save All' - seems like there are a decent number of vim users affected. |
Current state is: since refactoring, only This affects vim plugin, and some users that seems to use only single save, also some IDE that seems to be configured that way (PHPStorm, see #224, needs testing). I have no idea how to fix this. |
Ok I found the problem but I don't know how to fix it. The The I don't actually understand how this could work before, but I surely don't know how to fix it. I'm trying to find a workaround |
We are left with two solutions:
|
None of these two solutions work from the vim plugin, right? |
Unfortunately, I haven't figured a way of making the vim plugin work without breaking the fix I've done for the general case. |
I cannot use the action "Save Document" anymore. Like not at all, at least for now. That means:
For the IdeaVim plugin, my recommended workaround is to call |
|
Save all support only |
doc vim + single save |
Reopening check "issue_222_document_single_save" branch I forgot about this: document limitations and event lifecycle |
I have found a workaround that is working better for me. When I tried However, when the plugin setting "Activate Save Actions on Shortcut" is enabled, then the plugin can be executed by doing In my .ideavimrc I've remapped |
Hey @coderjz, thanks for pointing this. I'll be adding this to the readme documentation for other users. I really don't understand why |
@coderjz , thanks for the hint! I have autosave disabled, so I came up with a bit ugly
Unfortunately, IdeaVim doesn't support chaining commands ( https://youtrack.jetbrains.com/issue/VIM-748 ), so
won't work :( |
From the plugin page but I don't know what that means https://plugins.jetbrains.com/plugin/7642-save-actions.
Does CTRL+S do something?
The text was updated successfully, but these errors were encountered: