Skip to content

Keymap code cleanup #989

Closed
Closed

Description

@juliusknorr

🧐 Minor nitpick: Keymap class sounds very generic and behaves generic in that all of it's behaviour is specified through the options during construction. At the same time it now implements special treatment for ctrl-f. Seems counter intuitive that by adding a keymap to the editor that handles mod-s you also get special treatment for ctrl-f.

Maybe put the plugin into a separate class like BrowserSearch or so?

Originally posted by @azul in #988 (comment)

Activity

  1. luka-nextcloud commented on Nov 4, 2022

    @luka-nextcloud
    Contributor

    It's still valid.

  2. mejo- commented on Nov 9, 2022

    @mejo-
    Member

    Mhhh, so this is merely about renaming a javascript class? 🧐

    I'd suggest to either fix it straight away or close the issue 😉

    I don't think there's much value in having issues about minor refactoring. Either it will happen along with other work anyway (and this issue will not be memorized by then) or it doesn't seem to be important enough 🤪

  3. juliusknorr commented on Nov 9, 2022

    @juliusknorr
    MemberAuthor

    Agreed, I think Keymap still sounds sane as a naming, but we should move the Ctrl+S registration from the Editor.vue file to the actual plugin instead of using the options.

    @luka-nextcloud Mind to have a look into that?

  4. self-assigned this
    on May 8, 2025
  5. moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity teamon May 8, 2025
  6. moved this from 🧭 Planning evaluation (don't pick) to 🏗️ In progress in 📝 Productivity teamon May 8, 2025
  7. moved this from 🏗️ In progress to 👀 In review in 📝 Productivity teamon May 14, 2025
  8. moved this from 👀 In review to ☑️ Done in 📝 Productivity teamon May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions