Skip to content

apply file changes on write with edit --apply #752

@jmattheis

Description

@jmattheis

My current workflow for changing my config is

$ chezmoi edit --apply ~/.config/some/config

then I've to write quit my $EDITOR to apply the changes. It would be cool, if I didn't have to close my editor and only write the file (:w in vim). Chezmoi could listen on file changes (with something like inotify) and then apply them.

Usecases are:

  • vim: edit config, write, source applied config from chezmoi
  • i3: edit config, write, inplace reload i3 without killing existing windows

This is only a minor inconvenience so feel free to close the issue if you don't see the need for it.

Anyway, keep up the good work with chezmoi!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions