Small thingie: I think it would be very convenient if after entering all the parameters in the snippet, the tab key would place the cursor at the end of the snippet.
Example:
ahref\thttp://somewhere.com/%5Ctsomewhere%5Ct results in
<a href="http://somewhere.com/">somewhere</a>CURSOR instead of <a href="http://somewhere.com/">somewhere CURSOR</a>
:)
BTW: I'm starting to enjoy this editor very much...! :)
On 6/10-2004, at 20:21, Joost Schuttelaar wrote:
Small thingie: I think it would be very convenient if after entering all the parameters in the snippet, the tab key would place the cursor at the end of the snippet.
I agree, although this is possible of course in the current version like this: <img src="$1" />$2
Or similar. I believe $0 can also be used for that purpose, regardless of the number of tab stops. I sort of think that this should not be neccesary and it should always end up after the snippet body no matter what... I can't imagine any situation where you _don't_ want that.. ?
On Wed, 6 Oct 2004, Sune Foldager wrote:
On 6/10-2004, at 20:21, Joost Schuttelaar wrote:
Small thingie: I think it would be very convenient if after entering all the parameters in the snippet, the tab key would place the cursor at the end of the snippet.
I agree, although this is possible of course in the current version like this: <img src="$1" />$2
Or similar. I believe $0 can also be used for that purpose, regardless of the number of tab stops. I sort of think that this should not be neccesary and it should always end up after the snippet body no matter what... I can't imagine any situation where you _don't_ want that.. ?
Well, I needed it for a snippet I created for latex to make begin/end constructions such as:
\begin{itemize} \end{itemize}
Here you want the cursor to end up on a blank line between the two lines of the snippet. Note a really nice TM feature here. If you specify the same placeholder twice ($1 below) then it is filled out simultaneously when using the snippet (this is a documented feature). Really cool ;-)
\begin{$1} $0 \end{$1}
Since it might be a bit annoying to always having to define $0 for snippets simply needing the cursor at the end of the snippet this could simply be interpreted as the default if no $0 placeholder is specified.
On Oct 6, 2004, at 8:28 AM, Sune Foldager wrote:
I agree, although this is possible of course in the current version like this: <img src="$1" />$2
Better than that, when the cursor is a "$1" let me click on the image name in the project drawer and have it insert the source/path automatically!
Addittionaly, It would be cool to be able o select an image in the project drawer an be able to preview it in the main window (ala skEdit) rather than get garbled ASII