Giter Club home page Giter Club logo

Comments (4)

kovidgoyal avatar kovidgoyal commented on July 17, 2024 1

kitty_mod+z works fine. kitty_mod+a doesnt because of the conflicting
multi-key mapping, in 0.31 the single key mapping overrides all the
multiple keys, that changed in 0.32 accidentally, I will change it back
for the next release.

from kitty.

kovidgoyal avatar kovidgoyal commented on July 17, 2024

What's the actual bug? remapping works fine, the debug output now shows all shortcuts not just the active one, because some of those shortcuts may have --when-focus-on rules that mean they might take precedence in some situations. I suppose the debug output could be made more clear.

from kitty.

mojolo avatar mojolo commented on July 17, 2024

Here's a more real world example with the following two mappings in kitty.conf:

map kitty_mod+a scroll_to_prompt -1
map kitty_mod+z scroll_to_prompt 1
  • In v0.31, pressing ctrl+shift+a scrolls to the previous prompt and ctrl+shift+z scrolls to the next prompt, as expected. Here's the debug output:
Added shortcuts:
        kitty_mod+a →  scroll_to_prompt -1

Changed shortcuts:
        kitty_mod+z →  scroll_to_prompt 1

Removed shortcuts:
        kitty_mod+a > 1 →  set_background_opacity 1
        kitty_mod+a > d →  set_background_opacity default
        kitty_mod+a > l →  set_background_opacity -0.1
        kitty_mod+a > m →  set_background_opacity +0.1
  • In v0.32+, pressing ctrl+shift+a does nothing but ctrl+shift+z works as expected.
    So it seems to be an issue with multi-stroke default shortcuts, or whatever they're called, using the > separator.
    Note, if I press ctrl+shift+a twice, the following raw output is inserted into the command line: 7;6u7;6u
    Here's the debug output:
Changed shortcuts:
         kitty_mod+a > m →  set_background_opacity +0.1, set_background_opacity -0.1, set_background_opacity 1, set_background_opacity default, scroll_to_prompt -1
         kitty_mod+z →  scroll_to_prompt -1, scroll_to_prompt 1

from kitty.

mojolo avatar mojolo commented on July 17, 2024

Got it, thanks Kovid!

from kitty.

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.