fantastic-kit / fantastic-kit

a hackable all-in-one CLI toolkit to make your life easier. fk everything!
MIT License
16 stars 3 forks source link

Support for multiple cd paths #64

Open arora-aman opened 4 years ago

arora-aman commented 4 years ago

I like to keep my files (including git repos) in a structured way: eg: Everything related to school goes in folders similar to Coursework/TERM/CourseCode. Now, CourseCode may contain a git repository for programming assignments along with other course files (eg: notes)

Projects not relevant to school go in a separate Projects folder. Each folder within Projects can be a git repo.

It would be nice to be able to provide multiple paths and the depth to search them recursively for git projects.

So for the above I would like something like [ { $PROJECTS_PATH, 0 }, { $COUREWORK_PATH, 2 } ] for paths fk cd to search in.

arora-aman commented 4 years ago

cc: @Azhng @9at8 @fan70m @Daniel-Wang

Azhng commented 4 years ago

Should be an easy change, we already store the root path config, we just need to make that an array and loop through it.

Azhng commented 4 years ago

Though for recursive git project it might be a bit more involved, there might be potentially a lot of project that we need to go through, makeing fk cd too expensive might not be a great idea

Azhng commented 4 years ago

Maybe we can let user use config to point to various locations ? Then we just symlink the repos to a central location ?