https://github.com/mitchellwrosen/repld
repl daemon thinger
https://github.com/mitchellwrosen/repld
Last synced: 2 months ago
JSON representation
repl daemon thinger
- Host: GitHub
- URL: https://github.com/mitchellwrosen/repld
- Owner: mitchellwrosen
- Created: 2019-07-04T20:37:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T20:24:47.000Z (about 1 year ago)
- Last Synced: 2025-03-30T03:03:35.417Z (3 months ago)
- Language: Haskell
- Size: 56.6 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.