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
  • 2 hours ago
  • 12 years ago

Installs

  • Total 14K
  • Win 8K
  • Mac 3K
  • Linux 2K
Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27
Windows 1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 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 0 0 0 0 1
Mac 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 1 1 1 0 0 0 0 0 0 1 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 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.