talonhub / community

Voice command set for Talon, community-supported.
MIT License
643 stars 783 forks source link

Snap Left-Right in Mac Pages does not work as expected #721

Open username1290 opened 2 years ago

username1290 commented 2 years ago

Using Snap left or Snap right in Pages (Mac) doesn't work as expected.

It doesn't snap the document at the front. instead, it snaps a different document.

Expected: Snap document at the front.

macOS Version: Big Sur Pages version: 11.2

pokey commented 2 years ago

We couldn't reproduce this one. Could you give us a bit more information about the exact steps needed to reproduce this and/or maybe a video?

username1290 commented 2 years ago

Unsure how to reproduce this. Initially thought it was caused by switching apps too quickly, but ruled that out.

Attached GIF and video:

Video MP4 (1900x942)

https://user-images.githubusercontent.com/2784323/150392171-ec20e1ee-3482-4f02-b369-5761103c7050.mp4

knausj85 commented 2 years ago

Since the snap window function uses ui.active_window() -

https://github.com/knausj85/knausj_talon/blob/3446393f872d670155840b54f20aeeb34aef83e6/code/window_snap.py#L215

this might be a Talon bug. I might suggest debugging this with the below command (or maybe the talon_hud)

https://github.com/knausj85/knausj_talon/blob/3446393f872d670155840b54f20aeeb34aef83e6/misc/talon_helpers.talon#L25

or

https://github.com/knausj85/knausj_talon/blob/3446393f872d670155840b54f20aeeb34aef83e6/misc/talon_helpers.talon#L52