bbkane / fling

File/directory symlinker similar to GNU Stow. Manages dotfiles well
MIT License
28 stars 3 forks source link

adjust to Windows better #2

Open bbkane opened 2 years ago

bbkane commented 2 years ago

Now that I'm on windows more, I'm finding that I can't really assume the same folder locations and maybe other things.

Ideas:

Ideas:

Make a group of symlinks the basic unit of work and identity it by tags (name == nvim and auto filled in properties (hostname/os/???)

Have the user retrieve the units of work (symlimk groups) via boolean search query and then execute them

The issue is going to be setting defaults per platform per unit of work and how to structure that

bbkane commented 2 years ago

Ok, what if I:

bbkane commented 2 years ago

Then the subsections could be:

fling starlark link/unlink
fling tree link/unlink
bbkane commented 2 years ago

I could use something like what drone does:

https://docs.drone.io/pipeline/scripting/starlark/

My ctx object coul have fields like platform, hostname, user, tags that my starlark config could branch on

bbkane commented 2 years ago

Could also have one dimensional labels and a help(ctx) function that returns a string to be printed by fling

bbkane commented 2 years ago

I could also switch to https://github.com/SuperCuber/dotter . It uses TOML overwriting that doesn't look too crazy.