Giter Site home page Giter Site logo

`disable_default_key_bindings` does not affect some of the behaviors of Ctrl+C (keybinding appears to be hardcoded) about wezterm HOT 7 CLOSED

crabdancing avatar crabdancing commented on August 27, 2024
`disable_default_key_bindings` does not affect some of the behaviors of Ctrl+C (keybinding appears to be hardcoded)

from wezterm.

Comments (7)

crabdancing avatar crabdancing commented on August 27, 2024 1

{ key = 'q', mods = 'CTRL', action = act.Multiple { act.ScrollToBottom, act.SendKey { key = 'q', mods = 'CTRL' } } } worked, thanks! :)

from wezterm.

bew avatar bew commented on August 27, 2024

This behavior is not specific to Ctrl-c, all keys will scroll to the end.
Try to set scroll_to_bottom_on_input = false, although it won't scroll it will still send those keys but you won't see them
ref: https://wezfurlong.org/wezterm/config/lua/config/scroll_to_bottom_on_input.html

(note: with nu you can also do seq 1 100 to quickly write some output 🙃)

from wezterm.

crabdancing avatar crabdancing commented on August 27, 2024

@bew

Woah! But Ctrl+Shift+C doesn't do it. I guess it's special behavior of the shift key, then? I should look at the code for input processing.

Also, I didn't know nushell had seq like Bash & Fish do. Thanks for the tip :D

Edit: looks like it works. Now all I'd like to do is get the scrolling behavior back, but for Ctrl+Q specifically. Maybe I can rig it up with some Lua?

from wezterm.

bew avatar bew commented on August 27, 2024

Yeah, I think using wezterm.action.ScrollToBottom should do it?
Ref: https://wezfurlong.org/wezterm/config/lua/keyassignment/ScrollToBottom.html

from wezterm.

crabdancing avatar crabdancing commented on August 27, 2024

Oh, awesome! Is there a way of binding some code to a keybinding without intercepting the keybinding? When I do { key = 'q', mods = 'CTRL', action = act.ScrollToBottom }, it eats Ctrl+Q and the terminal stack can't respond to the keypress.

from wezterm.

bew avatar bew commented on August 27, 2024

Well the simplest solution here would be to use a act.Multiple action, to call act.ScrollToBottom then act.SendKey with the key you want to send.

Check these additional docs:

from wezterm.

github-actions avatar github-actions commented on August 27, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

from wezterm.

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.