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.
1 parent 33d5937 commit b7ff339Copy full SHA for b7ff339
tmuxp/cli/freeze.py
@@ -12,8 +12,16 @@
12
from .utils import _validate_choices, get_abs_path, get_config_dir
13
14
15
+def session_completion(ctx, params, incomplete):
16
+ t = Server()
17
+ choices = [session.name for session in t.list_sessions()]
18
+ return sorted([str(c) for c in choices if str(c).startswith(incomplete)])
19
+
20
21
@click.command(name="freeze")
-@click.argument("session_name", nargs=1, required=False)
22
+@click.argument(
23
+ "session_name", nargs=1, required=False, shell_complete=session_completion
24
+)
25
@click.option("-S", "socket_path", help="pass-through for tmux -S")
26
@click.option("-L", "socket_name", help="pass-through for tmux -L")
27
@click.option(
0 commit comments