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

Installs

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

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.