mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-12-22 13:10:43 -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
|
# TODO: only return directories
|
||||||
for devDir in tsmDirs.split(":"):
|
for devDir in tsmDirs.split(":"):
|
||||||
for d in walkDir(devDir):
|
for path in walkDir(devDir):
|
||||||
let p = newProject(d.path, tmux.sessions)
|
if path.kind == pcFile or path.kind == pcLinkToFile: continue
|
||||||
|
let p = newProject(path.path, tmux.sessions)
|
||||||
if open:
|
if open:
|
||||||
if p.open: result.add p
|
if p.open: result.add p
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue