First Last Prev Next    No search results available
Details
: Add a variable to set cursor position
Bug#: 24990
: smarttemplate4
: General
Status: RESOLVED
Resolution: FIXED
: PC
: Windows XP
: unspecified
: P2
: enhancement
: ---

:
:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Axel Grude <axel.grude@gmail.com>
Assigned To: Axel Grude <axel.grude@gmail.com>
:

Attachments
test version with cursor support (298.25 KB, application/x-xpinstall)
2012-11-30 13:03, Axel Grude
no flags Details
0.9.3 Prerelease 153 (327.30 KB, application/x-xpinstall)
2013-06-04 05:51, Axel Grude
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2012-06-30 09:40
Plan: add a variable %cursor% to determine exact position of the cursor for
easier start of editing.
------- Comment #1 From Marc Main 2012-08-24 15:30:22 -------
*** Bug 25102 has been marked as a duplicate of this bug. ***
------- Comment #2 From Axel Grude 2012-11-30 13:03:44 -------
Created an attachment (id=7444) [details]
test version with cursor support

Here is a first test version, (probably) only works with html templates. I am
doing some "clever" stuff here as cursor / caret management is non-trivial.
E.g. I need to count visible characters and move the cursor forward letter by
letter and also count newlines (<br>) which are not visible....

god knows whether this will work in the majority of cases.

the algorith has to replace %cursor% with [[cursor]] and then highlights it. It
is a test version! 0.9.3 prerelease 5
------- Comment #3 From Axel Grude 2012-11-30 16:03:05 -------
One more comment - %cursor% is currently not compatible with Stationery, as
this forces itself to load after everything else; there will be more efforts in
the future to make st4 compatible with stationery but it is going to take a
while.
------- Comment #4 From Johan Draaisma 2012-12-04 07:37:40 -------
I would just like to state that while I do see the benefit of having a method
of forcing the cursor into a specific place, I too have encountered this
problem with my signature and have resolved it quite simply.

Just add an HTML element with class moz-signature and make it enclose the
signature. Add some <br> space above it so you have some space to type and
you're done. An example of a signature/template formatted such:

<br>
<br>
<div class="moz-signature">
This is a signature text, hooray.
</div>

On my system, TB 17 + SmartTemplate 0.9.2 + Windows 7 x64, this resolved the
issue for me. Having said that, I would still like to see a variable such as
%cursor% to be able to place the cursor exactly in that spot one would want to
see it, in case for example a signature/template is used that has a header.

A final note: the text in class moz-signature is by default a greyish type.
With a little CSS this can be resolved, or simply by using <font
color="black">bla</font> for example. The usual HTML/CSS tricks apply here.

I hope this helps you.
------- Comment #5 From Philip Jay 2013-02-26 05:30:03 -------
Johan,

I've got the same setup as you (TB 17 + SmartTemplate 0.9.2 + Windows 7 x64) -
and doing the <div class="moz-signature"> hack is not working for me... any
suggestions?


Regards,
  Phil
------- Comment #6 From Johan Draaisma 2013-02-26 05:56:09 -------
(In reply to comment #5)
> Johan,
> 
> I've got the same setup as you (TB 17 + SmartTemplate 0.9.2 + Windows 7 x64) -
> and doing the <div class="moz-signature"> hack is not working for me... any
> suggestions?
> 
> 
> Regards,
>   Phil
> 

I would suggest you try version 0.9.3 that's out now or 0.9.3pre5 that I got
from one of these bugreports earlier.

Kind regards,
Johan
------- Comment #7 From Axel Grude 2013-06-04 05:51:39 -------
Created an attachment (id=7593) [details]
0.9.3 Prerelease 153

Lastest beta. With this you can use %cursor% and it even displays it at the
left hand side of the screen (and not on the right). Unless you are writing in
LTR (hebrew) of course!
------- Comment #8 From Axel Grude 2013-06-04 05:55:15 -------
(In reply to comment #4)
> 
> Just add an HTML element with class moz-signature and make it enclose the
> signature. Add some <br> space above it so you have some space to type and
> you're done. An example of a signature/template formatted such:
> 
> <br>
> <br>
> <div class="moz-signature">
> This is a signature text, hooray.
> </div>

Just a note, this hack will not work from version 0.9.3 onwards. Instead, you
can use:

<div class="st4cursor"></div>

this will be searched & replaced with the cursor. 

Using %cursor% will insert the same tag [and remove it].
------- Comment #9 From Axel Grude 2013-06-04 05:56:17 -------
(From update of attachment 7444 [details])
marking as obsolete, due to prerelease 153.
------- Comment #10 From Axel Grude 2014-04-24 11:04:10 -------
*** Bug 25755 has been marked as a duplicate of this bug. ***
------- Comment #11 From Axel Grude 2014-12-02 10:11:44 -------
*** Bug 25905 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available