Skip to content

Adds a couple of missing features to SublimeText 3 Find Results buffer

License

Notifications You must be signed in to change notification settings

evandroforks/BetterFindBuffer

 
 

Repository files navigation

BetterFindBuffer for SublimeText 3

Adds a couple of missing features to SublimeText Find Results buffer.

Note: You need to restart your SublimeText after installing this plugin.

Features

  • Open the the file and line under the cursor by pressing Enter or o
  • n and p to jump to next/previous file
  • j and k to jump to next/previous match
  • Open multiple files with multiple cursor at the same time by selecting lines and pressing Enter or o
  • Open all files in the result with a
  • Fold a result with f and move to next file
  • Show shortcuts with ?
  • Remove path prefix in filenames based on open sublime's project folders (can be disabled in settings)
  • Set find results as readonly (can be disabled in settings)
  • Adds search keyword and file names to the symbols list (use Super+R)
  • Cleaner UI (hides line numbers, gutter, indent guides)
  • Better Syntax highlighting for find results
  • Custom color scheme

BetterFindBuffer Screenshot1

BetterFindBuffer Screenshot2

Installation

By Package Control

  1. Download & Install Sublime Text 3 (https://www.sublimetext.com/3)
  2. Go to the menu Tools -> Install Package Control, then, wait few seconds until the installation finishes up
  3. Now, Go to the menu Preferences -> Package Control
  4. Type Add Channel on the opened quick panel and press Enter
  5. Then, input the following address and press Enter
    https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json
    
  6. Go to the menu Tools -> Command Palette... (Ctrl+Shift+P)
  7. Type Preferences: Package Control Settings – User on the opened quick panel and press Enter
  8. Then, find the following setting on your Package Control.sublime-settings file:
    "channels":
    [
        "https://packagecontrol.io/channel_v3.json",
        "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
    ],
  9. And, change it to the following, i.e., put the https://raw.githubusercontent... line as first:
    "channels":
    [
        "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
        "https://packagecontrol.io/channel_v3.json",
    ],
    • The https://raw.githubusercontent... line must to be added before the https://packagecontrol.io... one, otherwise, you will not install this forked version of the package, but the original available on the Package Control default channel https://packagecontrol.io...
  10. Now, go to the menu Preferences -> Package Control
  11. Type Install Package on the opened quick panel and press Enter
  12. Then, search for BetterFindBuffer and press Enter

See also:

  1. ITE - Integrated Toolset Environment
  2. Package control docs for details.

Changing color scheme

If you don't like colors used in the find results buffer just copy this file to your User folder, change colors and save it and then create a file called Find Results.sublime-settings in your User folder and paste the code below:

{
  "color_scheme": "Path to your custom color scheme file. e.g. Packages/User/Custom_FindResults.hidden-tmTheme",
}

Alternatively, you can use BetterFindBuffer-Designer tool as GUI to easily customize the Find-Results color scheme.

Credit

FindInFilesOpenFileCommand is inspired by this answer on StackOverflow

License

See the LICENSE file