blinksh / blink

Blink Mobile Shell for iOS (Mosh based)
https://blink.sh
GNU General Public License v3.0
6.15k stars 572 forks source link

Two-finger swipe gesture not working from VS Code on Magic Keyboard touchpad #1503

Open djjlewis opened 2 years ago

djjlewis commented 2 years ago

Checklist

Configuration

Blink Version: v15.0.8.542 iOS verision: 15.5 iPad Pro 11" 3rd Gen with Magic Keyboard

Describe the bug

With one or more blink shells and a VS Code tab open, using the two-finger swipe gesture on the Magic Keyboard touchpad when in the VS Code tab does not work (nothing happens). One-finger swipe on the screen works as expected. Two-finger swipe on the touchpad does work between Blink Shell tabs, but not VS Code.

Two-finger swipe on the Magic Keyboard touchpad from VS Code should swipe to another open Blink shell tab.

agluck3 commented 2 years ago

I am also experiencing this. If you move your cursor all the way to the bottom of the vscode screen and do the two finger swipe it does perform the swipe. This is a work around and really not ideal.

pcho commented 2 years ago

Another workaround would be to use Shift + CMD + [ or ] to switch tabs.

You can also create a shortcut in Settings > Keyboard > Shortcuts, then click Add, insert CMD + 1 combination and choose “Switch to tab 1” action.

agluck3 commented 2 years ago

Off topic here a little. The latest update to 16 has introduced a lot of problems in the vscode interface. It drove me to vim as an IDE. Oh my gosh. Vim on blink is just great. I coded with it all day today. It has a lot of plugins you can even get hit support for it. <3 I am in love all over again. So one solution would also be to switch to vim. Two finger swipe works there flawlessly.

carloscabanero commented 1 year ago

The issue here is that VS Code gets all the mouse gestures, and obviously loves two finger swipes. The way to go, for now, is to use the mentioned shortcut (Shift + CMD + [ or ]) or the swipe gesture (this one may also require to be started from the iPad's edge).

We will try to smooth things down in the future so that all the gestures and our shortcuts can coexist, but atm we cannot prioritize this.

carloscabanero commented 1 year ago

Related to #1623 . We can probably figure out both at the same time.