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
Feature Request: enable cntl/cmd-s hotkey when focus is in the commit message field. #1794
Comments
In fact, I would prefer that cmd-s in the main body edit field move focus to the commit field so that changes can't be saved unless a commit message is entered. Maybe this could be a command line setting? |
This seems like a reasonable expectation. The problem at the moment is that the hotkey is defined only be the ace editor (the main editor, the other text fields are not Ace instances). But we can add the cmd/ctrl-s ourselves using Mousetrap. Something like this should work: Mousetrap( $("#gollum-editor-form")[0] ).bind(['command+s'], function() {
$("#gollum-editor-submit").trigger("click");
return false;
});
I thinkk a command line setting for that would be a bit overkill, but perhaps we could add another keyboard combination for moving to the commit field -- e.g. cmd-shift-s, or cmd-shift-c, depending on what's already in use by ace. Again, this could be achieved with Mousetrap. Would you have time to submit a PR for these features, @magnusviri? |
I just tried to compile gollum but I get an arm64 related error.
I learned Ruby over 10 years ago but haven't used it much since, so I'm not really a Ruby developer. I'm not quite sure how to solve this problem. |
I am not sure how I would resolve that issue either... Did you migrate your Ruby install from a x86-64 system to an arm64 system by chance? I wonder if it's just a matter of throwing away your |
cntl/cmd-s works great when I'm in the main body edit field. But when I click in the commit message field it no longer works. Please enable this.
Also, when I press "return" in the commit message field it switches focus to the main body edit field and adds "****", which seems odd.
The text was updated successfully, but these errors were encountered: