PHPLOC
Sublime Text plugin for PHPLOC support
Details
Installs
- Total 5K
- Win 4K
- Mac 499
- Linux 831
Nov 22 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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
PHPLOC
This plugin allows you the run PHPLOC straight from the Sublime Text interface.
Built and tested using PHPLOC 2.1.4.
Installation:
Option 1: Use Package Control to install PHPLOC
Option 2: Download and unzip the plugin files to <Your ST2-ST3 Packages Directory>\SublimePHPLOC\
Usage:
- Press Cmd + Shift + P to open the control palette
- Search for
PHPLOC
and pick your command
Also you can use the Tools --> PHPLOC...
menu item, or set up custom keybindings
Available Palette Commands
**Run On Project
**
This is the equivalent of running: phploc [path to sublime project root directory]
**Run On Current File
**
This is the equivalent of running: phploc [path to current file]
This command is only visible when the focused view contains a PHP file.
Run On Selection
This option runs PHPLOC on the currently selected lines.
This command is only visible when the focused view contains a PHP file.
You can also right-click a directory or PHP file in the sidebar and select Run PHPLOC
from the context menu to run PHPLOC on that file/directory. Note that this command will only appear when clicking PHP files; any other filetype will not allow selecting the command from the context menu.
Keybinding:
You can also set up custom key bindings.
Example: Setting up key binding to execute PHPLOC on current open project:
{
"keys": ["ctrl+alt+l"],
"command": "sublime_phploc_project"
}
Commands that can be executed via key binds:
- sublime_phploc_path
(can pass in a 'paths' argument with a list containing a single path…see 'Side Bar.sublime-menu' in source for skeleton example)
- sublime_phploc_project
- sublime_phploc_selected_lines
Changelog
1.0.0
Added ability to execute PHPLOC on currently-selected text in PHP files
Current file command only shows up if applicable (PHP file has focus)
Module refactoring
0.9.1.1
Fixed incorrect package name in README install instructions (name changed before Package Control submission)
0.9.1
Fixed missing subprocess
module used when running on Windows OS
0.9
Initial release