I have setup textmate as the default editor in terminal.
so, when I type 'hg commit' it opens textmate. I enter the message on the first line after the headers and hit save and close textmate and nothing happens. What am I doing wrong?
On 31 Aug 2009, at 01:30, rgreen wrote:
I have setup textmate as the default editor in terminal.
so, when I type 'hg commit' it opens textmate. I enter the message on the first line after the headers and hit save and close textmate and nothing happens. What am I doing wrong?
You need to tell the `mate` command to wait for the file to be closed in textmate before returning, otherwise hg just gets given an empty file instantly.
I do believe it's `mate -w` you need to set as the editor in terminal.
C --- Caius Durling caius@caius.name +44 (0) 7960 268 100 http://caius.name/
I did but nothing happens.
rgreen wrote:
I have setup textmate as the default editor in terminal.
so, when I type 'hg commit' it opens textmate. I enter the message on the first line after the headers and hit save and close textmate and nothing happens. What am I doing wrong?
I did but nothing happens.
What exactly do you mean by nothing happens? Do you want to say that you don't see anything in your terminal or does the commit fail?
For me, standard behaviour for 'hg commit' is to open TM (set as standard editor with 'mate -rw'), I write the commit message, save, close and get back to the terminal. In the terminal, there's no visual clue that the commit was successful, but for example hg view clearly shows it.
rgreen wrote:
I have setup textmate as the default editor in terminal.
so, when I type 'hg commit' it opens textmate. I enter the message on the first line after the headers and hit save and close textmate and nothing happens. What am I doing wrong?
Shouldn't you write the message on the first line, i.e. above the headers where the caret is placed automatically? At least that's what I do and it works for me.
HTH,
Carsten