[Github-comments] [geany/geany] Add secondary action for zoomin (PR #2956)

elextr notifications at xxxxx
Fri Oct 29 01:01:00 UTC 2021


> So each key pressed to type a sentence in the editor has to go through the keybinding search?

AFAICT yes.

> Couldn't it be implemented as a jump table? So it would take constant time to locate the correct response?

There are 2^21 Unicode code points multiplied by 2^(the number of modifiers), so no.

A hash table might possibly be a solution, just "somebody" has to do it and make sure all the special cases in [this](https://github.com/geany/geany/blob/04566236d3f9811d55d6c7bcc492b3a60369fd20/src/keybindings.c#L1348) are covered.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2956#issuecomment-954329243
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211028/a9220cca/attachment.htm>


More information about the Github-comments mailing list