From 478186507145ef130d4d3c67c28169c6c82b8ab9 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 14 Nov 2024 17:23:11 -0600 Subject: [PATCH] truncate the final project line --- src/selector.nim | 2 ++ src/tmuxutils.nim | 1 - todo.md | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/selector.nim b/src/selector.nim index 47c6791..3774aa2 100644 --- a/src/selector.nim +++ b/src/selector.nim @@ -69,6 +69,8 @@ proc display(s: State, p: Project): Bbstring = # will fail without clip! result.add p.tmuxinfo.bb("faint") + result.truncate(state.buffer.width - 5) + func addLine(b: var Buffer, text: string) = b.buffer.add (" " & text).alignLeft(b.width) & "\n" diff --git a/src/tmuxutils.nim b/src/tmuxutils.nim index 4010c2a..37bc03e 100644 --- a/src/tmuxutils.nim +++ b/src/tmuxutils.nim @@ -34,7 +34,6 @@ template cmd(tmux: Tmux, args: string) = let code = execCmd "tmux " & args if code != 0: tmuxError(args) - # discard tmux.cmdGet args proc toSession(s: string): TmuxSession = let ss = s.split(":", 1) diff --git a/todo.md b/todo.md index 6e30256..1c89530 100644 --- a/todo.md +++ b/todo.md @@ -1,6 +1,7 @@ # tsm todo's - [x] add message about new keybind Ctrl+E -- [ ] add open session info as faint text -> "session: 2 windows (created ......)" +- [-] add open session info as faint text -> "session: 2 windows (created ......)" + - include this info for the configured but open sessions too