Skip to content

Simple tool to pipe text into various cli tools. (psql, mysql, and so on)

License

Notifications You must be signed in to change notification settings

baverman/vial-pipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vial Pipe

Simple tool to pipe a text into various cli tools. (psql, mysql, and so on)

First line in a buffer defines a command to execute (can contain a shebang).

Mappings

<Plug>VialPipeExecute pipes current paragraph (a content between { and } marks) or visual selection

<Plug>VialPipeExecuteAll pipes whole buffer.

For example:

au FileType sql nmap <buffer> <leader><cr> <Plug>VialPipeExecute
au FileType sql vmap <buffer> <leader><cr> <Plug>VialPipeExecute

will map <leader><cr> to execute an expression under the cursor (or selected expression) in sql buffers.

And:

au FileType python nmap <buffer> <leader><cr> <Plug>VialPipeExecuteAll

will map <leader><cr> to execute python script.

About

Simple tool to pipe text into various cli tools. (psql, mysql, and so on)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages