From b6065f0ef5067791e4f641436b657c063c4053ad Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 1 Oct 2023 15:09:50 -0500 Subject: [PATCH] fix: ignore files in TSM_DIRS --- src/project.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/project.nim b/src/project.nim index 08b6d81..95294b1 100644 --- a/src/project.nim +++ b/src/project.nim @@ -28,8 +28,9 @@ proc findProjects*(open: bool = false): seq[Project] = # TODO: only return directories for devDir in tsmDirs.split(":"): - for d in walkDir(devDir): - let p = newProject(d.path, tmux.sessions) + for path in walkDir(devDir): + if path.kind == pcFile or path.kind == pcLinkToFile: continue + let p = newProject(path.path, tmux.sessions) if open: if p.open: result.add p else: