https://github.com/smondet/ctrlp-insert_from_systemlist
Call a shell command, pick a line with CtrlP, insert it.
https://github.com/smondet/ctrlp-insert_from_systemlist
Last synced: 5 months ago
JSON representation
Call a shell command, pick a line with CtrlP, insert it.
- Host: GitHub
- URL: https://github.com/smondet/ctrlp-insert_from_systemlist
- Owner: smondet
- License: mit
- Created: 2016-02-10T00:19:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T02:05:05.000Z (over 9 years ago)
- Last Synced: 2025-01-08T13:02:50.002Z (6 months ago)
- Language: VimL
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `ctrlp-insert_from_systemlist`
Call a shell command, pick a line with CtrlP, insert it.
Example setup:
```vim
Plug 'smondet/ctrlp-insert_from_systemlist'
let g:ctrlp_extensions = [ 'insert_from_systemlist'] " Add it to the list of CtrlP extensions
fun! GetDates()
let id = ctrlp#insert_from_systemlist#run_with_command('gdate -R ; gdate -I ; date ')
call ctrlp#init(id)
endfun
nmap pid :call GetDates()
nmap pig :call ctrlp#init(ctrlp#insert_from_systemlist#run_with_command('git ls-files'))
```