Skip to content

Update vim-composer.vim #13

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 6 commits into from
May 26, 2015
Merged

Update vim-composer.vim #13

merged 6 commits into from
May 26, 2015

Conversation

sensorario
Copy link
Member

Every time I need to open a file, I use CtrlP plugin to find it inside my filesystem. Sometimes, Nerdtree. But, ... composer knows where files are. With a simply grep, in bash, I can "ask" composer where a file is. In VimL I can get current word. So, ... I'll like to use current word, and pass it to my :grep: and finally, .. I want to open the file returned by grep.

  • remove remap
  • introduce default vendor path ./vendor/composer

@gianarb
Copy link

gianarb commented May 18, 2015

ahah good idea :)

@sensorario
Copy link
Member Author

This could be a killer feature for me. I need it!!! XD

composer.json KNOWS where autoload is. And also know which PSR rule is applied. For example:

"autoload": {
    "psr-0": {
        "": "src/"
    }
},

so ...

@sensorario
Copy link
Member Author

In this cases, ... maybe a pull request is not a good Idea. Do you think an issue could be better?

@gianarb
Copy link

gianarb commented May 18, 2015

PR is good.. Maybe you can improve your first post with a good description of this feature.. 👍
And you can call help with VimScipt :)

Simone Gentili added 3 commits May 22, 2015 13:48
Instead of directly open ctrlp with current word,
ComposerKnowWhereCurrentFileIs show a message that explain that there is
not only one occurency of cword in composer auto-generated files.
@gianarb
Copy link

gianarb commented May 26, 2015

Oh perfect in my opinion this is a good feature.. Help us user to open file without other plugin..
And help other developers to write our extensions of this plugin..

Can you add this function into the README and your personal map suggestion? Thanks a lot

@sensorario sensorario changed the title [WIP] Update vim-composer.vim Update vim-composer.vim May 26, 2015
@gianarb
Copy link

gianarb commented May 26, 2015

Thanks 👍

gianarb pushed a commit that referenced this pull request May 26, 2015
@gianarb gianarb merged commit 1172796 into vim-php:master May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants