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
"Save script" shortcut should match platform (ctrl vs. cmd) #2690
Comments
CodeMirror's default keymap already handles 'ctrl-s' and even runs a 'save' command when available. see docs https://codemirror.net/doc/manual.html#commands
This is in build 4.1beta5 ( https://addons.mozilla.org/firefox/downloads/file/793791/greasemonkey-4.1beta5-an+fx.xpi?src=devhub ). Testing and confirming would be appreciated! |
Tested 4.1b5 on Mac, and the save shortcut is now cmd-s. 👍 I do see some warnings logged to the browser console -- are these known issues? Upon opening the editor:
Saving a script:
|
Not sure about that. Though I think it may be a bug, as far as I know all the codemirror things should load properly.
Standard. Just some debug info detailing that there are no |
Typo. diff --git a/src/content/edit-user-script.html b/src/content/edit-user-script.html
index dc3d16f..91ddbc8 100644
--- a/src/content/edit-user-script.html
+++ b/src/content/edit-user-script.html
@@ -13,7 +13,7 @@
<script src="/third-party/codemirror/addon/dialog/dialog.js"></script>
<link rel="stylesheet" href="/third-party/codemirror/addon/dialog/dialog.css">
-<script src="/third-party/codemirror/addon/scroll/annotatesscrollbar.js"></script>
+<script src="/third-party/codemirror/addon/scroll/annotatescrollbar.js"></script>
<script src="/third-party/codemirror/addon/search/searchcursor.js"></script>
<script src="/third-party/codemirror/addon/search/search.js"></script> |
I am using Greasemonkey v4.1 with firefox 57.0.1 and I am unable to save any greasemonkey script. Ctrl+S show firefox's "save page as" dialog and there is no save button as mentioned above. wondering if that has something to do with that fix |
Which OS? (Confirmed: There is no button yet!) |
Sorry I forgot to mention that, I am running Linux 64bit. Firefox installed directly from mozilla not through any kind of package manager |
I'm using Linux since 1991, but sorry, no experience with Firefox/Linux here. I assume, that you may use Ctrl-S shortcut. Any hotkey manager active? |
Ctrl+S is hotkey for Firefox's "Save Page As" menu item. |
I tried on a fresh install (without any other addons) and it worked perfectly fine. So maybe this is caused by addons or because of migration from older version of greasemonkey. Please disregard my comment, If I figured out the cause and it was a bug I'd raise the issue. Cheers |
As for me, it works perfectly fine as well. You're welcome. |
The problem is usually due to some error with the scripts loading into the editor. I've had it happen before but I usually debug the problem and move on. I'm 90% sure that it can be prevented with some better error handling, but I don't recall where. Unfortunately I haven't run into the problem in a while. |
Same issue on Linux, finally solved it by resorting to
|
After upgrading to FF 57 (which upgraded GM to v4), my script no longer works. I tried to fix it via the editor, but appeared to be unable to save my changes as there is no save button and Cmd-s brought up the Firefox Save Page As... dialog.
I eventually discovered https://groups.google.com/forum/#!topic/greasemonkey-users/GLTDE-G9LZI indicating there are not (yet) any buttons, and Ctrl-S is the shortcut to save. That did indeed work, but is unexpected on macOS. Can we please make the shortcut be ⌘S (Cmd-s) on Mac?
The text was updated successfully, but these errors were encountered: