prompt-toolkit / prompt-toolkit/python-prompt-toolkit

Keybindings utilizing the shift key don't work on Konsole in inline mode

Open
#1,052 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.6k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

For example text selection with shift+arrow keys seems to be implemented (https://github.com/prompt-toolkit/python-prompt-toolkit/issues/979) and works for me in at least XTerm when in inline mode in addition to just the full screen mode.

However, it doesn't seem to in Konsole when not in the full screen mode. Konsole has its own keybindings for shift+arrow keys, but disabling what it allowed me to (shift+left and shift+right) didn't help. In the full screen mode the shift utilizing bindings work (and for example in Nano as well). Is there some kind of an inherent limitation to the inline mode from which this issue arises? If not, then please fix.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce issue #1052 in Konsole with prompt-toolkit's inline and full-screen modes, comparing shift+arrow behavior with XTerm. Trace the terminal input and keybinding handling involved in inline mode; done means determining whether this is an inherent limitation and, if not, making the bindings work consistently or documenting the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.