sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

Use AltTab to switch to sioyek will trigger external search

Open dirichy opened this issue 4 months ago • 6 comments

I use AltTab to switch window on mac, but when use it switch to sioyek, it will trigger external search and then open google scholar, it's so anoying. I don't know it's issue about sioyek or alttab, but I used karabiner-eventveiwer and it shows there is not any middle click events.

dirichy avatar Aug 15 '25 01:08 dirichy

I use AltTab myself and have no such problem. Which sioyek version are you using? Does the issue happen in the preview release here: https://github.com/ahrm/sioyek/releases/tag/sioyek3-alpha0? What is your keys_user.config file? Maybe there is a configuration which is causing this?

ahrm avatar Aug 15 '25 04:08 ahrm

I use sioyek 2.0.0 and this issue occur even if I delete all custom config. Moreover, I find that this issue only happen when in fullscreen mode, and it not happen every time, I guess about 50%. Very strange. I will try alpha version later to find if this issue still happen. Thank you for your replying.

dirichy avatar Aug 16 '25 03:08 dirichy

I tryed the alpha version and I can't even open it. for mac version, it shows error _LSOpenURLsWithCompletionHandler() failed with error -54, for mac-arm version, the macos says the package is broken so I can't open it.

dirichy avatar Aug 16 '25 04:08 dirichy

if you see an error about sioyek being damaged see https://github.com/ahrm/sioyek/discussions/1156#discussioncomment-10822738.

ahrm avatar Aug 16 '25 13:08 ahrm

if you see an error about sioyek being damaged see #1156 (reply in thread).

this works, but there is another error about alpha version:

> ./sioyek
default_config_path: /Users/dirichy/Downloads/build/sioyek.app/Contents/MacOS/prefs.config
default_keys_path: /Users/dirichy/Downloads/build/sioyek.app/Contents/MacOS/keys.config
user_config_path: [ 0 ] /Users/dirichy/.config/sioyek/prefs_user.config
user_config_path: [ 1 ] /Users/dirichy/Library/Application Support/sioyek/prefs_user.config
user_keys_path: [ 0 ] /Users/dirichy/.config/sioyek/keys_user.config
user_keys_path: [ 1 ] /Users/dirichy/Library/Application Support/sioyek/keys_user.config
Error: required 4 values for color, but got 1
Error in config file /Users/dirichy/.config/sioyek/prefs_user.config at line 5 : visual_mark_color          #7f849c
database_file_path: /Users/dirichy/Library/Application Support/sioyek/test.db
local_database_file_path: /Users/dirichy/Library/Application Support/sioyek/local.db
global_database_file_path: /Users/dirichy/Library/Application Support/sioyek/shared.db
tutorial_path: /Users/dirichy/Downloads/build/sioyek.app/Contents/MacOS/tutorial.pdf
last_opened_file_address_path: /Users/dirichy/Library/Application Support/sioyek/last_document_path.txt
shader_path: /Users/dirichy/Downloads/build/sioyek.app/Contents/MacOS/shaders
SIOYEK
Warning: key defined in /Users/dirichy/Downloads/build/sioyek.app/Contents/MacOS/keys.config:297 overwritten by /Users/dirichy/.config/sioyek/keys_user.config:2. Overriding command: F: replacing keyboard_smart_jump with toggle_titlebar
Warning: key defined in /Users/dirichy/Downloads/build/sioyek.app/Contents/MacOS/keys.config:255 overwritten by /Users/dirichy/.config/sioyek/keys_user.config:3. Overriding command: s: replacing external_search with fit_to_page_width_smart
Warning: key defined in /Users/dirichy/Downloads/build/sioyek.app/Contents/MacOS/keys.config:44 overwritten by /Users/dirichy/.config/sioyek/keys_user.config:51. Overriding command: zz: replacing goto_top_of_page with goto_top_of_page;goto_right_smart
Warning: key defined in /Users/dirichy/Downloads/build/sioyek.app/Contents/MacOS/keys.config:123 overwritten by /Users/dirichy/.config/sioyek/keys_user.config:79. Overriding command: <C-o>: replacing open_document_embedded with prev_state
WARNING: Output of vertex shader 'screen_pos' not read by fragment shader

WARNING: Output of vertex shader 'screen_pos' not read by fragment shader

WARNING: Output of vertex shader 'screen_pos' not read by fragment shader

WARNING: Output of vertex shader 'uvs' not read by fragment shader
WARNING: Output of vertex shader 'screen_pos' not read by fragment shader

WARNING: Output of vertex shader 'uvs' not read by fragment shader
WARNING: Output of vertex shader 'screen_pos' not read by fragment shader

WARNING: Output of vertex shader 'uvs' not read by fragment shader
WARNING: Output of vertex shader 'screen_pos' not read by fragment shader

WARNING: Output of vertex shader 'screen_pos' not read by fragment shader

WARNING: Output of vertex shader 'uvs' not read by fragment shader
WARNING: Output of vertex shader 'screen_pos' not read by fragment shader

WARNING: Output of vertex shader 'screen_pos' not read by fragment shader

WARNING: 0:2: extension 'GL_OES_standard_derivatives' is not supported

zsh: segmentation fault  ./sioyek

dirichy avatar Aug 17 '25 01:08 dirichy

I find that when I set middle_click_search_engine to null then this issue will not happen, but I use touchpad and there is no middle_click. I don't know what happened.

dirichy avatar Aug 17 '25 01:08 dirichy