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
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 1 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 0 0 2 0 1 0 0 0 1 1 1 1 0 1 1 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 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 1 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 1 0 0 0 0 1 0 0 0 0 1 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.