Replace deprecated :buffer by :tab-select

This commit is contained in:
gardouille 2021-02-05 08:45:30 +01:00
parent 17542f36d4
commit 685c98a47d
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 2 deletions

4
qb
View File

@ -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