add option to copy path when pressing down shift

This commit is contained in:
Frederic Laing 2025-11-12 22:18:53 +01:00 committed by Frederic Laing
parent f1a8e4ea19
commit 4e77e398f2
No known key found for this signature in database
GPG key ID: C126157F0CDCD306
4 changed files with 22 additions and 2 deletions

View file

@ -67,6 +67,7 @@ pub fn key_binds(mode: &tab::Mode) -> HashMap<KeyBind, Action> {
// App and desktop only keys
if matches!(mode, tab::Mode::App | tab::Mode::Desktop) {
bind!([Ctrl], Key::Character("c".into()), Copy);
bind!([Ctrl, Shift], Key::Character("c".into()), CopyPath);
bind!([Ctrl], Key::Character("x".into()), Cut);
bind!([], Key::Named(Named::Delete), Delete);
bind!([Shift], Key::Named(Named::Delete), PermanentlyDelete);