From 8b28efedae0110686796e4510f817909eb2bda8c Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Wed, 30 Sep 2026 16:20:22 -0400 Subject: [PATCH] feat(cable): add omp-sessions cable configuration --- television/cable/omp-sessions.toml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 television/cable/omp-sessions.toml diff --git a/television/cable/omp-sessions.toml b/television/cable/omp-sessions.toml new file mode 100644 index 0000000..ac6355f --- /dev/null +++ b/television/cable/omp-sessions.toml @@ -0,0 +1,30 @@ +[metadata] +name = "omp-sessions" +description = """ +omp sessions of the current git repo, newest first: age, the branch HEAD was +on when the session was last written, and the title. The preview is the +conversation's message text; enter resumes the session. Listing, preview and +resume live in ~/.local/bin/omp-session, whose launcher (ctrl-a in fish and +zsh) opens this cable when it has no session to resume on the default branch. +""" +requirements = ["omp-session", "omp"] + +# Record: display, session file (tab separated). +[source] +command = "omp-session --list" +shell = "bash" +display = "{split:\\t:0}" +output = "{split:\\t:1}" + +[preview] +command = "omp-session --preview '{split:\\t:1}'" +shell = "bash" + +[keybindings] +enter = "actions:resume" + +[actions.resume] +description = "Resume the session" +command = "omp-session --resume '{split:\\t:1}'" +shell = "bash" +mode = "execute"