From 71f2370dad4d664aca3eabe3f90fa08b7002424a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 9 Jun 2024 21:00:01 +0200 Subject: [PATCH] frame --- cd/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cd/__init__.py b/cd/__init__.py index f18b635..9783dd9 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -71,14 +71,14 @@ def browse(root: str) -> None: absolute_path = Path(directory) / file relative_path = os.path.relpath(absolute_path, start=root) paths.append(relative_path) - open(root) + frame(root) for path in sorted(paths): print(path) shut(root) def cat(file: str) -> None: - open(file) + frame(file) print(fs.read_file_text(file).rstrip()) shut(file) @@ -124,7 +124,7 @@ def set_ssh(*arguments: str) -> None: cat(known) -def open(*arguments: str) -> None: +def frame(*arguments: str) -> None: print(env.CD_OPEN, end="") print(*arguments, flush=True)