Giter Site home page Giter Site logo

vscode-jumpy's Introduction

Jumpy Extension for Visual Studio Code

Feature Overview

Jumpy provides fast cursor movement, inspired by Atom's package of the same name.

jumpy-preview

Commands

When Jumpy is activated, decorations (two-letter codes) are created in the area around your cursor. Then simply type in a two letter code to jump to that position.

Where the decorations are created is dependent on the command you use:

  • extension.jumpy-word (Jumpy Word Mode): creates decorations for words in the area around your cursor
  • extension.jumpy-line (Jumpy Line Mode): creates decorations for non-empty lines in the area around your cursor

No default keybindings have been provided with this extension to avoid conflicts. Instructions for setting up your own keybindings are here

To exit Jumpy mode, press a non-a-z key such as space or enter.

To set up the keybindings like Atom (Shift+Enter), add the following to your keybindings.json (File -> Preferences -> Keyboard Shortcuts):

    {
        "key": "shift+enter",
        "command": "extension.jumpy-word",
        "when": "editorTextFocus"
    }

You can also set up a special keybinding to exit Jumpy mode, for example ESC:

    {
        "key": "Escape",
        "command": "extension.jumpy-exit",
        "when": "editorTextFocus && jumpy.isJumpyMode"
    }

Settings

Jumpy settings can be configured by adding entries into your settings.json (File -> Preferences -> User Settings). The following settings are available:

"jumpy.wordRegexp": The Regexp to use to match words in Jumpy Word Mode. The default is "\\w{2,}" which matches a string of characters [A-Za-z0-9_], length two or more. To match individual words inside camel case, for example, override with "([A-Z]+([0-9a-z])*)|[a-z0-9]{2,}".

"jumpy.lineRegexp": The Regexp to use to match empty lines (Jumpy won't create decorations for empty lines). The default is "^\\s*$"

Support

Create an issue

vscode-jumpy's People

Contributors

wmaurer avatar alefragnani avatar

Watchers

James Cloos avatar LE avatar  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.