Predelnik / DSpellCheck

Notepad++ Spell-checking Plug-in
GNU General Public License v2.0
198 stars 32 forks source link

Assign some keyboard shortcut to the "Find next" menu item #324

Closed mrfatguy closed 1 year ago

mrfatguy commented 1 year ago

Thank you for your time developing this fabulous plugin! I can't imagine my work in Notepad++ without it. And it is always the first plugin that I install to N++.

However, there is a one thing that drives me crazy.

Can we have any keyboard shortcut assigned to or any way to automate finding next mistake?

It is totally counter-productive, if not absurd to click PluginsDSpellCheckFind Next Misspelling menu item, if you have hundreds of mistakes to find and correct in single file.

Predelnik commented 1 year ago

It can be assigned yourself using Settings->Shortcut mapper->Plugin Commands->Find Next Misspelling. Is it inconvenient for you to do so for some reason? Unfortunately it's not easy to select a unique default shortcut because some popular plugins may also have used some hotkeys for their actions.

mrfatguy commented 1 year ago

I did not know that shortcuts configuration is application-wide and I was looking in the plugin configuration itself. I think that adding some simple label, saying that shortcuts should be configured there and there would ease users like me.

Anyway, after checking this it clearly seems that either I am doing something wrong or the whole thing simply isn't working at all.

Shortcuts are defined:

Clipboard00

And upon saving the dialog, you can clearly see that Notepad++ has assigned them to the corresponding menu items:

Clipboard01

But, upon pressing any of these two shortcuts → nothing happens. No effect at all. Neither "new" (DSpellCheck-related) comments nor "old" ones (search-related) are triggered. Notepad++ does nothing and acts like no key would be pressed.

Additionally, when closing Notepad++ for the first time after new shortcuts has been defined, I saw this warning message:

Screenshot 2023-07-23 155131

I completely don't understand it. I already have Notepad++ 8.5.4 (so newer than mentioned 8.5.2). In theory I should not see this message at all, if I am getting things correctly.

Predelnik commented 1 year ago

I think when the line with hotkey is highlighted in red it means that Notepad++ thinks there is conflict there and to make anything work you have to go to the other conflicting shortcut and clear it, that's not very convenient but falls out of scope of this plugin development obviously.

As for suggestion on how to set shortcut I can try to add something like this, will think about it.

mrfatguy commented 1 year ago

Yes, after clearing the original shortcut, everything now works just fine. Thank you. Closing this ticket.

It is up to you, but I'd add a short notice, where to configure shortcuts for DSpellCheck and what to do in case of conflict.