Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattn/ctrlp-ghq
https://github.com/mattn/ctrlp-ghq
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattn/ctrlp-ghq
- Owner: mattn
- Created: 2014-09-03T01:55:05.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-05-23T11:37:00.000Z (over 3 years ago)
- Last Synced: 2024-06-16T09:36:18.363Z (3 months ago)
- Language: Vim script
- Size: 9.77 KB
- Stars: 32
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ctrlp-ghq
CtrlP extension for `ghq list`. Default action is `lcd`.
![](http://go-gyazo.appspot.com/ceb199372928d194.png)
## Usage
```vim
:CtrlPGhq
```If may add map into your vimrc like below: >
```vim
noremap g :CtrlPGhq
```## Customize
When you want to do custom action for the selected line, you can do it with
`` key. It require following configuration:```vim
let g:ctrlp_ghq_actions = [
\ {"label": "Open", "action": "e", "path": 1},
\ {"label": "Look", "action": "!ghq look", "path": 0},
\]
````label` is used for displaying menu. `action` is used for prefix string of
command to be called. `path` is used for checking whether the argument should
be full-path(1) or selected string(0).You can change default action by following configuration:
```vim
let ctrlp_ghq_default_action = 'e'
```If you don't set this, default action will do `lcd`.
You can enable cache function which stores repositories into cache file.
```vim
let g:ctrlp_ghq_cache_enabled = 1
```* Press `` to purge the cache for the repositories under the `ghq.root` directory.
## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a mattn)