fix: output format changed in zellij ls (#770)

Hi. In the latest zellij (0.39.2), the output of `zellij ls` has been
changed into the following example:
```bash
rectangular-galaxy [Created 9h 21m 46s ago] (EXITED - attach to resurrect)
gregarious-triceratops [Created 22h 48m 32s ago] (EXITED - attach to resurrect)
```
I updated the corresponding parsing code.
This commit is contained in:
Shen Zhou 2024-03-02 14:42:34 +01:00 committed by GitHub
parent a60debf624
commit 25514da84d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,7 @@ def "nu-complete zellij attach" [] {
}
def "nu-complete sessions" [] {
^zellij ls | lines | str replace '\(current\)' "" | str trim
^zellij ls -n | lines | parse "{value} {description}"
}
# Turned off since it messes with sub-commands