Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 16 days ago
JSON representation

Call a shell command, pick a line with CtrlP, insert it.

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'))
```