Comments (5)
@twpayne It's awesome. thanks
from chezmoi.
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.
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.
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.
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)
- One-line binary install script does not give an error when cannot establish HTTPS connection HOT 4
- `chezmoid apply` (and `dump`) cause a Go panic HOT 3
- Option for `.chezmoiexternal` to add files directly to target and not in source state HOT 3
- Option to include directories outside of Chezmoi's root HOT 1
- Add support for template prefix HOT 3
- Support `failure` hooks and scripts HOT 7
- `--follow` and `--recursive` add seem to conflict
- Extend re-add command to add new files
- .chezmoiignore thinks closing braces are a pattern HOT 3
- Trouble ignoring certain files
- `chezmoi edit-config-template` creates initial template with world-writable permissions HOT 2
- Using environment variable in onepasswordRead HOT 2
- Support chmod in attributes HOT 5
- Powershell one-line install on Windows 11 error - update script at https://get.chezmoi.io/ps1 HOT 1
- run time bug when `chezmoi doctor` invoked HOT 6
- Make accidental removal harder
- forced update says "Already up to date." HOT 1
- Ability to dry-run / diff scripts HOT 5
- Local repository. HOT 5
- Documentation update "Why do I get a blank buffer or empty file when running chezmoi edit"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chezmoi.