Giter Site home page Giter Site logo

Shifted key translation about god-mode HOT 5 OPEN

bernardjoseph avatar bernardjoseph commented on July 2, 2024
Shifted key translation

from god-mode.

Comments (5)

darth10 avatar darth10 commented on July 2, 2024

Thanks for brining this up @bernardjoseph!

I think your solution is fine, but it could be in a better place.
The call to god-mode-lookup-command could be done in either:

  • The outer let* form, or
  • The god-key-string-after-consuming-key function (I think).

That would make it slightly cleaner.
If the tests are passing with your change in verbatim though, I'm happy to merge that in and refactor it later.

That being said, you shouldn't be using C-S-N (or C-S-n) in the spirit of modal editing 😄
Instead, you should call set-mark-command and next-line i.e. SPC n in God mode.
Note that SPC n doesn't use any modifier keys.

from god-mode.

darth10 avatar darth10 commented on July 2, 2024

Actually, I'm curious about the behavior with your change and the Caps Lock key turned on.
Is the behavior correct in that case?

from god-mode.

bernardjoseph avatar bernardjoseph commented on July 2, 2024

I must confess I do not know what the correct behavior is. Without God mode, pressing Ctrl-anything with Caps Lock on seems to ignore Caps Lock. With God mode enabled, with Caps Lock on, all alphanumeric keys are shifted. For me the behavior is ok and I am more wondering about the behavior with God mode turned off. What do you think?

from god-mode.

bernardjoseph avatar bernardjoseph commented on July 2, 2024

Sorry, after playing a bit more I am now convinced that the Caps Lock behavior is not good.

from god-mode.

bernardjoseph avatar bernardjoseph commented on July 2, 2024

A checked the behavior in View mode, which has some capital letter bindings. With Caps Lock on, all capital letter bindings are in effect. That is a strange behavior for me, I was not aware of until now. Caps Lock is not really recognized by Emacs in those cases.

from god-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.