Default VISUAL editor kate is opened in non-blocking mode which is incompatible with git

While using git, I noticed that it defaults to opening Kate for actions that require editing a file, such as a commit message or interactive rebase. That’s because VISUAL is set to kate. That makes sense, the problem is that Kate is opened in a non-blocking mode, and git then immediately continues with the default text.

The solution is setting VISUAL=“kate -b”. I figured that out and did it for myself, but I think would make sense as a default configuration. I don’t know if that’s set by Arch or Garuda.

(new user, let me know if I should report this somewhere else. I tried search, but they are very generic terms and I found some related discussions such as Sudo edit always leaves file unchanged, opens blank file in Kate but that was a specific support request while this is more a suggestion to update the default configuration)

2 Likes

Heya! I let the maintainers responsible for this know. Thanks for the feedback!

1 Like

Added this in the relevant settings packages, thanks!

(since this is a user config change, only new installations with a new package version will get it automatically, others need to edit the file in ~/.config/environment.d manually)

7 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.