Skip to content

Commit

Permalink
chore: Remove warning about Helix editor and hardlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Feb 13, 2025
1 parent 1ffa1da commit 32035d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
5 changes: 5 additions & 0 deletions assets/chezmoi.io/docs/user-guide/tools/editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ Or in chezmoi's configuration file:
args = ["--wait"]
```

!!! warning

If you use [Helix](https://helix-editor.com/), you must use Helix 25.01 or
later.

## Use chezmoi with VIM

[`github.com/alker0/chezmoi.vim`](https://github.com/alker0/chezmoi.vim)
Expand Down
5 changes: 0 additions & 5 deletions internal/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2521,11 +2521,6 @@ func (c *Config) runEditor(args []string) error {
if err != nil {
return err
}
if c.Edit.Hardlink && filepath.Base(editor) == "hx" {
c.errorf(
"warning: helix editor cannot edit hardlinks, see https://github.com/helix-editor/helix/issues/11279 and https://github.com/twpayne/chezmoi/issues/3971",
)
}
start := time.Now()
err = c.run(chezmoi.EmptyAbsPath, editor, editorArgs)
if runtime.GOOS != "windows" && c.Edit.MinDuration != 0 {
Expand Down
18 changes: 0 additions & 18 deletions internal/cmd/testdata/scripts/issue4107.txtar

This file was deleted.

0 comments on commit 32035d9

Please sign in to comment.