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