...and getting better, I have a pile of scripts/buttons I want to
write but first I must please my pay-masters and finish the job I am
on!

I know that the body pane can show me the 'actual' column that the
cursor is on but is it also possible to know what the line number is
too ?

i ask because when I have goofed and PHP displays the file and line
number, it would be good to be able to have a way of going to line
X... presumably I could write a function and attach it to a button
etc. but I don't know where to start.

I would expect to have to backtrack to the first parent @shadow node
(or @file etc) and then start doing whatever the editor already does
to walk nodes.... is there some kind of visitor pattern thing I can
hook into to say 'walk this tree and call this function at each
node?'... I imagine all I would have to do is then create a physical
line counter as each node as traversed and when the node containing
that line is found, I would like to make it the currently selected
node in the tree / body pane and then for the coup de grace, calculate
the actual line within the buffer and leave the cursor under the first
non-white space character!

Phew.

I know it's do-able because pretty much anything is ...the question is
can *I* do it! LOL   :)

So, if anybody has any good references / pointers as to a generic tree-
walking script then I'd be happy. I intend to look at the one recently
submitted for converting a file structure into @shadow nodes as that
seems to contain a good grab-bag of code.

Damn I love this editor!

I am also trying to write a @drupal-node script that will load the
node from the Drupal CMS and create a child-node for each proeprty of
the node and the body contains the value. This means that I could make
simple changes without having to leave Leo. The sky is the limit. I
really cannot believe I had to reach the age of 45 before I found
Leo!!

LMAO!
:)
Thanks Edward K. Ream.


-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to