Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mitchellwrosen/repld

repl daemon thinger
https://github.com/mitchellwrosen/repld

Last synced: 3 months ago
JSON representation

repl daemon thinger

Awesome Lists containing this project

README

        

# repld

Spawn an foregrounded `psql` repl that is also serving the repl on a unix domain
socket:

```
> repld 'psql -U postgres'
```

Send input to it from another shell:

```
> repld-send <<< 'create table foo (bar int);'
```

### vim

Example `vim` settings:

```
nn s m`vip:silent '<,'>w !repld-send``
nn S m`:silent w !repld-send``
vn s m`:silent '<,'>w !repld-send``
```

In normal mode, press `Space-s` to send the inner paragraph to the `repld`
server, or `Space-S` to send the whole buffer.

In visual mode, press `Space-s` send the highlighted lines.