mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-11-16 09:18:32 -06:00
fix: ignore files in TSM_DIRS
This commit is contained in:
parent
f8d6363390
commit
b6065f0ef5
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue