Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation update "Why do I get a blank buffer or empty file when running chezmoi edit" #3815

Open
SjoerdV opened this issue Jun 17, 2024 · 1 comment · May be fixed by #3819
Open

Documentation update "Why do I get a blank buffer or empty file when running chezmoi edit" #3815

SjoerdV opened this issue Jun 17, 2024 · 1 comment · May be fixed by #3819

Comments

@SjoerdV
Copy link

SjoerdV commented Jun 17, 2024

Proposed update for:
https://www.chezmoi.io/user-guide/frequently-asked-questions/troubleshooting/#why-do-i-get-a-blank-buffer-or-empty-file-when-running-chezmoi-edit

Maybe you could add a tab (next to VIM/VSCode tabs) to get Any editor (also the ones that do not wait in the foreground) to work with chezmoi edit

  1. Add a new bash program somewhere in your $PATH (in this case I added $HOME/.local/bin/mousepad-wait)
#!/usr/bin/env bash
wait -n; mousepad "$@"
  1. Run chmod +x $HOME/.local/bin/mousepad-wait to make the program executable
  2. Finally add to (or update) chezmoi.toml
[edit]
    command = "mousepad-wait"
    args = ["--opening-mode=window", "--encoding=UTF-8","--disable-server"]
@halostatue
Copy link
Collaborator

A pull request with this information would be considered.

SjoerdV added a commit to SjoerdV/chezmoi that referenced this issue Jun 17, 2024
…g any editor wait in the foreground when running 'chezmoi edit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants