From: Christian Franke <Christian.Franke@t-online.de>
To: cygwin-apps@cygwin.com
Subject: [PATCH setup] Keyboard accelerator for keep or skip
Date: Tue, 25 Apr 2023 19:00:37 +0200 [thread overview]
Message-ID: <5a0dcaa4-4ce0-4d43-8f2a-0cf56d068f08@t-online.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 146 bytes --]
Use case: Easily prevent update of multiple packages in the "Pending"
view, in particular useful if "Test" is selected.
--
Regards,
Christian
[-- Attachment #2: 0001-Keyboard-accelerator-for-keep-or-skip.patch --]
[-- Type: text/plain, Size: 1521 bytes --]
From 05d9c72f07cf754dc6172a998b2e0991034d363f Mon Sep 17 00:00:00 2001
From: Christian Franke <christian.franke@t-online.de>
Date: Tue, 25 Apr 2023 18:42:18 +0200
Subject: [PATCH] Keyboard accelerator for keep or skip
Ctrl+K selects keep or skip and then moves selection to next row.
---
PickPackageLine.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PickPackageLine.cc b/PickPackageLine.cc
index c1e2a15..d380965 100644
--- a/PickPackageLine.cc
+++ b/PickPackageLine.cc
@@ -155,6 +155,7 @@ PickPackageLine::map_key_to_action(WORD vkey, int modkeys, int & col_num,
col_num = new_col;
return Action::PopUp;
case 'I': // Ctrl+I: select install default version and move to next row
+ case 'K': // Ctrl+K: select keep or skip package and move to next row
case 'R': // Ctrl+R: select reinstall and move to next row
case 'U': // Ctrl+U: select uninstall and move to next row
if (modkeys != ModifierKeys::Control)
@@ -163,8 +164,9 @@ PickPackageLine::map_key_to_action(WORD vkey, int modkeys, int & col_num,
switch (vkey)
{
case 'I': action_id = packagemeta::Install_action; break;
+ default: action_id = packagemeta::NoChange_action; break;
case 'R': action_id = packagemeta::Reinstall_action; break;
- default: action_id = packagemeta::Uninstall_action; break;
+ case 'U': action_id = packagemeta::Uninstall_action; break;
}
return Action::Direct | Action::NextRow;
}
--
2.39.0
next reply other threads:[~2023-04-25 17:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-25 17:00 Christian Franke [this message]
2023-07-29 11:25 ` Jon Turney
2023-07-31 10:11 ` Christian Franke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5a0dcaa4-4ce0-4d43-8f2a-0cf56d068f08@t-online.de \
--to=christian.franke@t-online.de \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).