hello. How do I keep a command output from sending in an extra newline?
I've got a command like this: echo ${1:`expr $TM_SELECTED_TEXT + 1`} Input: Selected Text Output: insert as snippet Activation: ctrl-up Scope constant.numeric
But it's no good unless I can figure out how to keep that pesky newline from jumping in my face.
Thanks
On 07.11.2005, at 21:21, thomas Aylott wrote:
hello. How do I keep a command output from sending in an extra newline?
http://article.gmane.org/gmane.editors.textmate.general/2939/ match=command+newline
though it says: "For shell commands in snippets, TextMate automatically removes the last newline."
Soryu
On Mon, Nov 7, at 2:21 PM, thomas Aylott wrote:
hello. How do I keep a command output from sending in an extra newline?
I've got a command like this: echo ${1:`expr $TM_SELECTED_TEXT + 1`}
echo -n ${1:`expr $TM_SELECTED_TEXT + 1`}
should work. by default echo add a newline, -n suppresses that.
Gerd