mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-12-22 05:00:44 -06:00
truncate the final project line
This commit is contained in:
parent
62ca20fd9b
commit
4781865071
3 changed files with 4 additions and 2 deletions
|
@ -69,6 +69,8 @@ proc display(s: State, p: Project): Bbstring =
|
||||||
# will fail without clip!
|
# will fail without clip!
|
||||||
result.add p.tmuxinfo.bb("faint")
|
result.add p.tmuxinfo.bb("faint")
|
||||||
|
|
||||||
|
result.truncate(state.buffer.width - 5)
|
||||||
|
|
||||||
func addLine(b: var Buffer, text: string) =
|
func addLine(b: var Buffer, text: string) =
|
||||||
b.buffer.add (" " & text).alignLeft(b.width) & "\n"
|
b.buffer.add (" " & text).alignLeft(b.width) & "\n"
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@ template cmd(tmux: Tmux, args: string) =
|
||||||
let code = execCmd "tmux " & args
|
let code = execCmd "tmux " & args
|
||||||
if code != 0:
|
if code != 0:
|
||||||
tmuxError(args)
|
tmuxError(args)
|
||||||
# discard tmux.cmdGet args
|
|
||||||
|
|
||||||
proc toSession(s: string): TmuxSession =
|
proc toSession(s: string): TmuxSession =
|
||||||
let ss = s.split(":", 1)
|
let ss = s.split(":", 1)
|
||||||
|
|
3
todo.md
3
todo.md
|
@ -1,6 +1,7 @@
|
||||||
# tsm todo's
|
# tsm todo's
|
||||||
|
|
||||||
- [x] add message about new keybind Ctrl+E
|
- [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
|
||||||
|
|
||||||
<!-- generated with <3 by daylinmorgan/todo -->
|
<!-- generated with <3 by daylinmorgan/todo -->
|
||||||
|
|
Loading…
Reference in a new issue