Repository navigation
Fix commands #965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix commands #965
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,130 +1,67 @@ | ||
| "" | ||
| " Update Phpactor to the latest version using the branch | ||
| " defined with @setting(g:phpactorBranch) | ||
| command! -nargs=0 PhpactorUpdate call phpactor#Update() | ||
|
|
||
| "" | ||
| " Clear the entire cache - this will take effect for all projects. | ||
| command! -nargs=0 PhpactorCacheClear call phpactor#CacheClear() | ||
|
|
||
| "" | ||
| " Show some information about Phpactor's status | ||
| command! -nargs=0 PhpactorStatus call phpactor#Status() | ||
|
|
||
| "" | ||
| " Dump Phpactor's configuration | ||
| command! -nargs=0 PhpactorConfig call phpactor#Config() | ||
|
|
||
| "" | ||
| " Extract a new method from the current selection | ||
| command! -range=% PhpactorExtractMethod call phpactor#ExtractMethod() | ||
| command! -buffer -range=% PhpactorExtractMethod call phpactor#ExtractMethod() | ||
|
|
||
| "" | ||
| " Extract the selected expression and assign it to a variable before (placing | ||
| " it before the current statement) | ||
| command! -range=% PhpactorExtractExpression call phpactor#ExtractExpression('v') | ||
| command! -buffer -range=% PhpactorExtractExpression call phpactor#ExtractExpression('v') | ||
|
|
||
| "" | ||
| " Extract a constant from a literal | ||
| command! -nargs=0 PhpactorExtractConstant call phpactor#ExtractConstant() | ||
|
|
||
| "" | ||
| " Expand the class name under the cursor to it's fully-qualified-name | ||
| command! -nargs=0 PhpactorClassExpand call phpactor#ClassExpand() | ||
| command! -buffer -nargs=0 PhpactorExtractConstant call phpactor#ExtractConstant() | ||
|
|
||
| "" | ||
| " Import the name under the cusor. If multiple options are available, you | ||
| " are able to choose one. | ||
| command! -nargs=0 PhpactorImportClass call phpactor#ImportClass() | ||
| command! -buffer -nargs=0 PhpactorImportClass call phpactor#ImportClass() | ||
|
|
||
| "" | ||
| " Attempt to import all non-resolvable classes in the current class (based | ||
| " on offset position) | ||
| command! -nargs=0 PhpactorImportMissingClasses call phpactor#ImportMissingClasses() | ||
|
|
||
| "" | ||
| " Goto the definition of the class, method or function under the cursor. Open | ||
| " the definition in the current window. | ||
| command! -nargs=0 PhpactorGotoDefinition call phpactor#GotoDefinition() | ||
|
|
||
| "" | ||
| " Goto type (class) of the symbol under the cursor. | ||
| command! -nargs=0 PhpactorGotoType call phpactor#GotoType() | ||
|
|
||
| "" | ||
| " As with @command(PhpactorGotoDefinition) but open in a vertical split. | ||
| command! -nargs=0 PhpactorGotoDefinitionVsplit call phpactor#GotoDefinitionVsplit() | ||
|
|
||
| "" | ||
| " As with @command(PhpactorGotoDefinition) but open in a horizontal split. | ||
| command! -nargs=0 PhpactorGotoDefinitionHsplit call phpactor#GotoDefinitionHsplit() | ||
|
|
||
| "" | ||
| " As with @command(PhpactorGotoDefinition) but open in a new tab | ||
| command! -nargs=0 PhpactorGotoDefinitionTab call phpactor#GotoDefinitionTab() | ||
|
|
||
| "" | ||
| " Load all implementations of the class under the cursor into the quick-fix | ||
| " list. | ||
| command! -nargs=0 PhpactorGotoImplementations call phpactor#GotoImplementations() | ||
| command! -buffer -nargs=0 PhpactorImportMissingClasses call phpactor#ImportMissingClasses() | ||
|
|
||
| "" | ||
| " Show information about the symbol under the cursor. | ||
| command! -nargs=0 PhpactorHover call phpactor#Hover() | ||
| command! -buffer -nargs=0 PhpactorHover call phpactor#Hover() | ||
|
|
||
| "" | ||
| " Show the context menu for the current cursor position. | ||
| command! -nargs=0 PhpactorContextMenu call phpactor#ContextMenu() | ||
| command! -buffer -nargs=0 PhpactorContextMenu call phpactor#ContextMenu() | ||
|
|
||
| "" | ||
| " Copy the current file - updating the namespace and class name according to | ||
| " the new file location and name | ||
| command! -nargs=0 PhpactorCopyFile call phpactor#CopyFile() | ||
| command! -buffer -nargs=0 PhpactorCopyFile call phpactor#CopyFile() | ||
|
|
||
| "" | ||
| " Move the current file - updating the namespace and class name according to | ||
| " the new file location and name | ||
| command! -nargs=0 PhpactorMoveFile call phpactor#MoveFile() | ||
|
|
||
| "" | ||
| " List all installed extensions | ||
| command! -nargs=0 PhpactorExtensionList call phpactor#ExtensionList() | ||
|
|
||
| "" | ||
| " Install an extension | ||
| command! -nargs=1 PhpactorExtensionInstall call phpactor#ExtensionInstall(<q-args>) | ||
|
|
||
| "" | ||
| " Remove an extension | ||
| command! -nargs=1 PhpactorExtensionRemove call phpactor#ExtensionRemove(<q-args>) | ||
|
|
||
| "" | ||
| " Create a new class. You will be offered a choice of templates. | ||
| command! -nargs=0 PhpactorClassNew call phpactor#ClassNew() | ||
| command! -buffer -nargs=0 PhpactorMoveFile call phpactor#MoveFile() | ||
|
|
||
| "" | ||
| " Inflect a new class from the current class (e.g. generate an interface for | ||
| " the current class) | ||
| command! -nargs=0 PhpactorClassInflect call phpactor#ClassInflect() | ||
| command! -buffer -nargs=0 PhpactorClassInflect call phpactor#ClassInflect() | ||
|
|
||
| "" | ||
| " Attempt to find all references to the class name or method under the cursor. | ||
| " The results will be loaded into the quik-fix list | ||
| command! -nargs=0 PhpactorFindReferences call phpactor#FindReferences() | ||
| command! -buffer -nargs=0 PhpactorFindReferences call phpactor#FindReferences() | ||
|
|
||
| "" | ||
| " Navigate - jump to the parent class, interface, or any of the relationships | ||
| " defined in `navigation.destinations` https://phpactor.github.io/phpactor/configuration.html#reference | ||
| command! -nargs=0 PhpactorNavigate call phpactor#Navigate() | ||
| command! -buffer -nargs=0 PhpactorNavigate call phpactor#Navigate() | ||
|
|
||
| "" | ||
| " Rotate the visiblity of the method under the cursor | ||
| command! -nargs=0 PhpactorChangeVisibility call phpactor#ChangeVisibility() | ||
| command! -buffer -nargs=0 PhpactorChangeVisibility call phpactor#ChangeVisibility() | ||
|
|
||
| "" | ||
| " Generate accessors for the current class | ||
| command! -nargs=0 PhpactorGenerateAccessors call phpactor#GenerateAccessors() | ||
| command! -buffer -nargs=0 PhpactorGenerateAccessors call phpactor#GenerateAccessors() | ||
|
|
||
| "" | ||
| " Automatically add any missing properties to a class | ||
| command! -nargs=0 PhpactorTransform call phpactor#Transform() | ||
| command! -buffer -nargs=0 PhpactorTransform call phpactor#Transform() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated - should probably deprecate this and create a documented
g:phpactorBinPath