Compare commits
No commits in common. "36bd56bcc48c6818802fe177debaf98cdda25d3d" and "6b1d53f65dc5f2b1967489fd9e5d81d8064a1569" have entirely different histories.
36bd56bcc4
...
6b1d53f65d
@ -21,7 +21,7 @@ commands = defaultdict(list)
|
||||
|
||||
all_tty = [p.pane_tty for p in srv.panes]
|
||||
|
||||
cmd = f"-t {' -t '.join(all_tty)} -o pid:10 -o tty:10 -o command -ww" # -f
|
||||
cmd = f"-t {' -t '.join(all_tty)} -o pid:10 -o tty:10 -o command -ww -f"
|
||||
|
||||
sh_commands = sh.ps(cmd.split(' ')).stdout.decode().strip().split("\n")
|
||||
|
||||
@ -55,10 +55,7 @@ def format_pane(pane):
|
||||
else:
|
||||
cmd = {"pid": "-", "command": "*command not found*"}
|
||||
|
||||
path = pane.pane_current_path.replace("/home/legrems/Documents/Arcanite", "~/D/A")
|
||||
path = path.replace("/home/legrems/Documents", "~/D")
|
||||
path = path.replace("/home/legrems", "~")
|
||||
return [f"{pane.pane_tty}: [{pane.session_name}: {pane.window_name}, {path}]: {cmd['command']}"]
|
||||
return [f"{pane.pane_tty}: [Sess:{pane.session_name}, Win:{pane.window_name}] (cwd:{pane.pane_current_path.replace('/home/legrems/', '~/')}): {cmd['command']}"]
|
||||
|
||||
|
||||
panes = []
|
||||
|
||||
@ -12,7 +12,6 @@ folders = [
|
||||
"~/Documents/PolyLAN/",
|
||||
"~/Documents/Python/",
|
||||
"~/Documents/",
|
||||
"~/Documents/Games/Minecraft/modded/",
|
||||
]
|
||||
|
||||
available_folders = sh.find(*[Path(f).expanduser() for f in folders] + "-mindepth 1 -maxdepth 1 -type d".split(" ")).strip().split("\n")
|
||||
|
||||
@ -106,7 +106,7 @@ for selected_group in selections:
|
||||
if not servers:
|
||||
continue
|
||||
|
||||
window_name = get_window_name(selected_group)
|
||||
window_name = get_window_name(info["section"])
|
||||
if windows := active_session.windows.filter(name=window_name):
|
||||
windows[0].select()
|
||||
continue
|
||||
|
||||
Loading…
Reference in New Issue
Block a user