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

Go​To​Class

by vovayatsyuk ALL

Sublime Text Plugin to open the class file of the highlighted name

Details

  • 2.1.0
  • github.​com
  • 1 year ago
  • 1 hour ago
  • 12 years ago

Installs

  • Total 14K
  • Win 8K
  • 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 Jun 12
Windows 0 0 4 0 0 0 0 0 0 0 0 1 0 0 2 0 0 1 0 0 2 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 1 0 1
Mac 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 1 1 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 1 0 0 1 0 0

Readme

Source
raw.​githubusercontent.​com

GoToClass

Sublime Text Plugin to open the highlighted or parent class file.

Installation

  1. Run Package Control: Install Package command
  2. Type GoToClass to find the package and press Enter

Usage

Press ⌘⇧P and use GoToClass commands:

  • Goto Class — will open “Goto Anything” with prefilled fully qualified PHP class name that's currently selected.
  • Goto Parent Class — will open “Goto Anything” with prefilled fully qualified parent PHP class name.
  • Goto Function — will open “Goto Anything” with prefilled text prefixed with @.
  • Goto Data — will open “Goto Anything” with prefilled text prefixed with #.

Key Bindings

Key bindings are no longer included in this package. To restore old key bindings open Preferences > Key Bindings and add the following settings:

MacOS

{ "keys": ["ctrl+super+o"], "command": "go_to_class" },
{ "keys": ["ctrl+super+shift+o"], "command": "go_to_fully_qualified_class" },
{ "keys": ["super+shift+o"], "command": "go_to_parent_class" },
{ "keys": ["super+shift+r"], "command": "go_to_function" },
{ "keys": ["super+shift+;"], "command": "go_to_data" }

Linux or Windows

{ "keys": ["ctrl+alt+o"], "command": "go_to_class" },
{ "keys": ["ctrl+alt+shift+o"], "command": "go_to_fully_qualified_class" },
{ "keys": ["ctrl+shift+o"], "command": "go_to_parent_class" },
{ "keys": ["ctrl+shift+r"], "command": "go_to_function" },
{ "keys": ["ctrl+shift+;"], "command": "go_to_data" }

Settings

Open Preferences > Package Settings > GoToClass.

class_separator _

This option is useful for old PHP projects only. Back in old days we used _ as a namespace separator. For example, Mage_Catalog_Model_Product was located in Mage/Catalog/Model/Product folder.