Code Monkey home page Code Monkey logo

Comments (5)

mjkx5 avatar mjkx5 commented on June 17, 2024 1

@twpayne It's awesome. thanks

from chezmoi.

halostatue avatar halostatue commented on June 17, 2024

This is an interesting idea (using chezmoi state to be able to track which files belong to which packages), but Iā€™m not sure that it fits within the scope of what chezmoi does.

I don't think that using chezmoi state is the right way to do this (if the state file goes away, chezmoi can reconstruct it by reapplying everything, but this data would be permanently lost). This might be something that could be added for #2673 via something like #2273, because additional attributes could be added.

If we reframe this from package to group, then with such metadata, one could potentially do chezmoi apply --group vim to do a filtered apply only to files within the vim group.

from chezmoi.

twpayne avatar twpayne commented on June 17, 2024

The fundamental problem of splitting things into separate groups is that it assumes that it is possible to split things into separate groups. For example, is the part of your vim configuration for editing .gitignore files part of your vim config, part of your git config, both, or neither?

For this reason, chezmoi has deliberately avoided any kind of grouping.

from chezmoi.

mjkx5 avatar mjkx5 commented on June 17, 2024

I know your meaning, although I think .gitignore belonging to current directory package.

chezmoi managed --include=dirs will list all managed dirs, but It is so unintuitive.

.config/Kvantum
.config/Kvantum/Catppuccin-Latte
.config/Kvantum/Catppuccin-Mocha
.config/hypr
.config/hypr/UserConfigs
.config/hypr/UserScripts
.config/hypr/configs
.config/hypr/scripts

In my opinion, It's two package, Kvantum, hypr package. It is intuitive and clear.

In package inner, search directory using directory . eg: Kvantum :

$ chezmoi package_search_dir Kvantum
.config/Kvantum
.config/Kvantum/Catppuccin-Latte
.config/Kvantum/Catppuccin-Mocha

from chezmoi.

twpayne avatar twpayne commented on June 17, 2024

You can tell chezmoi to only consider specific directories, for example:

chezmoi apply ~/.config/Kvantum

will only make changes to ~/.config/Kvantum.

If you want to see the history for this directory, you can use:

chezmoi git -- log $(chezmoi source-path ~/.config/Kvantum)

What other functionality do you need?

from chezmoi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.