We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25bc68b + 75d5d6b commit 6d68dabCopy full SHA for 6d68dab
tmuxp/server.py
@@ -286,11 +286,11 @@ def _update_panes(self):
286
return self
287
288
def attached_sessions(self):
289
- """Return active :class:`Session` object.
+ """Return active :class:`Session` objects.
290
291
This will not work where multiple tmux sessions are attached.
292
293
- :rtype: :class:`Server`
+ :rtype: :py:obj:`list` of :class:`Session`
294
295
"""
296
@@ -307,7 +307,9 @@ def attached_sessions(self):
307
else:
308
continue
309
310
- return attached_sessions or None
+ return [
311
+ Session(server=self, **s) for s in attached_sessions
312
+ ] or None
313
314
def has_session(self, target_session):
315
"""Return True if session exists. ``$ tmux has-session``.
0 commit comments