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)