https://github.com/mattn/ctrlp-ghq
https://github.com/mattn/ctrlp-ghq
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattn/ctrlp-ghq
- Owner: mattn
- Created: 2014-09-03T01:55:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-05-23T11:37:00.000Z (about 4 years ago)
- Last Synced: 2025-04-23T15:08:07.886Z (3 months ago)
- Language: Vim script
- Size: 9.77 KB
- Stars: 32
- Watchers: 4
- Forks: 2
- 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`.

## 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)