Problem using Kate as git editor
Being more used to Kate than Nano, the default git editor on my system, I issued:
Code:
sudo git config --system core.editor kate Perusing the web, I see that several other editors can be invoked with the -w flag to force git to wait for the external editor to close (or save?) before continuing. However I can't seem to find a way of doing this for Kate. As a fall-back if it can't be done, what's the closest alternative to Kate out there? Many thanks. |
As you point out, kate seems to have no built in option. Just a wild guess at a work-around:
Code:
sudo git config --system core.editor "kate & wait" |
Quote:
Using the command with no instances of Kate already running showed the same problem. For info, errors/warnings generated on the command line were: Code:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. |
No help, but FYI kate works as the git editor on my Debian Sid box.
Code:
$ git --version Code:
$ git config --local core.editor kate Code:
$ kate |
There is an ugly work around. If you wrap kate in a shell script and then tell git to use the shell script then everything works out.
Code:
#!/bin/sh norobro's question suggests to me that you should search for a bug report with git and kate and there isn't any for your versions to file one. |
Quote:
I used Code:
$ git config --local core.editor kate So, I then decided to test exactly what was going on and checked my --local, --global and --system core.editor settings - all were set to kate. I removed the --local one to see if it would still work. It did. I removed the --global one to see if it would still work. It did. So now I'm back at a situation that was ostensibly the one which gave me problems in the first place, but now works. The only thing that I can think of is that the --local one was set to something strange before I changed it above. Anyway it works, so I'll mark the thread as solved, with thanks to all, but particularly to the little goblin who lives in my computer and sometimes sprinkles his magic dust around. |
Quote:
|
For me ' ... core.editor "kate -b" ' works.
|
All times are GMT -5. The time now is 09:09 AM. |