Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-02-02 Thread Vlad Ghitulescu

On 1 Feb 2016, at 19:17, Muster Hans wrote:


On 1 Feb 2016, at 19:05, Vlad Ghitulescu wrote:


Hi!


On 1 Feb 2016, at 17:53, Muster Hans wrote:


New with BBEdit 11.5, which has just arrived today:

http://www.barebones.com/support/bbedit/current_notes.html


When piping data into the bbedit tool, you can now add a line number 
specifier, and the and the insertion point will be placed at the 
start of the indicated line in the resulting document. For example:


ls -la | bbedit +5


I've just tested this and it puts the cursor at the beginning of 
line 5, without selecting it.


Yep, I saw this too, **BUT** I cannot find an alternative to put the 
cursor at the bottom of the file.




Hmm.

ls -la | wc -l
 404
ls -la | bbedit +

puts the cursor on the last line of the file, a blank line in this 
example.


Let's try a file which ends in a full line, but without  at the 
end:


bbedit +999 x.py # puts the cursor at the end of the last line.

FWIW, I've been using TextWrangler in a similar way for newsgroup 
posts,
called by slrn.  What I find there is that I want the cursor 
positioned
at the beginning of the post body, so that I can start at the 
beginning
and strip out unwanted quoted text, just leaving the relevant quoted 
text
plus my reply (possibly interleaved where answering more than one 
point).


Yes TW does select the entire line, but that's not a problem when I'm
using the cursor keys to move down through the text before typing any
text.


There's even a simpler solution!
Here directly from Bare Bones' technical support:

*(…)
When you pipe data via the 'bbedit' tool, BBEdit will by default place 
the insertion point at the end of the piped data.
Alternatively, you can make BBEdit place the insertion point at the top 
of file by including the '--view-top' parameter, or on any specific line 
by using the + convention I mentioned before.

(…)*___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-02-01 Thread Vlad Ghitulescu
On 1 Feb 2016, at 19:17, Muster Hans wrote:

> bbedit +

I'll use this too.

Thanks!


Regards,
Vlad


___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-02-01 Thread Vlad Ghitulescu

On 1 Feb 2016, at 9:15, Benny Kjær Nielsen wrote:


On 31 Jan 2016, at 22:17, David Shepherdson wrote:

This is because of the change to The BBEdit command’s edit.sh. 
Taking out the:


+${MM_LINE_NUMBER}

…means that BBEdit is no longer being told which line to 
‘activate’ (i.e. select).


If only line numbers are supported via the command line then maybe 
AppleScript could be used instead. A quick Google search revealed that 
maybe `"select insertion point ..."` could be used somehow. Just a 
suggestion for anyone capable of making that work :-) (I don't have 
BBEdit installed myself.)


Thanks, I'll search for a solution!


Regards,
Vlad


___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-02-01 Thread Vlad Ghitulescu

Hi, David!


On 31 Jan 2016, at 22:17, David Shepherdson wrote:

So you can’t use these two tricks in combination, unfortunately (at 
least, not unless/until Bare Bones adds the ability to specify the 
line number in the command without selecting it). You basically get a 
choice between MailMate telling BBEdit the correct line number, and 
BBEdit selecting it, or MailMate not telling BBEdit anything about the 
line number, so BBEdit puts the insertion point at the beginning of 
the file. I’m not bothered by the former, but then I only 
occasionally edit my messages in BBEdit, not all the time, so it’s 
rarely a problem for me.


Thanks for the explanation!

1. I'll speak with Bare Bones once again about it.
2. You're right: If it's unsolvable I can for sure get used to, that's 
no big deal…
3. … I even start to like the current behavior ;-), because I can say 
hello in the top of the email and then jump to the bottom for the reply. 
:-)


Thanks again!


Regards,
Vlad


___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-02-01 Thread Muster Hans

On 31 Jan 2016, at 22:17, David Shepherdson wrote:


On 31 Jan 2016, at 18.25, Vlad Ghitulescu wrote:


Something changed and I don't know what.

I still have the Caret Placement option in the Signatures > section 
of MailMate’s preferences as you suggested (*(…) set to Above 
Signature  > (with the ‘Default signature placement’ set to 
Bottom) (…)*), but now **every reply put my cursor at the top 
again** :-(


Any idea, what could have happened?


This is because of the change to The BBEdit command’s edit.sh. 
Taking out the:


 +${MM_LINE_NUMBER}

…means that BBEdit is no longer being told which line to 
‘activate’ (i.e. select).


So you can’t use these two tricks in combination, unfortunately (at 
least, not unless/until Bare Bones adds the ability to specify the 
line number in the command without selecting it).


New with BBEdit 11.5, which has just arrived today:

http://www.barebones.com/support/bbedit/current_notes.html


When piping data into the bbedit tool, you can now add a line number 
specifier, and the and the insertion point will be placed at the start 
of the indicated line in the resulting document. For example:


ls -la | bbedit +5


I've just tested this and it puts the cursor at the beginning of line 5, 
without selecting it.

___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-02-01 Thread Vlad Ghitulescu

Hi!


On 1 Feb 2016, at 17:53, Muster Hans wrote:


New with BBEdit 11.5, which has just arrived today:

http://www.barebones.com/support/bbedit/current_notes.html


When piping data into the bbedit tool, you can now add a line number 
specifier, and the and the insertion point will be placed at the start 
of the indicated line in the resulting document. For example:


ls -la | bbedit +5


I've just tested this and it puts the cursor at the beginning of line 
5, without selecting it.


Yep, I saw this too, **BUT** I cannot find an alternative to put the 
cursor at the bottom of the file.



Regards,
Vlad


___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-02-01 Thread Muster Hans

On 1 Feb 2016, at 19:05, Vlad Ghitulescu wrote:


Hi!


On 1 Feb 2016, at 17:53, Muster Hans wrote:


New with BBEdit 11.5, which has just arrived today:

http://www.barebones.com/support/bbedit/current_notes.html


When piping data into the bbedit tool, you can now add a line number 
specifier, and the and the insertion point will be placed at the 
start of the indicated line in the resulting document. For example:


ls -la | bbedit +5


I've just tested this and it puts the cursor at the beginning of line 
5, without selecting it.


Yep, I saw this too, **BUT** I cannot find an alternative to put the 
cursor at the bottom of the file.




Hmm.

ls -la | wc -l
 404
ls -la | bbedit +

puts the cursor on the last line of the file, a blank line in this 
example.


Let's try a file which ends in a full line, but without  at the end:

bbedit +999 x.py # puts the cursor at the end of the last line.

FWIW, I've been using TextWrangler in a similar way for newsgroup posts,
called by slrn.  What I find there is that I want the cursor positioned
at the beginning of the post body, so that I can start at the beginning
and strip out unwanted quoted text, just leaving the relevant quoted 
text
plus my reply (possibly interleaved where answering more than one 
point).


Yes TW does select the entire line, but that's not a problem when I'm
using the cursor keys to move down through the text before typing any
text.
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-01-31 Thread David Shepherdson

On 31 Jan 2016, at 18.25, Vlad Ghitulescu wrote:


Something changed and I don't know what.

I still have the Caret Placement option in the Signatures > section of 
MailMate’s preferences as you suggested (*(…) set to Above 
Signature  > (with the ‘Default signature placement’ set to 
Bottom) (…)*), but now **every reply put my cursor at the top 
again** :-(


Any idea, what could have happened?


This is because of the change to The BBEdit command’s edit.sh. Taking 
out the:


+${MM_LINE_NUMBER}

…means that BBEdit is no longer being told which line to 
‘activate’ (i.e. select).


So you can’t use these two tricks in combination, unfortunately (at 
least, not unless/until Bare Bones adds the ability to specify the line 
number in the command without selecting it). You basically get a choice 
between MailMate telling BBEdit the correct line number, and BBEdit 
selecting it, or MailMate not telling BBEdit anything about the line 
number, so BBEdit puts the insertion point at the beginning of the file. 
I’m not bothered by the former, but then I only occasionally edit my 
messages in BBEdit, not all the time, so it’s rarely a problem for me.


David
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-01-31 Thread Vlad Ghitulescu

On 31 Jan 2016, at 9:22, Benny Kjær Nielsen wrote:


On 31 Jan 2016, at 8:25, Vlad Ghitulescu wrote:

I still have the Caret Placement option in the Signatures > section 
of MailMate’s preferences as you suggested (*(…) set to Above 
Signature  > (with the ‘Default signature placement’ set to 
Bottom) (…)*), but now **every reply put my cursor at the top 
again** :-(


Any idea, what could have happened?


Try clicking “Reset Usage History” in the Signatures preferences 
pane. This should ensure a clean start.


I did. It didn't help, the caret was to the top again.


Regards,
Vlad


___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-01-31 Thread Benny Kjær Nielsen

On 31 Jan 2016, at 8:25, Vlad Ghitulescu wrote:

I still have the Caret Placement option in the Signatures > section of 
MailMate’s preferences as you suggested (*(…) set to Above 
Signature  > (with the ‘Default signature placement’ set to 
Bottom) (…)*), but now **every reply put my cursor at the top 
again** :-(


Any idea, what could have happened?


Try clicking “Reset Usage History” in the Signatures preferences 
pane. This should ensure a clean start.


--
Benny
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-01-30 Thread Vlad Ghitulescu

On 28 Jan 2016, at 22:13, David Shepherdson wrote:


On 29 Jan 2016, at 07.05, Vlad Ghitulescu wrote:

I'm using the BBEdit-command in order to edit my email-messages in 
BBEdit.


Is there a way to position the cursor at the bottom of the email when 
replying / forwarding an email?


Isn’t this controlled by the Caret Placement option in the 
Signatures section of MailMate’s preferences? I have it set to Above 
Signature (with the ‘Default signature placement’ set to Bottom), 
and the cursor appears exactly where I would expect (when editing in 
MailMate, but as per the other thread I would expect it to be the same 
in an external editor).


David
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Something changed and I don't know what.

I still have the Caret Placement option in the Signatures > section of 
MailMate’s preferences as you suggested (*(…) set to Above Signature 
> (with the ‘Default signature placement’ set to Bottom) (…)*), 
but now **every reply put my cursor at the top again** :-(


Any idea, what could have happened?

Thanks!


Regards,
Vlad


P.S. At leas this happens now whitout activating the whole line, so it 
seems that the change in edit.sh still works. I append the old and the 
new edit.sh-file, just for reference.


=== old
#!/bin/bash

PATH="${PATH}:/usr/local/bin/:${HOME}/bin"

if which -s bbedit; then
	bbedit --wait --resume --clean +${MM_LINE_NUMBER} --pipe-title 
"${MM_TITLE:-(no subject)}" "${MM_EDIT_FILEPATH}"

else
	osascript -e 'tell app "MailMate" to display dialog "Make sure you have 
the “bbedit” command installed. See the “BBEdit ▸ Install 
Command Line Tools” menu item within BBEdit." buttons "OK" default 
button 1 with title "Unable to locate BBEdit"' >/dev/null 2>&1 &

fi
===


=== new
#!/bin/bash

PATH="${PATH}:/usr/local/bin/:${HOME}/bin"

if which -s bbedit; then
	bbedit --wait --resume --clean --pipe-title "${MM_TITLE:-(no subject)}" 
"${MM_EDIT_FILEPATH}"

else
	osascript -e 'tell app "MailMate" to display dialog "Make sure you have 
the “bbedit” command installed. See the “BBEdit ▸ Install 
Command Line Tools” menu item within BBEdit." buttons "OK" default 
button 1 with title "Unable to locate BBEdit"' >/dev/null 2>&1 &

fi
===
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] How to put the cursor at the bottom of the original email when replying / forwarding?

2016-01-28 Thread Vlad Ghitulescu

On 28 Jan 2016, at 22:13, David Shepherdson wrote:


On 29 Jan 2016, at 07.05, Vlad Ghitulescu wrote:

I'm using the BBEdit-command in order to edit my email-messages in 
BBEdit.


Is there a way to position the cursor at the bottom of the email when 
replying / forwarding an email?


Isn’t this controlled by the Caret Placement option in the 
Signatures section of MailMate’s preferences? I have it set to Above 
Signature (with the ‘Default signature placement’ set to Bottom), 
and the cursor appears exactly where I would expect (when editing in 
MailMate, but as per the other thread I would expect it to be the same 
in an external editor).


That was it! Thanks!


Regards,
Vlad


___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate