SuperCuber / dotter

A dotfile manager and templater written in rust 🦀
The Unlicense
851 stars 45 forks source link

[FEATURE] Interactive setup #148

Open peterkos opened 10 months ago

peterkos commented 10 months ago

Describe the solution you'd like Would be neat to have a setup script like so:

> dotter setup
Welcome to dotter!
Do you have an existing dotfiles repo locally? (y/N) n
Let's create a new one!
Where should it live? (default: `~/.dotfiles`) ~/.dotfiles

Creating initial files...
Done!

(This would do the git init, .gitignore, touch config.toml global.toml)

Would also be cool for interactively setting up file locations. Maybe search for a list of known files, or an option to pass a list of locations?

Either way, something like ratatui could help provide the functionality.

Describe alternatives you've considered n/a

Additional context n/a

peterkos commented 10 months ago

Edit: Oh! I checked the issues, but not PRs 😅 I see #112 adds an interactive config.

I also plan on creating a more feature rich TUI for the local config including changing variables, but I wanted to get some feedback first before making deeper changes.

I belive this accomplishes the same goal? @SIMULATAN does this issue sound like what you're building, or is yours more for configuring an already-existing folder?

SuperCuber commented 10 months ago

There's a kinda-similar dotter init command, but it expects to be run in an already existing repository full of dotfiles (that presumably you want to migrate from using some other method)