Giter Site home page Giter Site logo

ynrng / swipe-to-navigate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seivan/swipe-to-navigate

0.0 0.0 0.0 721 KB

VSCode Extension for adding three finger swipe with various options similar to Xcode.

Home Page: https://marketplace.visualstudio.com/items?itemName=Seivan.swipe-to-navigate

License: MIT License

JavaScript 36.48% TypeScript 63.52%

swipe-to-navigate's Introduction

Swipe To Navigate VSCode Extension

Features

Adding support for navigating:

  • Currently opened tabs.
  • Currently opened tabs within a group.
  • Recently focused code and opened files.
  • Recently opened files.

Supported Platforms

  • macOS

    • Navigate using three finger swipes on the touchpad in a similar fashion to Xcode.
    • macOS trackpad Settings
  • Windows & Linux

    • Navigate using keyboard media keys or browser commands, as well as the "Back" button built into some mice on Windows.

Supported configuration options

"swipeToNavigate.action": "disabled" | "tabs" |  "grouped-tabs" | "recent-code" | "recent-files"
"swipeToNavigate.directionReverse": true | false

Examples:

  • Currently opened tabs - default.
"swipeToNavigate.action": "tabs"
"swipeToNavigate.directionReverse": false
  • Currently opened tabs in a single group.
"swipeToNavigate.action": "grouped-tabs"
  • Recently focused code & files - like Xcode.
"swipeToNavigate.action": "recent-code"
  • Recently opened files.
"swipeToNavigate.action": "recent-files"

How does it work?

Swipe To Navigate relies on the Monkey Patch Extension to inject custom javascript in VSCode. After installation you should be prompted to enable Monkey Patch. You can always trigger this manually by invoking the "Enable Monkey Patch" command.

Why Monkey Patch?

These changes were initially proposed directly to VSCode but this discussion indicated that they're trying to limit further code that depends on Electron APIs

Credits

Monkey Patch Extension from Matej Knopp made this possible without direct changes to VSCode.

swipe-to-navigate's People

Contributors

dependabot[bot] avatar ivanph avatar seivan avatar ynrng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.