pimutils / pimutils/khal

Q hotkey

Open
#732 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

Hello, is possible to map "Q" hotkey as "exit from current view" - so, if you are in "event details sub-view" and press Q, go to back to the main view / close detail view.
Q is used in many console apps as "quit from current view" and in khal, Q is mapped as imeddiately quit the whole app - so I am personally constantly quitting khal by mistake (too much of a habit from other console applications).

So, make the Q hotkey do the same as ESC in subviews.

This is only a small tip, consider it... Thanks!

Contributor guide

Open the contributing guide

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

Start by locating khal's keyboard handling for the Q and ESC keys in subviews, then inspect how event-detail views return to the main view. Done means Q leaves a subview in the same way as ESC without quitting the whole application; add or update a focused test if the existing key-handling tests cover this behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.