From 685c98a47dec16fb6d66dc1ce1a73481625ce7c2 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 5 Feb 2021 08:45:30 +0100 Subject: [PATCH] Replace deprecated :buffer by :tab-select --- qb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qb b/qb index a381491..5b3a0e2 100755 --- a/qb +++ b/qb @@ -276,7 +276,7 @@ goto_url() { # {{{ debug_message "goto_url − \ Manage ${RED}${url}${COLOR_DEBUG} URL" - ## Go to an existent buffer with the expected URL + ## Go to an existent tab with the expected URL ### Or open the URL in a new buffer is_url_in_buffer \ || open_in_qutebrowser @@ -288,7 +288,7 @@ switch_qutebrowser_buffer() { # {{{ debug_message "switch_qutebrowser_buffer − \ Try to switch to buffer id: ${buffer_id}." - echo "{\"args\":[\":buffer ${buffer_id}\"], \"target_arg\":\"\", \"protocol_version\":1}" |\ + echo "{\"args\":[\":tab-select ${buffer_id}\"], \"target_arg\":\"\", \"protocol_version\":1}" |\ socat - UNIX-CONNECT:"${QUTEBROWSER_SOCKET_FILE}" ## Ensure to focus on expected buffer