find-and-jump

Find & Jump - VS Code extension to easily to find text, jump to it and cycle through matches, directly in your active editor window.

MIT License

Stars
4

Find & Jump 🔍🦘 (VS Code extension)

Easy way to find text, jump to it and cycle through matches, directly in your active editor window.

Usage

  1. Press a keybinding to activate search mode
  2. Enter your search text
  3. Every new character will show new matches and select the closest match automatically
  4. Press another key (e.g. TAB) to cycle through the matches

The difference to other extensions like this is that every keystroke will show & select new matches, without the need to confirm your search first.

Extension Settings

Configuration

  • Case-sensitive search
    • findAndJump.caseSensitiveSearch
    • default: false
  • Show a tooltip if the current search has no matches
    • findAndJump.showTooltipIfNoMatches
    • default: false
  • Minimum number of characters to execute the search
    • findAndJump.minimumCharactersToExecuteSearch
    • default: 2
  • Custom background color for all matches
    • findAndJump.matchesColor.background
    • default: "#3e56c2"
  • Custom foreground color for all matches
    • findAndJump.matchesColor.foreground
    • default: "white"
  • Custom background color for the currently selected match
    • findAndJump.currentMatchColor.background
    • default: "#132eab"
  • Custom foreground color for the currently selected match
    • findAndJump.currentMatchColor.foreground
    • default: "white"

Keybindings

There are three main keybindings: activate, exit and cycle through matches.

  • Activate search mode
    • findAndJump.activateSearchMode
    • default: Alt + Q
  • Exit search mode
    • findAndJump.exitSearchMode
    • default: Escape & arrow keys
  • Cycle through results in search mode. Only active when search mode is active.
    • findAndJump.cycleThroughMatches
    • default: Tab
  • Cycle backwards through results in search mode. Only active when search mode is active.
    • findAndJump.cycleThroughMatchesBackwards
    • default: Shift + Tab

Here's the default keybindings for the JSON settings:

{
  "key": "alt+q",
  "command": "findAndJump.activateSearchMode",
  "when": "editorTextFocus"
},
{
  "key": "tab",
  "command": "findAndJump.cycleThroughMatches",
  "when": "editorTextFocus && findAndJump.isSearchModeActive"
},
{
  "key": "shift+tab",
  "command": "findAndJump.cycleThroughMatchesBackwards",
  "when": "editorTextFocus && findAndJump.isSearchModeActive"
},
{
  "key": "escape",
  "command": "findAndJump.exitSearchMode",
  "when": "editorTextFocus && findAndJump.isSearchModeActive"
},
{
  "key": "up",
  "command": "findAndJump.exitSearchMode",
  "when": "editorTextFocus && findAndJump.isSearchModeActive"
},
{
  "key": "right",
  "command": "findAndJump.exitSearchMode",
  "when": "editorTextFocus && findAndJump.isSearchModeActive"
},
{
  "key": "down",
  "command": "findAndJump.exitSearchMode",
  "when": "editorTextFocus && findAndJump.isSearchModeActive"
},
{
  "key": "left",
  "command": "findAndJump.exitSearchMode",
  "when": "editorTextFocus && findAndJump.isSearchModeActive"
}

Release Notes

🚧 Still under construction 🚧

Please refer to the GitHub releases.