From ac73fb2ba255512e6d97f3a5b107c5ff83d5c9e4 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Mon, 7 Aug 2023 02:14:34 -0700 Subject: [PATCH] change default move cursor up/down keys to vim keybindings --- README.md | 4 ++-- mpv-youtube-queue.conf | 4 ++-- mpv-youtube-queue.lua | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 31ead32..39b2180 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,8 @@ This script requires the following software to be installed on the system - `download_current_video - ctrl+d`: Download the currently playing video - `download_selected_video - ctrl+D`: Download the currently selected video in the queue +- `move_cursor_down - ctrl+j`: Move the cursor down one row in the queue +- `move_cursor_up - ctrl+k`- Move the cursor up one row in the queue - `move_video - ctrl+m`: Mark/move the selected video in the queue - `play_next_in_queue - ctrl+n`: Play the next video in the queue - `open_video_in_browser - ctrl+o`: Open the currently playing video in the browser @@ -60,8 +62,6 @@ This script requires the following software to be installed on the system - `print_queue - ctrl+q`: Print the contents of the queue to the OSD - `remove_from_queue - ctrl+x`: Remove the currently selected video from the queue -- `move_cursor_up - ctrl+UP`- Move the cursor up one row in the queue -- `move_cursor_down - ctrl+DOWN`: Move the cursor down one row in the queue - `play_selected_video - ctrl+ENTER`: Play the currently selected video in the queue diff --git a/mpv-youtube-queue.conf b/mpv-youtube-queue.conf index 9f9e563..a38f6e5 100644 --- a/mpv-youtube-queue.conf +++ b/mpv-youtube-queue.conf @@ -1,6 +1,8 @@ add_to_queue=ctrl+a download_current_video=ctrl+d download_selected_video=ctrl+D +move_cursor_down=ctrl+j +move_cursor_up=ctrl+k move_video=ctrl+m play_next_in_queue=ctrl+n open_video_in_browser=ctrl+o @@ -9,8 +11,6 @@ play_previous_in_queue=ctrl+p print_current_video=ctrl+P print_queue=ctrl+q remove_from_queue=ctrl+x -move_cursor_up=ctrl+UP -move_cursor_down=ctrl+DOWN play_selected_video=ctrl+ENTER browser=firefox clipboard_command=xclip -o diff --git a/mpv-youtube-queue.lua b/mpv-youtube-queue.lua index 7a5d742..8dc2232 100644 --- a/mpv-youtube-queue.lua +++ b/mpv-youtube-queue.lua @@ -22,6 +22,8 @@ local options = { add_to_queue = "ctrl+a", download_current_video = "ctrl+d", download_selected_video = "ctrl+D", + move_cursor_down = "ctrl+j", + move_cursor_up = "ctrl+k", move_video = "ctrl+m", play_next_in_queue = "ctrl+n", open_video_in_browser = "ctrl+o", @@ -30,8 +32,6 @@ local options = { print_current_video = "ctrl+P", print_queue = "ctrl+q", remove_from_queue = "ctrl+x", - move_cursor_up = "ctrl+UP", - move_cursor_down = "ctrl+DOWN", play_selected_video = "ctrl+ENTER", browser = "firefox", clipboard_command = "xclip -o",