From b0d2e8f62ea1cf78c57e670c7d10110ee672fc5d Mon Sep 17 00:00:00 2001 From: Ronak Buch Date: Thu, 6 May 2021 15:38:47 -0400 Subject: [PATCH] Make behavior of Shift modifier consistent Previously, Shift+o opened the menu for the currently playing item while Shift+x copied a link to the currently selected item. Now Shift operates on the currently playing item in both cases. --- README.md | 4 ++-- src/commands.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 929f340..f2dbc47 100644 --- a/README.md +++ b/README.md @@ -133,8 +133,8 @@ depending on your desktop environment settings. Have a look at the * `r` to toggle repeat mode * `z` to toggle shuffle playback * `q` quits ncspot -* `x` copies a sharable URL of the song to the system clipboard -* `Shift-x` copies a sharable URL of the currently selected item to the system clipboard +* `x` copies a sharable URL of the currently selected item to the system clipboard +* `Shift-x` copies a sharable URL of the currently playing track to the system clipboard Use `/` to open a Vim-like search bar, you can use `n` and `N` to go for the next/previous search occurrence, respectivly. diff --git a/src/commands.rs b/src/commands.rs index f9cd9bb..9445c67 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -376,8 +376,8 @@ impl CommandManager { kb.insert("r".into(), Command::Repeat(None)); kb.insert("z".into(), Command::Shuffle(None)); - kb.insert("x".into(), Command::Share(TargetMode::Current)); - kb.insert("Shift+x".into(), Command::Share(TargetMode::Selected)); + kb.insert("x".into(), Command::Share(TargetMode::Selected)); + kb.insert("Shift+x".into(), Command::Share(TargetMode::Current)); kb.insert("F1".into(), Command::Focus("queue".into())); kb.insert("F2".into(), Command::Focus("search".into()));