uex

command module
v0.0.0-...-b457b73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

README

uex

Dead simple terminal IRC client.

uex simply appends formatted lines to an output file, and handles input through a named pipe.

/path/to/uex/directory
└─── freenode
    ├── #ascii.town
    │   ├── in
    │   └── out
    ├── #lobsters
    │   ├── in
    │   └── out
    ├── #python
    │   └── in
    │   └── out
    └── _server
        ├── in
        └── out

Inspired by suckless' ii, but with less of a focus on being as minimal as possible (so a single daemon can handle multiple networks, there is some error handling, etc.).

client

uex also includes a simple terminal client which wraps the input / output in a command. Effectively, it just calls tail -F #channel/out and uses readline for input line editing.

./client path/to/uex/directory/\#python

Client only supports some basic IRC commands.

Command Description
/switch [BUFFER] Switch view to BUFFER (default to last buffer)
/list Show all active buffers on current network.
/refresh Rerender all history for current buffer.
/r[econnect] Close and reconnect to current network.
/j[oin] CHANNEL Join a channel.
/quote MSG Send MSG to server directly.
/me ACTION Send CTCP ACTION.
/shrug [TEXT] ¯\_(ツ)_/¯

Using fzf in conjuction with uex greatly improves the experience. Something like this will give you a nice switcher UI for jumping between buffers.

UEX_DIR=/tmp/uex/

uex () {
  while true; do
    channel=$(\
        find $UEX_DIR -type d -mindepth 2 -print | \
        sed "s;$UEX_DIR;;g" | \
        fzf --preview="tail -50 $UEX_DIR{}/out" --preview-window down:75%\
    )

    if [ -z "$channel" ]; then
      return
    fi

    uex-client "$UEX_DIR$channel"
  done
}

note

It's probably not worth setting this up. It's very opinionated and there's no documentation.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL