Giter Club home page Giter Club logo

Comments (8)

Inc0n avatar Inc0n commented on August 20, 2024 1

@benjaminor Ah sure, thanks for debugging with me. In the end I just resort to GUI emacs on local machine and tramp :)

from kkp.

benjaminor avatar benjaminor commented on August 20, 2024

Hi, according to the kitty documentation (https://sw.kovidgoyal.net/kitty/conf/#shortcut-kitty.Pass-selection-to-program), C-S-o is caught by kitty itself and mapped to pass_selection_to_program. With kitty, my emacs does not receive C-S-o neither with or without kkp. Using foot, C-S-o is recognized with kkp in emacs.

from kkp.

Inc0n avatar Inc0n commented on August 20, 2024

I see there is foot, that I could use. However, I did have clear_all_shortcuts set to yes. And with C-S-o not set to anything. I guess this may be a difficult case to get through.

from kkp.

benjaminor avatar benjaminor commented on August 20, 2024

Have you bound C-S-o to a command?

With a vanilla emacs-28.2 with kkp installed, kitty.conf only set to clear_all_shortcuts yes and global-kkp-mode activated,
M-x describe-key recognizes C-S-o:

  • Without a custom command bound to C-S-o, it gives me the help page for open-line.
  • With a custom command bound to C-S-o, e.g., (global-set-key (kbd "C-S-o) 'other-window), I get the help page for other-window

Furthermore, view-lossage shows me ESC [ 1 1 1 : 7 9 ; 6 u which is the keycode expression for C-S-o.

What does your view-lossage (C-h l) show after pressing C-S-o?

from kkp.

Inc0n avatar Inc0n commented on August 20, 2024

Hi benjaminor, thanks for the detailed instruction. First of all apology for C-s-o, I meant S for super, but it is shift. I have noticed this error just now.

I realized I have left out an important detail, all of the issue listed here are produced in an emacs session started in a ssh session run on kitty... This is important because the behavior is different in emacs in kitty and emacs in ssh session in kitty.... As I have just discovered.

Anyways...
C-s-o (super) is not bounded to anything within my laptop Desktop Environment (I run ubuntu here).
Neither is it bounded to any interactive commands.
C-s-o (super) is detected as u with describe-key-briefly in kitty ssh emacs.
view-lossage also confirm as u.

Key combination that shows up as the werid code is C-S-n (control-shift-n), which shows as ESC [ 1 1 0 ; 6 u.

Then I enabled global-kkp-mode, the key code get inserted into the buffer I am currently editing (which is also its previous behavior...)

kkp-print-terminal-support prints out KKP supported in this terminal.

It is more convenient to have emacs running in the ssh session within kitty, but I can also work my ways around it. It is not the end of the world if this couldn't get fixed :)

Thanks, Inc0n

from kkp.

Inc0n avatar Inc0n commented on August 20, 2024

In my last comment, I mentioned terminal emacs in kitty and terminal emacs from an ssh session within kitty.

The behavior differs in how keys with super is registered properly or not... C-s-o is u in ssh, but a [ x x x ; x u key code in normal emacs kitty session.

However, besides that it also is not working with kkp enabled ...

from kkp.

benjaminor avatar benjaminor commented on August 20, 2024

Sorry @Inc0n, I still cannot reproduce the issue.

When I ssh into my own device via localhost, and then execute describe-key with C-s-o, I get the message "C-s-o is undefined" and view-lossage shows me ESC [ 1 1 1 ; 1 3 u, which is how it should be.

Can you give me a recipe to reproduce the issue with a clean Emacs (only kkp installed)?

from kkp.

benjaminor avatar benjaminor commented on August 20, 2024

Closing due to inactivity. Feel free to reopen if issue persists!

from kkp.

Related Issues (10)

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.