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
Spell Check: toggle with just one shortcut #1158
Comments
I won't implement this as cleaning the findings of a previous check is already implemented by the mentioned "Remove Error Markers" keybinding. Again, as said in #1156, toggle is not appropriate for the "Run Spell Check" action because it is an action. I do understand your use case. I think using two different keybindings is not that hard though. Anyway, if you want to have a one time check of the current document and then remove the markers with one keybinding, just use the "Toggle Check While Typing" keybinding. When toggling the setting to active, spell checking is performed and markers are set. When deactivating the setting again, the markers are removed automatically. |
To the shortcut "Run Spell Check".
OK, now I got it. "Run Spell Check" is a one time action, so if I activate it, and then, if for example I type words, then on the new written words, spell checking will not be performed. But then, I think that "Run Spell Check once" would be better as expression than "Run Spell Check". Now to the shortcut "Toggle Check While Typing":
That's not true. When toggling the setting to active, spell checking is performed and markers are set, but only for new written words.
That's not true. When deactivating the setting again, then there will be no markings any more while typing, but the existing markings will not be removed. If this would be true what you write, then it would be perfect for me:
|
Oops, sorry for the wrong information. When I was testing this earlier today, at some point I used the toolbar button instead of the keybinding because I was super confident they behave identically and share the same code. This is clearly a bug. I'll prepare a PR to fix this soon. |
Thank you so much. I have three suggestions for improvement: 1 2 3 |
|
Could you please add the bug-label to this issue? Thank you in advance. |
I would like to modify a little bit the third point of my comment #1158 (comment): 3
In the configuration of the Plugin, in Behavior, I would delete the whole line "Check spelling while typing". |
I did not previously understand the effect of the proposed changes. To check, IIUC it is to have "toggle spelling" when checking is off do a document wide spell check and turn on checking while typing, and when checking is on stop checking whilst typing and remove markers. The capability to run spell check then once should remain, spell checking during typing can be annoying and distracting, I have it off. But occasionally spell check can be run on the whole document and the markers will stay visible without any distractions whilst correcting or typing new content. Since the markers are removed when spell checking is toggled off, If the one-shot capability is removed there is no way of checking a document except by having spell checking on continuously with its attendant annoyance. So that one shot capability needs to stay to allow user controlled checking without constant nagging whilst typing. Please do not try to remove features just because you personally do not use them. |
I agree with @elextr:
the "Run Spell Check" functionality has its own use case, I use it
regularly *after* writing some text to check the whole document and
intentionally keep the markers visible. Then I correct misspelled words
and run the check again.
Using the "Toggle spell check" function as you suggest would be
counter-intuitive for my use case and for me automatic spell checking is
pretty distracting.
And so both functions have their reasons to exist.
Even if you do not need the one-time action, don't remove it for other
users.
I'm ok with renaming the options and I will implement removing the
markers when toggling off using the toggle keybinding.
But I won't remove existing and in-use functionality because
LibreOffice does not provide it.
|
Actually I forgot to mention that I found out a few days ago that Libreoffice has a manual spell checker as well as automatic spell checking. |
OK, if you think so, but then at least it would be good to change the expression from "Run Spell Check" to something like "Run Spell Check once" or "Run Spell Check one-time", to make it clear that it is a one-time action. |
OK, if you think so, but then at least it would be good to change the
expression from "Run Spell Check" to something like "Run Spell Check
once" or "Run Spell Check one-time", to make it clear that it is a
one-time action.
I guess you did not yet notice that I already did this in the above
linked PR #1161?
It would be nice if you could test it.
|
I would like to. But unfortunately it is not possible. I have no idea how to update Geany. And I use a Geany by a PPA. |
Ok, if you are https://geany.org/manual/#source-compilation describes how to compile from source (this is for Geany but for Geany-Plugins the steps are pretty much the same). If not, you could at least read the changed labels in the PR and see if they fit better. |
In the description that you mentioned, three commands need to be typed in the terminal:
Where is Geany in the command lines?
I didn't know that it was possible to look inside the code. Oh, that's cool! I visited both web-pages:
I checked the first webpage, because on the second webpage I have no idea what the code means. I would not write it "Run Spell Check Once", because I don't like when, after the first word, words start with a big letter. Then I get a little bit confused, because I ask myself: Is there a special meaning behind that? Personally I would prefer that even the first word starts with a small letter, because it is not a sentence, it is just an expression. So the best for me would be this: I don't understand why you use two different notations for one and the same thing: |
@ralf3u don't know what platform you are on, but you also need a bunch of tools that are not normally installed unless you do C software development. I guess we need to remind ourselves that not everybody is a C coder and knows the technology involved in how to build Geany and thats fine, it will just mean waiting for someone else to test it.
Thats open source 😄
Geany isn't terribly consistent with keybinding names, we have Thats also open source, different contributors have different preferences and experience and contribute things in their favourite/experience style. The Gnome HIG tends towards sentence capitalisation for labels which is what this is. But its not totally prescriptive and allows short non-sentence controls to be heading capitalisation. Sigh, why did I expect something from Gnome to be useful
One is the label on the keybinding dialog and summary ( |
I don't mind about the case of "Run spell check once" except that IMO the first word should be capitalised. @elextr what would you prefer, I'm always in need of your red pencil to correct my English wording :D. |
Personally I also prefer sentence case (ie first word capitalised). On a language lawyer basis, I do think its a sentence, it has a verb "Run" and object "spell check" and a quantifier "once", thats a sentence to me. [end purple pencilling] |
|
I'm not sure the very exact definition of a sentence applies here at all. But I didn't find a single application running on my system where the first word is in lowercase. Additionally, introducing such a change a now here would make the keybinding labels even more inconsistent than before. So, I see no reason for not using "Run spell check once". I've just pushed changes to the PR #1161 to change the keybinding labels accordingly. |
I looked at PR 1161. Now it's perfect. |
The definition of a sentence from my education department is: "A sentence is a set of words that is complete in itself. It typically contains a subject, conveys a statement, question, exclamation or command, and consists of a main clause." In writing, the end of sentences is marked with a full stop or other punctuation mark. But on labels (physical and computer GUI), where there is only one sentence, it is common to omit the ending punctuation. The Gnome HIG also specifies sentence capitalising for labels on most controls (except buttons as per my previous post), even if they are not sentences, and as the survey by @eht16 found, its the usual way GUIs are labelled. |
There is the possibility to turn on "Run Spell Check" with one shortcut. And there is the possibility to turn off Spell Check with the shortcut "Remove Error Markers" (can be found in the Preferences dialog under Keybindings in the "Document" section). But there is no possibility to toggle Spell Check on and off with just one shortcut. To toggle with just one shortcut is more comfortable than to use two different shortcuts.
Comparison
In LibreOffice 7.1.3.2 "Automatic Spell Checking" can be turned on and off with the same shortcut (Shift+F7).
The text was updated successfully, but these errors were encountered: