Skip to content

Support Edge Swipe#1036

Open
natty291 wants to merge 2 commits into
holzschu:SwiftTerm2from
natty291:feature/swipe
Open

Support Edge Swipe#1036
natty291 wants to merge 2 commits into
holzschu:SwiftTerm2from
natty291:feature/swipe

Conversation

@natty291

Copy link
Copy Markdown

Swipe from the right edge to switch back to the browser.

@holzschu

Copy link
Copy Markdown
Owner

Thanks a lot for this PR. If I undesrstand correctly, it allows a switch from the terminal to the browser with right-edge swipe. Would it be possible to also have edge-swipe for the browser? (right-edge-swipe = forward history, left-edge-swipe = back history or back to the terminal)?

@natty291

Copy link
Copy Markdown
Author

Yes, you’ll be able to switch to the browser by swiping from the right edge of the terminal.
Since WkWebview has the default edge swipe enabled, the forward and back functions seem to work with edge swipes.
I’ll need to test it, but according to the AI’s response, it looks like swiping to the left should take you back to the terminal. (I’ll give it a try.)

@natty291

Copy link
Copy Markdown
Author

I added a feature that returns to the terminal when you swipe from the left edge of the browser.
It seems to behave erratically when multiple web pages are open.

  1. internalbrowser http://www.google.com
  2. exit browser
  3. internalbrowser http://www.python.org
  4. When you go back one page, the Google page is displayed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants