sonnyp / Commit

Commit message editor
https://apps.gnome.org/Commit/
GNU General Public License v3.0
132 stars 25 forks source link

Issues editing `~/.gitconfig` #65

Closed markochk closed 2 years ago

markochk commented 2 years ago
  1. in terminal, run git config --global core.editor "flatpak run --file-forwarding re.sonny.Commit @@"
  2. in terminal, run git config --global -e. It'll open the Commit window and print this message in terminal:
    hint: Waiting for your editor to close the file... Warning: unknown commit type encountered in: /run/user/1000/doc/ab12bc58/.gitconfig
  3. pressing Abort will delete all contents in .gitconfig, leaving the user with an empty file
  4. however, if I don't abort and try to make some changes to .gitconfig, I'm unable to as existing content is read-only, and I'm only able to insert content at the start of the file or append it at the end of the file
sonnyp commented 2 years ago

Fixed in the next release.

I also added syntax highlighting for gitconfig/hgrc

Screenshot from 2022-04-18 23-33-37