ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Find Function Definition

by timdouglas ST2

Sublime Text 2 plugin to find and open a function's declaration in your project

Details

  • 2013.07.31.13.01.31
  • github.​com
  • github.​com
  • 11 years ago
  • 2 hours ago
  • 12 years ago

Installs

  • Total 10K
  • Win 5K
  • Mac 3K
  • Linux 2K
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-find-function-definition

Sublime Text 2 plugin to find and open a function's declaration in your project

Installation

The easy way…

  1. Just use Package Control to install it

The slightly less (but still fairly) easy way…

  1. Click Preferences -> Browse Packages
  2. Download the source code folder and paste into the packages folder

The slightly geeky way…

  1. git clone this repo into your sublime packages directory

Usage

Highlight a function and either hit F8 or right click and go to Find Function Definition. Plugin will search your project for the function and open a file up to it, or if multiple instances found display a list of files to open.

Takes into account folder_exclude_patterns and file_exclude_patterns settings.

Settings

The following function definition patterns are used by default, but you can add your own by going to Preferences -> Package Settings -> Find Function Definition -> Settings - User

{
  "definitions": /* where $NAME$ is the name of the function */
  [
    "function $NAME$",
    "$NAME$: function",
    "$NAME$:function",
    "$NAME$ = function",
    "$NAME$= function",
    "$NAME$=function",
    "def $NAME$("
  ],
  "file_exclude_patterns": [] /* optional list of files to exclude, falls back to global setting if not set */
}